PowerShell Problem
Hi Guys,
My problem is more of a powershell usage issue - probably my ignorance:
I am trying to update theclient permissions for my E2K7 public folders. To do this I am using the ReplaceUserPermissionOnPFRecursive.ps1 script from the scripts folder in exchange server.
I have managed to get it to work how I want to, except for the fact that the confirm option doesn't take any notice of me!
I have about 20,000 folders for it to go through and each folder it gets to it asks me to confirm y=yes, a=yes to all, n=no etc. etc.
I keep choosing "a" but it keeps stopping at the next folder and asking for confirmation again - I will be here for days!
Can anyone help me either supress the confirmation or get it to listen to my answer of "yes to all"
Thanks in advance,
Niall.
June 4th, 2007 7:25pm
Since you're running a script the -Confirm parameter does not work (its not included in the script) so when the script runs powershell commands they will ask you to confirm.you could copy teh script and edit the copy as you please.
You could add the "-ConfirmFalse" parameter (= no confirmation, just do it) at the end of "remove-PublicFolderClientPermission" and "add-PublicFolderClientPermission" cmdlets near the end of the script.
Free Windows Admin Tool Kit Click here and download it now
June 6th, 2007 10:51am
Lasse,
Thanks very much for that - that makes sense.
I will edit the script and give it a go.
Niall.
June 7th, 2007 5:55pm