Unless you've configured some central database to keep this information,
you'll have to search each computer. For services, you can use
Get-WMIobject and the Win32_Service class. You could query all services and
only return those where the Startname matches the account in question
gwmi win32_service -filter "startname='Domain\jdoe'" -computer Server1 |
Select SystemName,Name,Startname
You could easily pipe a list of servers to this expression and format the
results however you wanted. Scheduled tasks is a little harder. The WMI
class that you'll find is for the older AT tasks. But I think you could
call the command line tool SCHTASKS and parse the output.
--
Jeffery Hicks
Microsoft PowerShell MVP
http://www.scriptinganswers.com http://www.powershellcommunity.org
Now Available: WSH and VBScript Core: TFM
Coming Soon: Windows PowerShell: TFM 2nd Ed.
"Kamal" <Kamal@xxxxxx> wrote in message
news:EBF7ACBA-69C4-4AA3-B448-9ED104274702@xxxxxx
> Hi
> Is there a way through powershell wherein we can find if a specific user
> account is configured to run the scheduled tasks and services of how many
> domain controllers/servers?