Rename variable

This commit is contained in:
Paul Durivage 2014-06-19 16:40:35 -05:00
parent 42834963cc
commit 44fcebc5aa

View file

@ -28,10 +28,10 @@ function Get-User($user) {
}
function Create-User([string]$user, [string]$passwd) {
$user = $adsi.Create("User", $user)
$user.SetPassword($passwd)
$user.SetInfo()
$user
$adsiuser = $adsi.Create("User", $user)
$adsiuser.SetPassword($passwd)
$adsiuser.SetInfo()
$adsiuser
return
}