Page 1 of 1 1
Topic Options
#133532 - 2005-02-09 02:01 PM Rename current userprofile
CalderX Offline
Fresh Scripter

Registered: 2002-04-24
Posts: 6
Loc: Boden north of Sweden
Is it possible to rename a local userprofile in Windows NT/2000 with Kix? How do I deal with the SID? I have tried the UserRename UDF but nothing happens. I am of course administrator when I tested it.

Calder

Top
#133533 - 2005-02-09 02:20 PM Re: Rename current userprofile
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
It is a very painful process.

Why do you want to rename the profile? Explain what you are trying to do and why you are trying to do it. We might be able to offer a better suggestion.

Top
#133534 - 2005-02-09 05:15 PM Re: Rename current userprofile
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I have to agree with Richard..

Nuff Said.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#133535 - 2005-02-09 06:31 PM Re: Rename current userprofile
burnsc Offline
Starting to like KiXtart

Registered: 2004-04-14
Posts: 171
If he is meaning 'repath' the %UserProfile% directory. I have been successful on a number of machines(NT 4.0 workstation and XP Professional) by just changeing a few registry entries(provided of course that installed software plays by windows rules).
I did this by hand though. I have not tried this in a kix script, even though it should be able to be emulated. There are provisions though. Like the user you are moving can not be logged on.
I simply created the new directory. Moved the profile to the new directory. Update the registry keys.

Top
#133536 - 2005-02-09 06:38 PM Re: Rename current userprofile
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
If the user is renamed and you want the profile to match, just temporarily rename their existing profile, let the user logon and create a new profile, and then rename the new to something else and the old to the new.

I see no real reason to do this however unless you are anal about having them match.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#133537 - 2005-02-09 06:45 PM Re: Rename current userprofile
burnsc Offline
Starting to like KiXtart

Registered: 2004-04-14
Posts: 171
The only real reason I can think of would not happen very often. That reason would be: It frees the administrator from having to remember a username history in the event of trying to recover the users data in the event certain kinds of disaster recovery is needed for the users profile.

Like I said though, this would not happen very often. I get anal like this in my administration(when I have the time or when I dont think the change can be logically remembered by my feeble mind ).

Top
#133538 - 2005-02-12 01:01 AM Re: Rename current userprofile
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Quote:

username history



So, your users are changing their names on a regular basis?
_________________________
There are two types of vessels, submarines and targets.

Top
#133539 - 2005-02-12 01:34 AM Re: Rename current userprofile
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
In our company the account username stays the same despite and legal name change. The auditors insist on it. The only exception is in the case of spousal abuse.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 33 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.087 seconds in which 0.038 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org