Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Server Migration > Script to change User Profile paths

Reply
Thread Tools Display Modes

Script to change User Profile paths

 
 
gram
Guest
Posts: n/a

 
      10-03-2007
We need a script to change about 100 users profile paths in 2003 AD, instead
of doing it manually.

The only change is the servername, rest of path is ok.

Regards


 
Reply With Quote
 
 
 
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      10-03-2007
Hello,

you have many way :
vbscript
admodify : http://www.codeplex.com/admodify

--
Cordialement,
Mathieu CHATEAU
English blog: http://lordoftheping.blogspot.com
French blog: http://www.lotp.fr


"gram" <> wrote in message
news:4703a72f$0$7362$. ..
> We need a script to change about 100 users profile paths in 2003 AD,
> instead of doing it manually.
>
> The only change is the servername, rest of path is ok.
>
> Regards
>


 
Reply With Quote
 
Ken Zhao [MSFT]
Guest
Posts: n/a

 
      10-04-2007
Hello Gram,

Thank you for using newsgroup!

Based on my knowledge, AD users and computers WILL let you select multiple
users and also let you select the properties of them, however it will not
allow you to apply the changes for the users you select rather just one of
the users. The work around is to create a script which will modify the
profilepath attribute in AD

I found the script already from Microsoft web site. Here is the sample
script for reference:
=======================
Set objUser = GetObject _
("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrika m,dc=com")

strCurrentProfilePath = objUser.Get("profilePath")
intStringLen = Len(strCurrentProfilePath)
intStringRemains = intStringLen - 11
strRemains = Mid(strCurrentProfilePath, 12, intStringRemains)
strNewProfilePath = "\\fabrikam" & strRemains
objUser.Put "profilePath", strNewProfilePath
objUser.SetInfo
=======================

I'm sorry that we are unable to assist with this request in the newsgroups
as the Partner Support newsgroups are geared towards break-fix scenarios.
It appears that this is a development-related request that would be best
addressed in the developer newsgroups. The developer newsgroups are located
at:

http://msdn.microsoft.com/newsgroups/default.asp.

The support professionals there will be able to provide you with more
efficient and suitable suggestions for your development-related needs. (I
believe that they can provide you with better assistance for this kind of
development-related issue.)

For further assistance on this issue, you may also want to contact our
Develop Support Services by telephone so that a dedicated Support
Professional can assist you further with your request. To obtain the phone
numbers for specific technology request please take a look at the web site
listed below:

http://support.microsoft.com/default...S;PHONENUMBERS.

Thanks & Regards,

Ken Zhao

Microsoft Online Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security <http://www.microsoft.com/security>
================================================== ==
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
================================================== ==
This posting is provided "AS IS" with no warranties, and confers no rights.





--------------------
| From: "gram" <>
| Newsgroups: microsoft.public.windows.server.migration
| Subject: Script to change User Profile paths
| Date: Wed, 3 Oct 2007 15:29:03 +0100
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.3959
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073
| Lines: 8
| Message-ID: <4703a72f$0$7362$>
| NNTP-Posting-Host: grail1.oxfam.org.uk
| X-Trace: 1191421743 read.news.uk.uu.net 7362 193.133.69.201:59497
| X-Complaints-To:
| Path:
TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSF TFEEDS02.phx.gbl!news-out.
cwix.com!newsfeed.cwix.com!image.surnet.ru!goblin1 !goblin.stu.neva.ru!uio.no
!news.tele.dk!news.tele.dk!small.news.tele.dk!lnew sinpeer00.lnd.ops.eu.uu.ne
t!bnewsinpeer00.bru.ops.eu.uu.net!emea.uu.net!read .news.uk.uu.net!not-for-ma
il
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.windows.server.migration:2252
| X-Tomcat-NG: microsoft.public.windows.server.migration
|
| We need a script to change about 100 users profile paths in 2003 AD,
instead
| of doing it manually.
|
| The only change is the servername, rest of path is ok.
|
| Regards
|
|
|

 
Reply With Quote
 
Mathieu CHATEAU
Guest
Posts: n/a

 
      10-08-2007
Hello,

how is it going ? Do you still need assistance ?

--
Cordialement,
Mathieu CHATEAU
English blog: http://lordoftheping.blogspot.com
French blog: http://www.lotp.fr


"gram" <> wrote in message
news:4703a72f$0$7362$. ..
> We need a script to change about 100 users profile paths in 2003 AD,
> instead of doing it manually.
>
> The only change is the servername, rest of path is ok.
>
> Regards
>


 
Reply With Quote
 
kj [SBS MVP]
Guest
Posts: n/a

 
      05-10-2010
alanmara wrote:
> hi, I need a script that reads members from a specific Group and sets
> their ProfilePath and HomeFolder.
>
> THANKS


Might be easier and quicker to use the combination of adfind and admod from
joeware.com

--
/kj


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Local User Profile path after domain change ptumelty Windows Server 0 09-11-2007 05:06 PM
Migrating all User Profile Paths to new server SJMP Active Directory 3 06-21-2007 08:31 AM
Modify Profile paths and user directory in mass. Ehren Active Directory 6 06-13-2007 04:33 PM
Script to change Profile property for user Daniel Scripting 3 03-23-2006 02:09 AM
Newbie: Modyfying user profile & homedrive paths s1mps Scripting 3 08-17-2003 09:49 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59