Environment
Novell ZENworks Configuration Management 11.4 Zman
Novell ZENworks Configuration Management 2017 Zman
Novell ZENworks Configuration Management 2017 Zman
Situation
zman Scripting to create a Policy Group
and adding multiple Policies with -m option parameter
zman pgc
zman policy-group-create
Example:
zman pgc "Mobile Policy for Personal Devices" Mobiles --desc="Policy group for Personal devices" -m="/Policies/Mobiles/Mobile Email Policy","/Policies/Mobiles/Device Control Policy","/Policies/Mobile/Mobile Security Policy","/Policies/Mobiles/Mobile Enrollment Policy" -f=Mobiles
zman pgc
zman policy-group-create
Example:
zman pgc "Mobile Policy for Personal Devices" Mobiles --desc="Policy group for Personal devices" -m="/Policies/Mobiles/Mobile Email Policy","/Policies/Mobiles/Device Control Policy","/Policies/Mobile/Mobile Security Policy","/Policies/Mobiles/Mobile Enrollment Policy" -f=Mobiles
"Unexpected Additional Argument"
Error 6
Resolution
Insert single double quotes for each option (multiple quotes within the same option not accepted).
Example:
zman pgc "Mobile Policy for Personal Devices" Mobiles --desc="Policy group for Personal devices" -m="<path/policy>,<path/policy>,<path/policy>"
Correct Example:
zman pgc "Mobile Policy for Personal Devices" Mobiles --desc="Policy group for Personal devices" -m="/Policies/Mobiles/Mobile Email Policy,/Policies/Mobiles/Device Control Policy,/Policies/Mobile/Mobile Security Policy,/Policies/Mobiles/Mobile Enrollment Policy" -f=Mobiles