Scripting is awesome makes life easier.
For Sys Ad who doesn't want to get their hands wet with PoweShell, better get started PowerShell is a very good tool.
The script below gets the logged on user on the remote machine. No need to walk and get to the workstation just to check who is using the computer.
Here's the script:
$computername = "Lobby-085"
Invoke-Command -ComputerName $computername -ScriptBlock { $(Get-WMIObject -class Win32_ComputerSystem | select username).username }
Output:
Domain_Name\User_Name
The script can be tweaked to read a text file with the list of computer names and get the logged on users on the list.
Cheers..till next time.
============================================
Linux Android App cheat sheet:
https://play.google.com/store/apps/details?id=com.LinuxMobileKit
Free Android Apps:
Click on links below to find out more:
https://play.google.com/store/apps/details?id=soulrefresh.beautiful.prayer
Catholic Rosary Guide for Android:
https://play.google.com/store/apps/details?id=com.myrosaryapp
http://quickbytesstuff.blogspot.sg/2014/09/how-to-recite-rosary.html
Divine Mercy Chaplet Guide (A Powerful prayer):
https://play.google.com/store/apps/details?id=com.dmercyapp
Educational Android App for Kids:
https://play.google.com/store/apps/details?id=com.xmultiplication
https://play.google.com/store/apps/details?id=com.letsmultiply
Comments
Post a Comment