mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-08 03:33:10 +00:00
Rename variable
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user