Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

change user profile in domain per script


Recommended Posts

Hello,

we plan to move our home dirs and the profiles to another server.

I know that I'm able to change the paths with the "NET USER" command.

It works fine but we have terminalservers and with this command I'm only able to change the paths for the local data. In the User Manager I have additional options for Terminal Servers.

Is there any possibiliy or tools which can handle this?

Thanx for all tipps and tricks.

Greets

Oliver

post-64077-1157103133_thumb.png

Link to post
Share on other sites

For the Profile information you can script this in vbscript via :

objItem.Put "profilePath", "VALUE"
objItem.Put "scriptPath", "VALUE"
objItem.Put "homeDirectory", "VALUE"
objItem.SetInfo

objUser.TerminalServicesProfilePath = "VALUE"
objUser.TerminalServicesHomeDirectory = "VALUE"
objUser.TerminalServicesHomeDrive = "VALUE"
objUser.AllowLogon = Enabled
objUser.SetInfo

Hope it helps,

Link to post
Share on other sites

I'll see if i can make a little script for this, wont be able to do that at the moment though.

Do you have any specific needs ? does it need to apply to all users in an OU or just 'some' that can be specified in a txtfile ?

Link to post
Share on other sites
  • 2 weeks later...
I'll see if i can make a little script for this, wont be able to do that at the moment though.

Do you have any specific needs ? does it need to apply to all users in an OU or just 'some' that can be specified in a txtfile ?

Ah, then you can scrap my vb script comments ;-) as they only work in an AD environment. Hopefully the tool B Owen provided will help you on this then.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...