fix: OU can have spaces inside - quotes added.
improvement: added docu information
This commit is contained in:
parent
5fdf4be5cc
commit
461fd3bacf
@ -8,4 +8,7 @@
|
|||||||
- bei MS Gültigkeitsprüfung erforderlich
|
- bei MS Gültigkeitsprüfung erforderlich
|
||||||
- App in .exe und .cab verpackt
|
- 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
|
#INFO0:i8708 Do 05.04.2012 13:30, FROM=dt SUBJ=Netdom.exe
|
@ -29,7 +29,7 @@ Set $joinadmin$ = GetProductProperty ("joinadmin","values")
|
|||||||
Set $joinadminpw$ = GetProductProperty ("joinadminpw","values")
|
Set $joinadminpw$ = GetProductProperty ("joinadminpw","values")
|
||||||
Set $orgunit$ = GetProductProperty ("MachineObjectOU","values")
|
Set $orgunit$ = GetProductProperty ("MachineObjectOU","values")
|
||||||
if not ($orgunit$ = "")
|
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
|
else
|
||||||
Set $joinstr$ = "JOIN %PCName% /Domain:" + $domainname$ + " /UserD:" + $joinadmin$ + " /PasswordD:" + $joinadminpw$
|
Set $joinstr$ = "JOIN %PCName% /Domain:" + $domainname$ + " /UserD:" + $joinadmin$ + " /PasswordD:" + $joinadminpw$
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user