If you have the Exchange Management Tools installed, you can easily import the Exchange module into a standard Powershell by running the Add-PSSnapin cmdlet.
Depending on the Exchange version, the module to add is slightly different:
Exchange 2007 | Microsoft.Exchange.Management.PowerShell.Admin |
Exchange 2010 | Microsoft.Exchange.Management.PowerShell.E2010 |
Exchange 2013 | Microsoft.Exchange.Management.PowerShell.SnapIn |
If you're not sure about the version, you can also use wildcard characters:
Add-PSSnapin *Exchange*
If you don't want to install the management tools, you can also use PS remoting to remotely access the management shell from a standard Powershell.
With PowerCLI, you can generate all sorts of lists. To retrieve the configured and reported OS version of your VMs, try running this one-liner:
Get-VM | Sort | Get-View -Property @("Name", "Config.GuestFullName", "Guest.GuestFullName", "Guest.IpAddress") | Select -Property Name, @{N="Configured OS";E={$_.Config.GuestFullName}}, @{N="Running OS";E={$_.Guest.GuestFullName}}, @{N="IP Address";E={@($_.Guest.IpAddress)}} | Export-CSV -Delimiter ";" -Path "vms.csv"
« ‹ | April 2024 | › » | ||||
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |