user32.dll with win 7 help

Associate
Joined
8 Mar 2007
Posts
2,176
Location
between here and there
Hi,

I have a logon script that works for XP users but not windows 7.

the line in question is;

Code:
rundll32.exe user32.dll UpdatePerUserSystemParameters

like i say it works in xp but not win7.

I've had a google but no luck.

Any ideas guys??

Cheers
 
na, seems that win 7 user32.dll doesn't support the function.

any ideas of a way to refresh the reg settings on win 7 without logging off and back on again?
 
You could try forcing explorer to restart...

Hit CTRL + ALT + DELETE, to bring up the Windows task list. Highlight explorer and click on End Task, if the Shutdown screen is shown, click cancel. After a few seconds an error message will popup, click on 'end task' and the Windows explorer will be reloaded along with any new registry settings.
 
You could try forcing explorer to restart...

Hit CTRL + ALT + DELETE, to bring up the Windows task list. Highlight explorer and click on End Task, if the Shutdown screen is shown, click cancel. After a few seconds an error message will popup, click on 'end task' and the Windows explorer will be reloaded along with any new registry settings.

Nice idea, but this is to be handed out via GPO so thats a no go as it need to be fully automated.

I've just found a powershell function that will do the job on a win 7 box.

Just need to incorparate into my VBScript that I already have. :)
 
ok, so I've hit another snag....

To be able to run powershell scripts you need to change the excuection policy.

I decied that it would be easier to change the reg entry, run the script then change the reg entry back to normal.

My problem is that the script is failing to set the entry because of permissions. I've edited the GPO to change the permissions of the parent reg key so the script can make the change but the GPO is also failgin becuase it's running at user logon.

Is there anyway to set the permissions of the registery at a admin or elevated level so it sticks??

cheers in advance guys :)
 
Back
Top Bottom