Re: How can I enumerate services and list the account context under which they run???
- From: "Jeffery Hicks [MVP]" <jhicks@xxxxxxxxxx>
- Date: Wed, 30 Jan 2008 08:17:36 -0500
My script does that. You'll end up with a CSV file with output like this (this is copied from the open file in Excel):
Server Display Name Service Name Service Account Name
PUCK Acronis Scheduler2 Service AcrSch2Svc LocalSystem
PUCK Application Experience AeLookupSvc localSystem
PUCK Agere Modem Call Progress Audio AgereModemAudio LocalSystem
PUCK Application Layer Gateway Service ALG NT AUTHORITY\LocalService
PUCK Application Information Appinfo LocalSystem
You'll need to create a text of servers and modify the script with the correct file name but isn't this what you want?
--
Jeffery Hicks MCSE, MCSA, MCT
Microsoft PowerShell MVP
http://www.scriptinganswers.com
http://www.powershellcommunity.org
http://jdhitsolutions.blogspot.com
Now Available: WSH and VBScript Core: TFM
Now Available: Windows PowerShell v1.0: TFM 2nd Ed.
"GBPackerBacker" <gbpackerbacker@xxxxxxxxx> wrote in message news:673d2a9b-3fb5-474f-a0bd-1ce3e87da777@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks for the reply, however my script does exactly that. What I'd
like, in addition to the services, I'd like to be able to determine
what account context it runs under. I need to find out what accounts
are using the system account, which ones have dedicated service
accounts, and which ones, if any, are using any users personal
accounts.
Can this be done with a script?
.
- References:
- How can I enumerate services and list the account context under which they run???
- From: GBPackerBacker
- Re: How can I enumerate services and list the account context under which they run???
- From: Jeffery Hicks [MVP]
- Re: How can I enumerate services and list the account context under which they run???
- From: GBPackerBacker
- How can I enumerate services and list the account context under which they run???
- Prev by Date: Re: What about deleting sub-folders
- Next by Date: Re: File Size Check
- Previous by thread: Re: How can I enumerate services and list the account context under which they run???
- Next by thread: vbscript remote execution
- Index(es):
Relevant Pages
|