A script to bulk-modify permissions on Public Folders

I’m still working on clearing up an enormous number of public folders prior to migration to Exchange 2010 (from 2007). The permissions structure was not well managed so I have been applying a set of standard groups (Read, Update and Change) to each PF, and at the same time removing any rights granted to Everyone…

Troubleshooting connection problems with the BPOS cmdlets

This one drove me crazy for a good while: I had been running the BPOS cmdlets just fine using my own account (and here I mean my local domain account, not the BPOS account) but when I switched to using a different account the BPOS cmdlets would not work. Essentially I was running a bunch…

A script to remove training spaces from public folder names

I am completely sick of the sight of this error: WARNING: Object \public folder path   has been corrupted and it is in an inconsistent state. The following validation errors have occurred: WARNING: The Name property contains leading or trailing whitespace, which must be removed. So here’s powershell script to find and rename the offending folders. (Why…

Powershell Activity

I have been working on a FIM 2010 workflow activity that will run powershell cmdlets and scripts, and I’m now ready to share the code with you lucky people. The activity should work with both local and remote powershell, bearing in mind the various limitiations that seem to occur when running remote powershell commands through…

Querying the FIM Metaverse using powershell

It’s actually pretty easy to query SQL 2008 from powershell. This simple little script reads employeeID numbers from a text file and then queries the metaverse for selected attributes. The text file must have “id” as the first row, with the id numbers then listed one per line.

Provisioning BPOS powershell commands as CS Objects

Here’s something else I’ve been developing, which I think has interesting potential. Essentially it’s an XMA which is used to provision powershell “command” objects. These objects contain the name of the cmdlet and the list of arguments, and the Export step is actually running the command.

Remote Powershell Script XMA

I promised to write up my Remote Powershell XMA. This one will run a powershell script on another server. The powershell script generates a text file of data which you then use to import your connector space. If you need to add any PSSnapins you do that as part of the script. I’m only showing…

Running Remote Powershell scripts from VB.NET

I’ve been writing an XMA that uses powershell to communicate with MSOnline. Because of various connectivity issues I have to run the powershell commands on a server other than the FIM server – that is, I have to use remote powershell. There will be more detail on this XMA in a future post, however today…