Understanding account rights in Powershell - getservice


hi all,

sorry , new windows , powershell , trying create powershell script check if particular service running or not uisng get-service.

it came me able use get-service service status of other computer without logging on computer/server.

how ? 
because using domain admin account run powershell , other computer join domain ? 
using system account suffice if intend run powershell script in task scheduler ?

what rights/credential must account have in order use get-service services in computer (where credentials store) ?

sorry if sound lost. curious how possible can service status of services running in computer without logging on ?

hope gurus here can shed light ...

regards,

noob

you need admin privileges get-service work on local , remote machines. if want run scheduled task, using system account should work, local machine task set on (i wrong on last part), if want run against remote machines, set task run user admin on machines.

if find post has answered question, please mark answer. if find post helpful in anyway, please click vote helpful. (99,108,97,121,109,97,110,50,64,110,121,99,97,112,46,114,114,46,99,111,109|%{[char]$_})-join''



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file