run as Administrator – powershell with exchange module
(gcm exsetup).FileVersionInfo
get-command exsetup | fl FileVersionInfo
run as Administrator – powershell with exchange module
(gcm exsetup).FileVersionInfo
get-command exsetup | fl FileVersionInfo
If you have a problem with size of powershell command output take this
get-process | ft processname -autosize
or get-process | ft processname -autosize | out-file -width 1000 -filepath
next nice output feature is out-gridview
start powershell as administrator and install feature
import-module servermanager
add-windowsfeature powershell-ISE
now you can run this output command
get-service | out-gridview
here is a realy good web site with useful commands
http://exchangeserverpro.com/exchange-2010-message-tracking-log-search-powershell
[PS] C:\Windows\system32>$start=(get-date).addDays(-1)
[PS] C:\Windows\system32>$end=(ged-date)example 1: Get-MessageTrackingLog -ResultSize Unlimited |
Group-Object -Property:EventId | Sort-Object Count -Desc | Select Name,Count
example 2:
Get-TransportServer | Get-MessageTrackingLog -ResultSize unlimited -Start $start -End $end |
Where-Object {$_.EventID -eq „SEND“} | Where-Object { $_.Sender -like „*@*“ } | select TimeStamp, Sender, RecipientCount | Group-object Sender |select count, name
example3:
Get-TransportServer | Get-MessageTrackingLog -ResultSize unlimited -Start $start -End $end |
Where-Object {$_.EventID -eq „SEND“-or $_.EventID -eq „DELIVER“ } | Where-Object { $_.Sender -like „*@*“ } |
select TimeStamp, Sender, RecipientCount | Group-object Sender |select count, name
Enable-ADOptionalFeature –Identity ‘CN=Recycle Bin Feature,CN=Optional Features,CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration,DC=mydomain,DC=local’ –Scope ForestOrConfigurationSet –Target ‘mydomain.local’
you can use -whatif on the end of command and check up what will happen without risk
🙂