It fixes the borked Documents Library!!  Sorry, couldn't resist that.  :)

It rewrites HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion 
\ Explorer \ User Shell Folders taking out 'c:\users\CopiedUser\' and putting 
back in %USERPROFILE% on all the values for my documents and so on.

This script is the hard way. I am going to export the corrected key and do a 
runonce reg merge.

Appreciate the help, this has been a mind bender from the beginning trying to 
figure out what he did to the image. I got to the end, the fix, and my mind was 
fried. Talking it out really helped.

-----Original Message-----
From: Ben Scott [mailto:[email protected]] 
Sent: Wednesday, September 14, 2011 1:03 PM
To: NT System Admin Issues
Subject: Re: Default user runonce

On Wed, Sep 14, 2011 at 11:46 AM, Kennedy, Jim
<[email protected]> wrote:
> Most importantly it borks the Documents Library.  Fixable via a
> Kix script I have.

  What.  Does.  The.  Script.  Do?  :-)

> That script needs to RunOnce as the user logs in the first
> time...the script hits the Current User hive.

  As Scott Crawford says, it shouldn't need to run elevated for most
things under HKEY_CURRENT_USER.  Unless it's monkeying about under
HKCU\Software\Policies, in which case you should be using a GPO, not a
logon script.

-- Ben

~ 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

Reply via email to