with the AD cmdlets you can do something like this, again not tested so
syntax maybe incorrect.
First user is the old principal and senond would be the new one there ane
may ways to do this and this is just one quick one.
get-aduser USERNAME -properties directreports | %{set-aduser $_ -manager
(get-aduser USERNAME)}
On Thu, Sep 23, 2010 at 11:13 AM, John Hornbuckle <
[email protected]> wrote:
> Well, that’s no good. I suck at scripting.
>
>
>
> :)
>
>
>
>
>
>
>
> *From:* Brian Desmond [mailto:[email protected]]
> *Sent:* Thursday, September 23, 2010 11:12 AM
>
> *To:* NT System Admin Issues
> *Subject:* RE: Handling AD Direct Reports
>
>
>
> *You’d need to script it – there’s no graphical way to do this as a
> one-off.*
>
> * *
>
> *Thanks,*
>
> *Brian Desmond*
>
> *[email protected]*
>
> * *
>
> *c – 312.731.3132*
>
> * *
>
> *From:* John Hornbuckle [mailto:[email protected]]
> *Sent:* Thursday, September 23, 2010 10:09 AM
> *To:* NT System Admin Issues
> *Subject:* Handling AD Direct Reports
>
>
>
> We have a principal who has transferred to a different position at another
> school.
>
>
>
> In Active Directory, a number of people have him listed as their manager in
> the “Organization” tab. I would like to transfer all of his direct reports
> to the new principal at the school.
>
>
>
> Is there an easy way to do this that I’m missing? Something other than
> moving each employee one by one?
>
>
>
>
>
>
>
> John Hornbuckle
>
> MIS Department
>
> Taylor County School District
>
> www.taylor.k12.fl.us
>
>
>
>
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
>
>
>
>
> NOTICE: Florida has a broad public records law. Most written communications
> to or from this entity are public records that will be disclosed to the
> public and the media upon request. E-mail communications may be subject to
> public disclosure.
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> ~ Finally, powerful endpoint security that ISN'T a resource hog! ~
> ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to [email protected]
> with the body: unsubscribe ntsysadmin
>
> NOTICE: Florida has a broad public records law. Most written communications
> to or from this entity are public records that will be disclosed to the
> public and the media upon request. E-mail communications may be subject to
> public disclosure.
>
>
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin