Command to skip/ignore conformation in EMS
HiI am trying to run remove-publicfolderclientpermissions along with import-csv command for few thousands of users.Import-Csv "Filename.csv" | ForEach-Object { Remove-Publicfolderclientpermissions -User $_.User -Identity $_.Identity -Accessrights owner } This command works fine. However, for every user it asks for conformation in shell and i have to click accept all for every user which is not at all acceptable as i have thousands of public folders and thousands of users having owner level permissions on these. Is there a switch using which i can skip/ignore conformation. Thanks Shiv
April 23rd, 2009 5:28pm

Your cmdlet should be below to run without confirmation.... Import-Csv "Filename.csv" | ForEach-Object { Remove-Publicfolderclientpermissions -User $_.User -Identity $_.Identity -Accessrights owner -Confirm:$False}Amit Tank | MVP - Exchange | MCITP:EMA MCSA:M | http://ExchangeShare.WordPress.com
Free Windows Admin Tool Kit Click here and download it now
April 23rd, 2009 5:33pm

Wow Great !!! Thanks.
April 23rd, 2009 6:57pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics