Solved

Exchange 2010 Change Departments

Posted on 2013-06-11
5
264 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
ID: 39239347
0
 
LVL 1

Author Comment

by:pfc_it
ID: 39239405
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
ID: 39241462
0
 
LVL 1

Assisted Solution

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

This command worked.
0
 
LVL 1

Author Closing Comment

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

This command worked.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Know what services you can and cannot, should and should not combine on your server.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

831 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