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

DCOM received error "2147746132" from...

DFSR RPC replication errors 5014 1726 with large files over VPN

ADFS 3.0 Event ID 4625 | An Error occurred During Logon | Status: 0xC000035B