Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Exchange move users in OU

$
0
0

Hello

Is it possible to prompt a admin who is running a PS script for information.  I am using the script below to get the users from an OU and move them from exchange 2003 DB to a new DB on exchange 2010.  We have a number of OU's in AD and when the script is run I would like it to Prompt for OU and the Target DB. 

Get-Mailbox -OrganizationalUnit "OU name" | New-MoveRequest -TargetDatabase " DataBase"

w


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>