Solved

Exchange 2010 Change Departments

Posted on 2013-06-11
5
255 Views
Last Modified: 2013-06-17
Hello,

I can query a list of users in PowerShell, Get-User -Filter "Department -eq '88'", but how do I update to a new Department for all users with 88 to 89?
0
Comment
Question by:pfc_it
  • 4
5 Comments
 
LVL 12

Accepted Solution

by:
Seaton007 earned 500 total points
Comment Utility
0
 
LVL 1

Author Comment

by:pfc_it
Comment Utility
I get the following.

get-aduser -filter {Department -eq "88"}
The term 'get-aduser' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:11
+ get-aduser <<<<  -filter {Department -eq "88"}
    + CategoryInfo          : ObjectNotFound: (get-aduser:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 
LVL 1

Author Comment

by:pfc_it
Comment Utility
0
 
LVL 1

Assisted Solution

by:pfc_it
pfc_it earned 0 total points
Comment Utility
get-aduser -filter {Department -eq "88"} | Set-ADUser -Department 89

This command worked.
0
 
LVL 1

Author Closing Comment

by:pfc_it
Comment Utility
get-aduser -filter {Department -eq "88"} | Set-ADUser -Department 89

This command worked.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A short article about problems I had with the new location API and permissions in Marshmallow
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now