I've struggled with trying to pass the name of an item like a package, dynamic group, etc when using the cadsmcmd commands so I tried something new. Using the string (partial string here) cadsmcmd....swPolicy action=addItem name=GG752189 item="New Patch"...etc etc. This is part of a larger routine that builds a policy, links a group, then adds a package to the jobs before sealing. This routine works fine when there are no spaces in the package name, but I tried something new just now by encapsulating the package name in quotes. When I do this, the automation succeeds however I get more than just the one package I'm asking for added. I deleted the policy, built a new one and tried again...this time I got the package I wanted plus two others. Tried again...this time I get other packages I didn't ask for added.
Very strange indeed. We're running 14 SP1. Bottom line is I'd like to be able NOT have a restriction package names I use with automation, since I don't control what others build. So if there's a good way to pass a pkg name with spaces (or anything else) using the automation, I'd appreciate someone letting me know.