Last active
August 3, 2018 13:05
-
-
Save gislig/2b548c38fef5921b4453b940b3959513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ConvertTo-SecureString into a parameter, is there any logic behind it ? | |
function CreateUser($Password, $Secure_String_Pwd = (ConvertTo-SecureString $Password -AsPlainText -Force)){ | |
New-ADUser -Name "Tom" -SamAccountName "Tom" -AccountPassword $Secure_String_Pwd | |
} | |
CreateUser -Password "tHISIsMySecurePassword!!!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment