Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1.  
  2. Enable-Mailbox -Identity 'netwerken.local/MyUsers/Koen Bosmans' -Alias 'kbosmans' -Database 'DirectieDB'
  3.  
  4.  
  5.  
  6. [PS] C:\Windows\system32>get-user -OrganizationalUnit "MyUsers" -RecipientTypeDetails "User" | Enable-Mailbox -Database
  7. "Mailbox*"
  8.  
  9.  
  10.  
  11. //Laat top 3 gebruikers zien
  12. //de more geeft dos ouput van .txt in dit geval
  13. [PS] C:\Windows\system32>Get-MailboxStatistics -Server "exchange" | Sort TotalItemSize -desc | select DisplayName, ItemC
  14. ount, TotalItemSize -first 3 | Out-file -FilePath "c:\Exstats.txt" | more "c:\Exstats.txt"
  15.  
  16. [PS] C:\Windows\system32>Get-MailboxStatistics -Server "exchange" | Sort TotalItemSize -desc | select DisplayName, ItemC
  17. ount, TotalItemSize -first 3 | Out-file -FilePath "c:\Exstats.txt" | more "c:\Exstats.txt"
  18.  
  19. //Geef commando s mbt certificaten
  20. get-excommands "*certi*"
  21.  
  22. //Geef voorbeelden
  23. //Get-Help New-ExchangeCertificate -examples
  24.  
  25.  
  26.  
  27. dag 2
  28.  
  29. //Maak een certificaat met autodiscovery aan
  30. [PS] C:\Windows\system32>New-ExchangeCertificate -DomainName mail.xios.be, exchange.netwerken.local -FriendlyName "mail.
  31. xios.be,exchange.netwerken.local,autodiscover" -Services IIS -IncludeAutoDiscover
  32.  
  33. New-ExchangeCertificate -DomainName mail.xios.be, exchange.netwerken.local -FriendlyName "mail.
  34. xios.be,exchange.netwerken.local,autodiscover" -Services IIS -IncludeAutoDiscover
  35.  
  36. [PS] C:\Windows\system32>Restart-Service MSExchangePOP3
  37.  
  38. //certificate informatie
  39. [PS] C:\Windows\system32>Get-ExchangeCertificate -Thumbprint 4BB928B8E683FA84A9D648F7F7E1BE75A67F37BE | fl
  40. PS] C:\Windows\system32>Get-TransportServer | fl *messagetr*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement