daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {$Users = Import-Csv -Path "C:\Users\Jonas Admin\Desktop\Users.CSV"            
  2. foreach ($User in $Users)            
  3. {            
  4.     $Displayname = $User.Firstname + " " + $User.Lastname            
  5.     $UserFirstname = $User.Firstname            
  6.     $UserLastname = $User.Lastname            
  7.     $Password = $User.Password
  8.     net user $Displayname  /delete    
  9.     remove-Item "c:\Users\$Displayname"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top