PFDAVadmin - cannot import via .CMD script
We use PFDAVAdmin.exe for changing the Calendar permissions of one or multiple users in our organisation (150 people). At this moment we are trying to create a simple cmd script to automaticly change this setting (for example everyone reviewer) to all calendars and add this script to the SHEDULED TASKS. This so that when a new user is created, his calendar will be updated with thes settings within 24hrs.How we did this;PFDAVAdmin -export to file for one specific reference userDelete all but the SETACL line for the Calendar Settings and change the user name with a test user:SETACLMailboxes\TestUser\Top of Information Store\CalendarAnonymousNoneDefaultReviewerNOWhen we import this file manualy in the PFDAVadmin tool everything works fine. When we do this bij the cmd script, it does not ...PFDAVAdmin.exe -import -s<server> -f<file> -user<ExchangeAdministrator> -password<password> -domain <domain>the next step would be a Select-Mailbox for the OU we'd like to change and then let the CMD script work for-eachany ideas are welcome.P.S.: the reason i do this with .CMD is that I'm not really that great programmer and not familiar to the OO scripting thing.
December 23rd, 2008 2:30pm

Dear customer: Pfdavadmin tool can be used to achieve this without script, you can try the following suggestion: 1. Run PFDavAdmin.exe. 2. At the main PFDavAdmin window, select File / Connect and in the Connect window, specify the name of the Exchange server and global catalog server to connect to. Also, make sure that the Connection option is set to All Mailboxes before clicking OK. 3. All mailboxes will then be displayed in the left-hand pane of the main PFDavAdmin window when you expand the Mailboxes object. From the Tools menu option, select Set Calendar Permissions. You will then be presented with an advisory dialog box informing you that you will be presented with another dialog box in which you can configure the permissions you would like to set on the calendar folders. There are no options here; just click OK. You are then presented with the blank Permissions window. 4. To add new permissions, click the Add button. You will now be presented with a window. 5. The Choose user area gives you the chance to add a single user, but in our case we want to grant Reviewer access to all mailboxes. Therefore, we need to click the Browse button and in the following window, choose the domain name in the drop-down box. 6. From the list of objects displayed, choose the Everyone object. Once selected, click OK. 7. Back at the Choose user window, the Selected user field should now be populated with the Everyone user previously selected. Click OK. You will now be back at the Permissions window but this time the Everyone user will be shown in the list of objects. However, note that the Role field is currently set to None. 8. To change the role to Reviewer, highlight the Everyone user and then, on the right-hand side of the Permissions window, change the drop-down permissions box so that the Reviewer role can be selected.Once the Reviewer role has been selected, click OK to set the permissions. 9. You should be presented with a dialog box informing you that you will be presented with a new dialog box that you can use to remove entities from the calendar permissions. As with the previous advisory dialog box, just click OK. 10. Youll then be presented with another blank Permissions window as before. In this case, we dont want to remove any entries so just click OK. PFDavAdmin will then process the mailboxes. Once it has finished, just close the window and youre done. Hope it helps.Rock Wang MSFT
Free Windows Admin Tool Kit Click here and download it now
December 26th, 2008 10:49am

Hi,I agree with Rock, if you are not familiar with programming then you may need to follow the procedure explained by Rock manually at regular interval of time to cover newly created users.OR you need to use some script (instead of PFDavAdmin) to do so automatically by scheduling it to run everyday...References:You may check below script which is written by Glen Scales...Default Calendar permission Powershell Gui for Exchange 2007http://gsexdev.blogspot.com/2008/03/default-calendar-permission-powershell.htmlAnd below article to schedule any powershell script...How To: Schedule PowerShell Script for an Exchange Taskhttp://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/You can also post your query in Development Forum if you face any problem while using script.Development Forum: http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads/ Amit Tank || MVP - Exchange || MCITP - Exchange 2007 || http://ExchangeShare.WordPress.com
December 26th, 2008 12:15pm

I thought those instructions sounded familiar! They're taken directly from my article on the subject you can find at the link below, so, Hans, if you need screen shots to accompany the text, see the link below: http://www.msexchange.org/articles/PFDavAdmin-tool-Part2.htmlNeil Hobson, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
December 27th, 2008 11:29pm

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

Other recent topics Other recent topics