From 0acee1e8ad6c271da9ce877c918478423f03acfc Mon Sep 17 00:00:00 2001 From: Mario Fetka Date: Fri, 21 Feb 2014 11:45:35 +0100 Subject: [PATCH] add comment about integrating OU based join --- CLIENT_DATA/join.ins | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CLIENT_DATA/join.ins b/CLIENT_DATA/join.ins index 3d99492..5f8fc9f 100644 --- a/CLIENT_DATA/join.ins +++ b/CLIENT_DATA/join.ins @@ -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)'