Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

User Termination script question

$
0
0

What I'm trying to do is automate some of the basic stuff I do on termination of an employee.

  1. determine which computer(s) the user is logged into
  2.  reset the user password to an 8 character random string
  3. dump the user name and new PW into an email to myself
  4.  send shutdown -r -m //[computer name from item 1] -f
  5. move the user in AD to a container "Pending Deletion"

I'm pretty sure most of this is possible, but I suck @ PS and have no clue where to start with this.


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>