Author: graycat, Location: London, UKPosted: Mon Aug 15, 2011 5:15 pm Post subject: PowerShell and ampersand ---- Afternoon all,
I'm running into an issue using PowerShell to manage public folder permissions in Exchange 2007 where the folder path contains an ampersand (&). Unfortunately the ampersand is an escape character and therefore cancels out of the command.
Any idea on possible work around for this? Other than renaming the folder for preference.
Author: ryansutton, Location: San Francisco, CaliforniaPosted: Tue Aug 16, 2011 1:54 am Post subject: ---- Can you copy and paste the symbol?
Author: graycat, Location: London, UKPosted: Tue Aug 16, 2011 12:36 pm Post subject: ---- I've tried copying and pasting the whole folder path in but it makes no difference unfortunately.
Author: ryansutton, Location: San Francisco, CaliforniaPosted: Tue Aug 16, 2011 4:22 pm Post subject: ---- There might be a keyboard shortcut for the "&" symbol on the character map. Short of that I don't know. =[
Author: graycat, Location: London, UKPosted: Tue Aug 16, 2011 4:30 pm Post subject: ---- I can get the symbol into the path no problem but PowerShell takes that as a command symbol and kicks the rest of the script out.
Bit of a bummer really as I seem to have a number of public folders with & in their path ......
Author: AdamV, Location: Leeds, UKPosted: Fri Aug 19, 2011 1:16 am Post subject: ---- Does it work if you enclose it in single quotes (apostrophes)? That should suppress the escape character behaviour.