Re: Registry entry to change from/to roaming profile

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Wed, 8 Feb 2006 19:23:05 -0000, "David Wood" <jdwood37@xxxxxxxxxxxx> wrote:

Does anyone the reg entry in CURRENT_USER to make a profile local (or back)?
I need to run a script to do so

See tip 5346 » How do I retrieve a user's ProfileImagePath in batch?
in the 'Tips & Tricks' at http://www.jsifaq.com

Also get the SID (see line 5) and use it to set the ProfileImagePath
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\%sid%" /v ProfileImagePath /T REG_EXPAND_SZ /F /D "<The path>"


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
.



Relevant Pages

  • Re: Rename local administrator
    ... User's do have a property called objectSid that contains the SID, ... Steve Seguis - MCSE, MVP Windows Server, SCJP ... > example in your script, I can get a user name and profile etc. by ... Since the local administrator name has been changed ...
    (microsoft.public.scripting.vbscript)
  • Re: SID History
    ... I've tried the sidhist.vbs script from MS and it does not run on ... then paste the SID in the SIDHistory attribute. ... Username - JohnD ... Always test ANY suggestion in a test environment before implementing! ...
    (microsoft.public.windows.server.active_directory)
  • WSH get file with SIDs of groups
    ... Directory (previous script does that). ... Now I have to get the SID of the ... groups in order to feed them to my ADMT tool to make the conversion ... string with full distinguished name of group ...
    (microsoft.public.scripting.wsh)
  • RE: ReACL when migration a FileServer between domains
    ... Since ADMT v3 just released for some time and the script for ADMT3 for SID ... Mapping file is still unavailable now. ... MSDN newsgroups ...
    (microsoft.public.windows.server.migration)
  • Re: get clients security-log thru WIN2K GPO?
    ... You can assing it as a startup script in the ... >>schedule running the event collection script. ... >>Windows Server MVP ...
    (microsoft.public.win2000.group_policy)