fix: OU can have spaces inside - quotes added.

improvement: added docu information
This commit is contained in:
DT Netsolution GmbH 2012-05-08 20:17:01 +02:00
parent 5fdf4be5cc
commit 461fd3bacf
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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