Environ is Server 2012 R2 w/ DFL and FFL of 2008 R2. I have a list of 87 users and I need to reboot the last PC they logged into.
So, I need a powershell script that will:
show me the last computer a user logged into &
reboot said computer
Again, I have the list of users to feed it, but of course I need to know how to feed it.
Otherwise I have to go to my logging folder, open 87 text files and copy and paste the computer name into the shutdown /i GUI