Exchange 2010 – Export mailbox to pst
Start Exchange Management Shell. Give your self rights to do export and import Command: New-ManagementRoleAssignment –Role “Mailbox Import...
Find disabled users with their group membership and remove them from their groups
To quickly see the disabled users and their group membership in your Active Directory you can use this...
Copy group membership in AD
To copy member from one group to another you can (of cource) use Powershell. This copies the members...
List installed certificates with Powershell
To list the installed certiifcates in the local computer store I use the following one-liner: dir Cert:\LocalMachine\My |...
Transfer or seize FSMO roles with powershell
To transfer all FSMO roles from one DC to another you can use the following line in powershell: ...
DFS Replication error on Domain Controllers
If you have DFS replication errors on one or more domain controllers, first find out witch domain controller...
Get-Inboxrule – easy way to get rules from mailboxes
An easy command for checking if there are any automatic rules on an Exchange Mailbox is to use...
Test-NetConnection the new Ping?
In Windows Server 2012 R2 Microsoft added a new PowerShell command for testing your network Connection. (It works with WIndows 8.1...
AD: Count users in organizational units
To count user accounts in an organizational unit, run this powershell command: (Get-ADUser -Filter * -SearchBase “ou=Users,ou=A1,dc=contoso,dc=com”).count Where...