There's a closed pull request on the Samba Samba Github repository Update gpo.py https://github.com/samba-team/samba/pull/123 Description: This if will always fail because the string can't start with \\\\ and // at the same time