Object names containing double spaces are not handed properly to custom action script
説明
If GPO name contains double space characters, it is not correctly handed over to a custom-action script (only one space is handed over). At least not using the [FULLPATH] parameter, however it shows correctly in the debug log, The actual variable value on the PowerShell script is different.
対策
Workaround: Rather than triggering a checkout using the path to the item in VCRoot, we can call get-ItemByID with the VCID of the item and then pass the resulting GPOADmin object into any GPOADmin commands we are attempting to execute.
There are examples of how to do this in the Get-Help on any of the GPOADmin PowerShell commands. The list of the available tags that can be used to pass version-controlled item information into custom action scripts is outlined on p168 of the GPOADmin User Guide under "Predefined Tags"
Defect ID: 514292 Custom actions do not work with VCPaths and Objects with double spaces in the name. This work item is targeted to be included in 5.20.