Tag Archives: exchange

Show activesync users with powershell

 

Powershell command to display the users who uses Active-sync to connect with smartphones to the exchange server.

 

to count the users, place the result in a variable an use count.

 

Archive-User function – Clean up an user from AD and Exchange

 

(updated version as a function. Some error handling will follow later)

Powershell Function for cleaning up an AD user and exchange account. This can be used for example when a user leaves the company.

The information, files and mail from the user is placed in an archive folder on the network. After this has been done the user is cleaned from the network.

use as: .Archive-MWUser.ps1 -Mwusername  avanboerum