add comment about integrating OU based join
This commit is contained in:
parent
2a62613fed
commit
0acee1e8ad
@ -11,8 +11,11 @@ set $user$ = GetProductProperty("joinadmin", " ")
|
||||
set $password$ = GetProductProperty("joinadminpw", " ")
|
||||
PatchTextFile_Create_powershell %scriptpath%\join.ps1
|
||||
ShellBatch_JoinDom
|
||||
|
||||
|
||||
|
||||
; mit wahl des ou pfades also abhängig ob ou-pfad leer den aufrunf ändern.
|
||||
; Add-Computer -domainname DOMAIN -OUPath "OU=OU1,OU=OU2,OU=Domainname,DC=company,DC=com" -cred DOMAIN\AuthorizedUser -passthru –verbose
|
||||
|
||||
|
||||
[PatchTextFile_Create_powershell]
|
||||
AddLine "$secpasswd = ConvertTo-SecureString '$password$' -AsPlainText -Force"
|
||||
AddLine '$mycreds = New-Object System.Management.Automation.PSCredential ("$user$", $secpasswd)'
|
||||
|
Loading…
Reference in New Issue
Block a user