Link to home
Start Free TrialLog in
Avatar of crp0499
crp0499Flag for United States of America

asked on

I need a powershell script please....

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.

:)

Any takers?

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

:)
ASKER CERTIFIED SOLUTION
Avatar of yo_bee
yo_bee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of crp0499

ASKER

actually, that's a bloody good idea!!  Thanks for the brain push!
If interested I have a vbs I put together that collects the information you are looking for.

I built a exe that leverages the database, but not needed.

I would be happy to share this with you. Send me a private message and I will be happy to share my script.