PowerShell command to find All the Servers / Workstations Administrator account is connected ?


hi there, 

good morning all 

i need quick on powershell command 

how find user account /admin account has been logged on servers / workstations using windows powershell command. 

note: administrator logging several servers , workstations during daily day day activities right how find out servers user/admin has been connected using power shell command. 


with regards kshera mudunuri

here starter:

$logons='ws701','ws702','sbs01'|     %{         [pscustomobject]@{             server=$_             admin=$(.\psloggedon \\$_ |select-string 'administrator')         }     }


\_(ツ)_/




Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...