Jump to content

Recommended Posts

Posted

Hey everyone. I've ran into a small issue that I can't seem to figure out. I have a reg tweak and some commands that I need to run *after* the user is fully logged in. RunOnceEx is running too early for these and so is GuiRunOnce.

MOVE /Y "%UserProfile%\Start Menu\Programs\Accessories\Entertainment" "%AllUsersProfile%\Start Menu\Programs\Accessories"

MOVE /Y "%UserProfile%\Start Menu\Programs\*.lnk" "%AllUsersProfile%\Start Menu\Programs\"

RD /S /Q "%UserProfile%\My Documents\My Pictures"
RD /S /Q "%UserProfile%\My Documents\My Music"

DEL /Q "%UserProfile%\SendTo\My Doc*.*"
DEL /Q "%UserProfile%\Favorites\*.*"

RD /S /Q "%UserProfile%\Favorites\Favorites"
RD /S /Q "%UserProfile%\Favorites\Links"

RD /S /Q %systemdrive%\Drivers\
RD /S /Q %systemdrive%\Install\

EXIT

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]"LinksFolderName"=""

These can't be ran before the user logs in because the files aren't created until the UI is loaded fully.

LinksFolderName is empty in the "Default User" profile but once the current user's (Administrator) gui loads, it's set to LinksFolderName = "Favorites". So, it needs to be set back to "".

Any suggestions on getting these taken care of?


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...