From 461fd3bacfef1b5f996b83c7244dd9c5312a7909 Mon Sep 17 00:00:00 2001 From: DT Netsolution GmbH Date: Tue, 8 May 2012 20:17:01 +0200 Subject: [PATCH] fix: OU can have spaces inside - quotes added. improvement: added docu information --- CLIENT_DATA/README | 3 +++ CLIENT_DATA/setup32.ins | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CLIENT_DATA/README b/CLIENT_DATA/README index 6d916c2..0a58d64 100644 --- a/CLIENT_DATA/README +++ b/CLIENT_DATA/README @@ -8,4 +8,7 @@ - bei MS Gültigkeitsprüfung erforderlich - App in .exe und .cab verpackt +- Soll der Computer in eine OU verschoben werden (property "MachineObjectOU"), dann + muss der User (Property "joinadmin") Mitglied der AD Gruppe "Domain-Admins" sein. + #INFO0:i8708 Do 05.04.2012 13:30, FROM=dt SUBJ=Netdom.exe \ No newline at end of file diff --git a/CLIENT_DATA/setup32.ins b/CLIENT_DATA/setup32.ins index 9af9b8b..9aa01fa 100644 --- a/CLIENT_DATA/setup32.ins +++ b/CLIENT_DATA/setup32.ins @@ -29,7 +29,7 @@ Set $joinadmin$ = GetProductProperty ("joinadmin","values") Set $joinadminpw$ = GetProductProperty ("joinadminpw","values") Set $orgunit$ = GetProductProperty ("MachineObjectOU","values") if not ($orgunit$ = "") - Set $joinstr$ = "JOIN %PCName% /Domain:" + $domainname$ + " /UserD:" + $joinadmin$ + " /PasswordD:" + $joinadminpw$ + " /OU:" + $orgunit$ + Set $joinstr$ = "JOIN %PCName% /Domain:" + $domainname$ + " /UserD:" + $joinadmin$ + " /PasswordD:" + $joinadminpw$ + " /OU:" + '"' + $orgunit$ + '"' else Set $joinstr$ = "JOIN %PCName% /Domain:" + $domainname$ + " /UserD:" + $joinadmin$ + " /PasswordD:" + $joinadminpw$ endif