PowerShell
PowerShell copied to clipboard
How can I deal with GPOs that have slashes in the name?
I started by doing a pull request having made a change to convert slashes (/ or \) to underscores as it causes Rename-Item to fail, but then realised that this would cause the restore script to break, so I closed it out and deleted my branch. Wondering if you have idea on how there might be a good way to deal with this or should we simply avoid slashes in GPO names?
Thanks!
Maybe instead of renaming them, leave the files as ids, and just create pretty links using the names. Then you could sanitize the link names without changing the actual names, and they'll restore ok?