Tip: Run Forefront Commands while Working with Exchange Management Shell

Compared to all the behind-the-scenes tasks that are performed when you work with the Exchange Management Shell, the Forefront Management Shell is very simple.

Follow Our Daily Tips

RSS | Twitter | Blog | Facebook

Tell Us Your Tips

Share your tips and tweaks.

When you select the related menu item, Windows runs PowerShell and loads the FSSPSnapin. Because PowerShell is run with no security context, you won’t be able to perform administrative tasks.

To resolve this, you need to right-click the Forefront Management Shell and then select Run As Administrator to open an elevated, administrator shell. If you want to run Forefront commands while work¬ing with the Exchange Management Shell, all you need to do is type the following command:
Add-PSSnapin FSSPSSnapin

Adding this command to your scripts allows you to work with Forefront Security in your scripts as well.

From the Microsoft Press book Microsoft Exchange Server 2010 Administrator’s Pocket Consultant by William R. Stanek.

Looking for More Tips?

For more tips on Exchange Server and other Microsoft technologies, visit the TechNet Magazine Tips library.