0
I have a group that part of its name contains an ampersand & I am trying different commands for example dsquery group -name A&I-group but it does not work I tried escaping it using the escape character ^ but it still does not work.
Any ideas?
0
I have a group that part of its name contains an ampersand & I am trying different commands for example dsquery group -name A&I-group but it does not work I tried escaping it using the escape character ^ but it still does not work.
Any ideas?
I'm not authoritative, but have you tried using quotes around the name? or ~ as escape? – rfportilla – 2015-05-13T16:58:28.773
2Post your query! – Austin T French – 2015-05-13T17:26:24.130
Escaping with a ` character works for me – EBGreen – 2015-05-13T17:37:58.917
@Ebgreen that did not work for me, but thanks – Eduardo – 2015-05-13T17:48:10.357
@rfportilla I tried using quotes on the entire group and just on the ampersand doesn't work either – Eduardo – 2015-05-13T17:48:43.637
@AthomSfere one of the queries is the one I put in the question dsquer group -name A&I-group – Eduardo – 2015-05-13T17:49:24.210
You are using double quotes too right? – EBGreen – 2015-05-13T17:51:22.153
Yes, I only used double quotes between the & – Eduardo – 2015-05-13T17:55:27.767
If I just do dsquery group -name A* it list this group but that is not good for my work – Eduardo – 2015-05-13T17:58:08.537
For god sake, the same team sent me the wrong name it worked after finding the correct name after looking it with the query &* – Eduardo – 2015-05-13T18:02:30.650
@Eduardo: In that case since the question is invalid now you might want to delete it. – Karan – 2015-05-14T19:24:42.940