Script to list services on servers running as a particular id
does anyone know of a script that i can run which will list all services on all of our servers running under a specfiic id, for example any services running domain\userX
thx,
jason
Hi Jason,
Please refer to Dave’s suggestion and check if can help you.
In addition, based on your description, this issue seems to be more related to Script. I suggest that you would
post the question in
The Official Scripting Guys Forum or
PowerShell Forum. I believe we will get a better assistance there.
Best regards,
Justin Gu
Similar Messages
-
Running InDesign CS3 Script like a service
Hi,
Do anybody know if is there any option to run an InDesign CS3 Script as a service or daemon? I would like to execute some actions depending on some others and I need to have an script running all the time and checking for certain states.
Thanks
AleixHi,
Can you give me information for both cases? The truth is that I need to monitor something related with an InDesign plug-in and maybe one or both methods could help me.
Thanks
Aleix -
[solved] writing systemd service file to run script
i have completely migrated to systemd. now, i am trying to write a service file to run a startup script (~/.startup.sh). one of the functions of the script is to set the brightness of the screen:
echo "95" > /sys/class/backlight/intel_backlight/brightness
i created /etc/systemd/system/startup.service:
[Unit]
Description=Run startup script
[Service]
Type=oneshot
ExecStart=~/.startup.sh
[Install]
WantedBy=multi-user.target
but i get the following error:
Failed to issue method call: Unit startup.service failed to load: Invalid argument. See system logs and 'systemctl status startup.service' for details.
i have two questions:
1. what am i missing?
2. how can i avoid permission issues associated with modifying the brightness file (e.g., permission denied errors, the need to put in the password, etc.)?
thanks.
Last edited by anti-destin (2012-08-01 22:26:04)thanks for the replies.
just a note: using an absolute path didn't fix the issue.
but i went ahead and created the file /etc/tmpfiles.d/backlight.conf:
w /sys/class/backlight/intel_backlight/brightness - - - - 95
and that worked.
is there a reason for recommending using a tmpfile rather than a service?
in any case, i'm marking this as solved. -
Script to list all servers in my domain
i need to list all the windows servers in my organization so i was wondering if anyone knew of or had a script that could do this and export it to a csv file.
You don't need a script. You just need to list servers from the computer browse list. This can be done with
Net View or the Browstat commands.
browstat vw 1 | find /i ",SS" will list just the servers. With the browstat output there are several items you can easily search for, Version, DFS, SQL, etc.
\\Servername NT 05.02 (W,S,SQL,NT,SS,BBR,DFS)
Use quick edit/Mark and copy in the command prompt to select and copy only the server names out as needed.
Using the browse list is actually a better method because it shows you only active servers. While obtaining a list from Active Directory will have old server accounts listed.
http://support.microsoft.com/kb/818092 -
Hai,
How to find the list of queries currently running in the Database with User Login Information.
Since my database application is running slow, to find the slow queries.Try the below query
SELECT r.start_time [Start Time],r.session_id [SPID],
DB_NAME(database_id) [Database],
s.host_name,
s.program_name,
s.login_name,
SUBSTRING(t.text,(r.statement_start_offset/2)+1,
CASE WHEN statement_end_offset=-1 OR statement_end_offset=0
THEN (DATALENGTH(t.Text)-r.statement_start_offset/2)+1
ELSE (r.statement_end_offset-r.statement_start_offset)/2+1
END) [Executing SQL],
r.status,command,wait_type,wait_time,wait_resource,
last_wait_type
FROM sys.dm_exec_requests r
OUTER APPLY sys.dm_exec_sql_text(sql_handle) t
inner join sys.dm_exec_sessions s
on s.session_id = r.session_id
WHERE r.session_id !=@@SPID -- don't show this query
AND r.session_id > 50 -- don't show system queries
ORDER BY r.start_time
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
List all DNS servers in an AD Forest
Is there a way (preferably powershell, of course!) to find all DNS servers in an AD forest? Not domain controllers running DNS but ANY Windows servers running DNS.
Here is the situation...I have one root domain to which I am adding a new domain controller. There are roughly 20 child domains which should all have their dns servers set to forward to my root domain for unresolved queries. I need to change the forwarders on all DNS servers in the Forest (I've got that part figured out). However, I know that not all Domain Controllers in all of the domains are DNS servers and vice versa (not all DNS servers in the domains are domain controllers).
So...anything that I can query to find all dns servers in the Forest (short of querying every server in the Forest for the existence of the DNS Server service?)
I've searched but can't seem to find anything in wmi.
Thanks,
NateThat would just list all DCs within a domain (not even in the entire forest).
You can use DNSLint (http://support.microsoft.com/kb/321045) or dnscmd (assuming you’re hosting your AD DNS Zones on Microsoft DNS Servers) to query for
NS records.
Regards
Christoffer Andersson – Principal Advisor
Enfo Zipper
"EXRAPUL" wrote in message news:ea6d0f00-0bc0-4786-b63b-c618e51ff264...
Hi Nate,
Yes, we can find list of DNS servers by using a command "nltest".
Here is the syntax nltest/dnsgetdc:<forest name>
example: nltest/dnsgetdc:microsoft.com
Enfo Zipper Christoffer Andersson – Principal Advisor -
Using OC to manage HP servers running Red Hat?
We've inherited a couple of HP Proliant DL360 G7 servers running Red Hat. I can manage the OS from Ops Center but I can't manage the hardware. I've tried picking "Other IPMI Service Processor" from the "Search for Type" list during "Custom Discovery" but the discovery fails. I've verified that I'm using the correct IPMI user and password. I can use ipmitool from the command line but I have to use "lanplus". Is OC not capable of using lanplus?
The Prolliant is running "ILO 3 Advanced", version "1.26 Aug 26 2011". Is that too new for OC?
Thanks,I was under the impression that OC was capable of using lanplus.. but I could be wrong. (I usually am)
I believe a buddy of mine has an HP ProLiant DL360 G7 running on his network, I will shoot him over an email with this link so he can (hopefully) answer you. This is the one he has, in case it matters -- http://www.servermonkey.com/hp-proliant-dl360-g7/
Edited by: 934272 on May 14, 2012 2:00 PM -
Have 2 host cluster as part of infrastructure adding to VMM.
Added cluster server. 1st had no issue and has picked up it's VMs. Second gave this error below:
Error (416)
Agent installation timed out while waiting on service VMMAgentInstaller on host02domain.private.
Recommended Action
Ensure that the Windows Installer service is running on host02.domain.private and try the operation again.
Sure the Windows Installer has nothing to do with this but in case I manually started it on the server without issue.
On retrying first without starting Windows Installer manually and then doing so in both instances I get:
Error (2912)
An internal error has occurred trying to contact the host02.domain.private server: : .
WinRM: URL: [http://host02.domain.private:5985], Verb: [INVOKE], Method: [GetVirtualizationStatus], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/scvmm/AgentManagement]
An instance of the service is already running (0x80070420)
Recommended Action
Check that WS-Management service is installed and running on server host02.domain.private. For more information use the command "winrm helpmsg hresult". If host02.domain.private is a host/library/update server or a PXE server role then ensure
that VMM agent is installed and running. Refer to http://support.microsoft.com/kb/2742275 for more details.
I've tried killing the VMM Agent running on the host (which is running now after the attempted deploy) and rerunning - as the second error indicates it can't run because it's already running (far as I can figure). But even though it takes longer to run then
it still fails with exactly the same error.
I've checked the host and winrm shows as already running and already set up for remote management.
Am I missing something?Hi Allister,
What is the version of SCVMM ?
Did you follow the document ?
As for VMM 2008R2 :
"On the Select Host Servers page, in the Computer name box, type either the name of the cluster or the name of any node in the cluster, and then click
Add."
"Do not skip Active Directory name verification. If you do, the wizard will add the host as a stand-alone host instead of discovering the cluster nodes "
"When you specify the name of a failover cluster that was created in Windows Server 2008 or Windows Server 2008 R2, or you specify a node in one of these clusters, the Add Hosts Wizard discovers all nodes in the cluster and adds
them to VMM. "
https://technet.microsoft.com/en-us/library/ee236431.aspx
Also 2012 :
https://technet.microsoft.com/en-us/library/gg610648.aspx
For your case , I would suggest you to stop VMM service and remove the added cluster from
scvmm then follow the article and add cluster again .
Best Regards,
Elton Ji
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] . -
OSB sbconsole "Test Console" service is not running
Hi all,
A problem in the osb domain sbconsole I am facing during testing of proxy/business services. When clicking on the "Launch Test Console" icon I got following error:
Error Accessing Test Configuration
"Test Console" service is not running. Contact administrator to start this service.
I have checked the test-console flag as true in ALSBdebug.xml file in all admin and managed servers. Still I am not able to test the service through sbconsole. All the servers are in OK state
Please help.
regards
Mohit SharmaCluster address should be comma-separated address of managed servers. For e.g. - If managed_server1 is listening on host:8011 and managed_server2 is listening on host:8013 then cluster address should be like host:8011,host:8013
You may refer section "Cluster Address" at below link -
http://download.oracle.com/docs/cd/E17904_01/web.1111/e13709/setup.htm#i717132
Regards,
Anuj -
Report Subscription by email error - The SQL Agent service is not running
Hello All,
This may be an easy answer, so please excuse my ignorance if I am overlooking something simple. I a simply trying to setup Report Subscriptions to be emailed to me. We currently have essentially 3 servers in use in our environment - a CAS, a Site server
and a SQL 2012.
I have configured the email settings in Reporting Services Configuration Manager on the Site server and was finally able to see the email option in the Create Subscription Wizard, but it errors out with:
System.Web.Services.Protocols.SoapException: The SQL Agent service is not running. This operation requires the SQL Agent service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.SchedulerNotRespondingException: The SQL Agent service is not running.
This operation requires the SQL Agent service. at Microsoft.ReportingServices.Library.ReportingService2005Impl.CreateSubscription(String Report, ExtensionSettings ExtensionSettings, Boolean isDataDriven, DataRetrievalPlan DataRetrievalPlan, String
Description, String EventType, String MatchData, ParameterValueOrFieldReference[] Parameters, Guid batchId, String& SubscriptionID) at Microsoft.ReportingServices.WebServer.ReportingService2005.CreateSubscription(String Report, ExtensionSettings
ExtensionSettings, String Description, String EventType, String MatchData, ParameterValue[] Parameters, String& SubscriptionID)
We do not have SQL installed locally, therefore it makes sense that the Agent service is not running. How do I subscribe to alerts in SCCM without a local installation of SQL?
-BradI am positive - see screenshots below of services on the SQL server:
Yes, reports work perfectly otherwise... Just cannot subscribe.
-Brad -
Alert: [LYNC] 'Lync Server Web Conferencing' NT Service is not running.
We keep getting this below Alert and everytime this happens, Conferencing would disconnect and connect back again. Current setup as below. We are on latest CU November 2014.
Server 2013 Pools - 2 pools
Each Pool has 5 front end servers with 2 back end servers mirrored.
Unable to find anything from best analyser, Ports have been validated. Any idea how to resolve this ?
Alert: [LYNC] 'Lync Server Web Conferencing' NT Service is not running.
Source: LS Data Conferencing Component [FE Server]
Path: FE Server
Last modified by: System
Last modified time: 11/24/2014 9:41:23 AM Alert description: 'Lync Server Web Conferencing (RTCDATAMCU)' NT Service is not running. To restart the service, run 'net start RTCDATAMCU' from a command-line window.
Whenever above alert is triggered, there is a corresponding application alert as below.
.Net runtime
Application: DataMCUSvc.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an internal error in the .NET Runtime at IP 00007FFAC2A91020 (00007FFAC2A90000) with exit code 80131506.
Application Error
Faulting application name: DataMCUSvc.exe, version: 5.0.8308.0, time stamp: 0x5050e3de
Faulting module name: clr.dll, version: 4.0.30319.34014, time stamp: 0x52e0b86c
Exception code: 0xc0000005
Fault offset: 0x0000000000001020
Faulting process id: 0x303c
Faulting application start time: 0x01d00621fefd0760
Faulting application path: C:\Program Files\Microsoft Lync Server 2013\Web Conferencing\DataMCUSvc.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll
Report Id: ca360fe4-73e7-11e4-80ca-001b21bfd144
Faulting package full name:
Faulting package-relative application ID:Hi,
Did the issue also happen before updating to the latest CU?
Please make sure you have installed the latest service pack for the Microsoft .NET Framework
Please try to change part of Lync service to start as “Automatic (Delayed Start)”, restart FE Servers and then test again.
Best Regards,
Eason Huang
Eason Huang
TechNet Community Support -
AAS showing incorrect server in list of Planning servers
Hi. we are using 9.2.1 with weblogic 8.1
When I open a business rule in AAS, and go to locations tab to select a location, the list of Planning servers shows a server that is not a planning server and thus if you click on it, it generates an error. I checked the server that is displayed and it does not have planning installed on it - only the planning adm drivers for reporting or the planning desktop. I checked the hbrserver.properties files on the servers and they don't even reference the erroneous server.
This erroneous server does seem to disappear after a full services restart or restart of SQL, but it comes back over time. haven't been able to determine exactly how long.
Anyone have any idea where AAS is getting the reference to this erroneous server?
Thanks
WagsHi,
Bit of a strange one, usually what happens is when you log into a planning app is it populates the AAS database table HBRPluginData, Then when in the business rule designer in AAS and choose outline for planning it should query the table (I think it really queries the cached table values), you can prove this by stopping AAS and enter dummy server details into the table and start AAS again when you go into business rules and expand the planning outline you should see your dummy server.
I am not sure how a server which is not a planning server is being picked up though.
Cheers
John
http://john-goodwin.blogspot.com/ -
The audio service is not running
Yeah as the title says..my audio isn't working it tells me "The audio service is not running"..in my headphones no sound even on my speakers..What will I do? I went to the service button and when I did start to windows audio it told me "Windows
could not start the windows audio service on local computer Error 1068:The dependency service or group failed to start.Hi,
Find the related services and start them:
1. Click Start, type Services.msc in the Start Search box.
2. Scroll down the list of services, right-click Windows Audio
and select Start.
3. Select Properties for Windows Audio and set its Startup Type
to Automatic.
If the Windows Audio service does not start and you still get the error
Error 1068: The dependency service or group failed to start, then make sure that the following services are started and their
Startup Type is set to Automatic.
•Plug and Play
•Multimedia Class Scheduler
•Windows Audio Endpoint Builder
Karen Hu
TechNet Community Support -
Failing "List Services Information" Cluster validation test
Hi
I'm building a 2 node Windows 2008 SP2 Cluster. I've setup the SAN Disks, NIcs etc and am running the cluster validation tests. However this always fails on the "List Services Information" Test with the following error statement:
"An error occurred while executing the test. There was an error getting information about the running services on the nodes. There was an error retrieving information about the Services from node '<Server FQDN>'. Object reference not set to an
instance of an object.
Note: I replaced the actual server fqdn with <Server FQDN>
Any help is appreciated.
ThanksHi,
I know it is not a SQL cluster but you could still have a try with steps below as a workaround. See:
http://support.microsoft.com/kb/953748/en-us
•For an integrated failover Add-Note setup, run the following command on each node that is being added:
Setup /SkipRules=Cluster_VerifyForErrors /Action=InstallFailoverCluster
•For an advanced or enterprise installation, run the following command:
Setup /SkipRules=Cluster_VerifyForErrors /Action=CompleteFailoverCluster
•If you receive this validation failure when you add a node to an existing failover installation, run the following command on each node that is being added:
Setup /SkipRules=Cluster_VerifyForErrors /Action=AddNode
TechNet Subscriber Support in forum |If you have any feedback on our support, please contact [email protected] -
Hello,
i have written a perl script which lists all the replicas that reside on
the eDirectory server. I use the function 'ListReplicas' in
Net::LDAP::Extensions::eDirectory - but not all replicas are listed,
from 6 replicas that reside on the server only 4 are listed in the script.
any ideas or another solution?
config:
nw6.5/sp6
perl v5.8.4
PeteI was thinking about the following if you're just wanting services:
systemctl list-units -t service --no-pager --no-legend | grep active
edit: While I'm here, here's a script I wrote which allows you to manipulate services using a function and dmenu. The final output is piped in monospace font to gxmessage, but of course you can hack this around in lots of ways.
#!/bin/bash
services()
sm="dmenu -l 20 -fn Monospace-8 -p"
s1=$(systemctl list-unit-files -t service --no-legend | $sm Service); s1=${s1/%service*/service}; [[ -z $s1 ]] && exit
s2=$(echo -e "status\nstart\nstop\nrestart\nenable\ndisable" | $sm "Action"); [[ -z $s2 ]] && exit
if [[ $s2 == "status" ]]; then unset s3; else s3="gksudo --"; fi
eval $s3 systemctl --no-pager $s2 $s1 2>&1 | gxmessage -file - -title Services -center -fn "Monospace 8"
services
Last edited by ninian (2012-11-23 00:46:46)
Maybe you are looking for
-
How do I recover photos that were NOT backed up from ipod touch 4th generation?
I have a iPod Touch (4TH Genration). It was frozen for two days straight on the apple logo. I kept holding the two keys and tried to connect it to itunes and it wouldn't budge. On the third day I conected it to itunes, and it told me that it nedded t
-
Network drives in 'Files' site list
I have three sites I work on but Dreamweaver insists on displaying the 16 local and network drives my PC has access to. All I want to see is my three websites. I thought I had managed this in DW* but can't for the life of me remember how - must be my
-
my malwarebytes ( anti malware program) is kicking up a fuss over the thread " issue in cs3 for mac "...due to the link to postimage.org .... cant reply to the message after I stop the attempted DL from postimage.org... to let the poster know theres
-
Populating static values in addition to database value in select one choice
Hi All, We are using jdev 11.1.1.2.0. I am populationg a select one choice based on a read only VO. The vo is populating fine,but in addition to the values from the database I want to add two static values. I want to add 'select customer' and 'all cu
-
Content based Routing Vs Message based Routing
Hi friends, Can u plz differentiale Content based Routing and Message based Routing?