Not able to move user folder using Active setup in Windows 8.1

Hi All,

I am using a VBScript RedirectMy.vbs to move user folder i n Windows 8.1 using Activesetup. The Activesetup has the two registry hive to move user folder(My document and my picture) to a network drive.

The user folder is not redrecting to the network drive on the very first login (when active setup run). However if i am loging off and login back its getting set.

I have attached the vbscript. The same VBScript works fine in Windows 7. The user folders are moving on the very first login in windows 7.


Any thought why the VBScript does not work in Windows 8.1? Does the log off login is really require ?


Thanks in advance........................
RedirectMy.vbs
LVL 1
KC2TCApplication RepackagingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
Usually, the redirect either through GPO or any other means only takes effect after the second login. This is to be expected.
0
KC2TCApplication RepackagingAuthor Commented:
Hi Arnold,

But it works fine in Windows 7. Any thoughts?
0
arnoldCommented:
I'm not sure what you are looking for. I.e. windows 7, your mapping changes take effect immediately, while in windows 8 it does not.
Just use the GPO standard as a common element, I.e. the change takes effect on the second logon and be done with it.

I.e. hkey_current_user is what you are updating.

Try the following on windows 8, new user logn. Lock the workstation and relogin/unlock is the change reflected?
0
arnoldCommented:
While I have not tested your usage, (often folder redirection is best managed using GPO as it provides an "automatic" reversal of the configuration when need.)

GPO based folder redirection only takes effect after the second login.

The likely issue as you report is that the registry setins (shell folders) do not get refreshed until the next session.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.