Blog durchsuchen

Freitag, 13. Mai 2016

Powershell 5 und Exchange - keine gute Idee


Das Windows Management Framework 5.0 oder auch kurz gesagt "Powershell 5" ist eine tolle Sache. Viele nette Neuerungen wie CopyPaste mit den Windowstastaturkürzeln, Verwendung von ZIP-Archiven, Pakete aus Internet-repositorys importieren usw...



Wer allerdings auch für seine lokalen Exchange-Server verantwortlich ist, sollte vorsichtig sein. 

Wie in der Exchange Server Supportability Matrix nämlich ersichtlich ist, wird Windows Management Framework 5 (noch) nicht unterstützt!

Wenn man sich jetzt denkt, dass dann halt irgendeine Kleinigkeit nicht funktioniert, die man wahrscheinlich eh nie im Leben braucht... irrt sich gewaltig!
Das Ergebnis - tut man es trotzdem - bedeutet nämlich dann, dass sich die Exchange Management Shell nicht mehr zu Exchange verbinden kann. 

Das ganze sieht dann in etwa so aus...

         Welcome to the Exchange Management Shell!Full list of cmdlets: Get-CommandOnly Exchange cmdlets: Get-ExCommand
Cmdlets that match a specific string: Help *<string>*
Get general help:
Help

Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
Exchange team blog: Get-ExBlog
Show full output for a command: <command> | Format-List

Show quick reference guide: QuickRef
Tip of the day #26:
Forget a property name? Not a problem because you can use wildcard characters to retrieve all properties that match the
part of the name that you specify:


 Get-Mailbox | Format-Table Name,*SMTP*

VERBOSE: Connecting to SCVLTAX501604.cvlt-axians.group.
New-PSSession : Cannot find path '' because it does not exist.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], RemoteExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed

VERBOSE: Connecting to SCVLTAX501604.cvlt-axians.group.

New-PSSession : Cannot find path '' because it does not exist.
At line:1 char:1
+ New-PSSession -ConnectionURI "$connectionUri" -ConfigurationName Micr ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], RemoteExc
   eption
    + FullyQualifiedErrorId : PSSessionOpenFailed


VERBOSE: Connecting to SCVLTAX501605.cvlt-axians.group.


Sollte noch ein anderer Exchange-Server vorhanden sein, kann sich die Shell dorthin verbinden. Auch Verbindungen zu Office 365 funktionieren. 

Beheben lässt sich das genze wieder indem man das WMF 5.0 einfach wieder deinstalliert.

Keine Kommentare:

Kommentar veröffentlichen