?
Solved

Exchange 2010 Change Departments

Posted on 2013-06-11
5
Medium Priority
?
289 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
When you discover the power of the R programming language, you are going to wonder how you ever lived without it! Learn why the language merits a place in your programming arsenal.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Simple Linear Regression

850 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