Powershell Links for Exchange 2007/2010

by butsch 26. October 2011 14:22

Hot wo automate a Powershell on Windows Server:

http://exchangeshare.wordpress.com/2008/12/08/how-to-schedule-powershell-script-for-an-exchange-task/

Free ActiveRoles Management Shell for Active Directory 32/64-bit from Quest:

http://www.quest.com/powershell/activeroles-server.aspx
http://ss64.com/ps/quest.html

How to load the Powershell Plugins into the Shell (As example Exchange and the Quest)

 

http://technet.microsoft.com/en-us/library/bb963745.aspx

Add-PSSnapIn -Name Microsoft.Exchange.Management.PowerShell.Admin,Quest.ActiveRoles.ADManagement

http://poshcode.org/2231

Here is how to skip/catch the error if the SNAP in has laready been registered.

 

  1. #Load Exchange PS Snapin
  2. If (@(Get-PSSnapin -Registered | Where-Object {$_.Name -eq "Microsoft.Exchange.Management.PowerShell.E2010"} ).count -eq 1) {
  3.     If (@(Get-PSSnapin | Where-Object {$_.Name -eq "Microsoft.Exchange.Management.PowerShell.E2010"} ).count -eq 0) {
  4.          Write-Host "Loading Exchange Snapin Please Wait...."; Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010}
  5.          }
  6.  
  7. #Load Exchange PS Snapin
  8. If (@(Get-PSSnapin -Registered | Where-Object {$_.Name -eq "Microsoft.Exchange.Management.PowerShell.Admin"} ).count -eq 1){
  9.     If (@(Get-PSSnapin | Where-Object {$_.Name -eq "Microsoft.Exchange.Management.PowerShell.Admin"} ).count -eq 0) {
  10.         Write-Host "Loading Exchange Snapin Please Wait...."; Add-PSSnapin Microsoft.Exchange.Management.PowerShell.Admin}
  11.         }

 

Removing mailbox export and import requests from command New-MailboxExportRequest -Mailbox $Identity -FilePath $pstshare$user".pst"

http://thoughtsofanidlemind.wordpress.com/2010/12/21/removing-mailbox-export-and-import-requests/

Tags:

Exchange 2007 | Exchange 2010 | Scripting | Server 2008 R2

Comments are closed

Werbung von Drittfirmen (Nicht Butsch Informatik):

Werbung von Drittfirmen via Google Adsense: