Commit 07267659 by Paul Durivage

Rename variable

parent 08dc72b5
...@@ -28,10 +28,10 @@ function Get-User($user) { ...@@ -28,10 +28,10 @@ function Get-User($user) {
} }
function Create-User([string]$user, [string]$passwd) { function Create-User([string]$user, [string]$passwd) {
$user = $adsi.Create("User", $user) $adsiuser = $adsi.Create("User", $user)
$user.SetPassword($passwd) $adsiuser.SetPassword($passwd)
$user.SetInfo() $adsiuser.SetInfo()
$user $adsiuser
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment