Guest User

Untitled

a guest
Jan 21st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. [string]$FirstName = Read-Host "User First Name"
  2. [string]$LastName = Read-Host "User Last Name"
  3. [string]$FullName = "*$FirstName* *$LastName*"
  4. write-host
  5. Get-ADUser -Filter {name -like $FullName} -properties * | select-object name, samaccountname | sort-object
  6. read-host "Press Enter to exit"
  7.  
  8. [string]$Login = Read-Host "User Login name"
  9. [string]$LoginName = "*$Login*"
Add Comment
Please, Sign In to add comment