Rename variable
This commit is contained in:
parent
08dc72b5e7
commit
07267659b0
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue