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
Post a Comment