Here's some powershell script/command to find who is logged in on a RemoteMachine.
Get-WmiObject -computerName ComputerName -class Win32_ComputerSystem -Property UserName | findstr UserName
Here's some powershell script/command to find who is logged in on a RemoteMachine.
Get-WmiObject -computerName ComputerName -class Win32_ComputerSystem -Property UserName | findstr UserName
Posted by Rouge Delimiter at 2:46 PM
Labels: Code, Powershell
No comments:
Post a Comment