WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Refresh Policy

 Keywords: policies refreshed explorer reboot restart

Question:

I have a program that is removing workstation policy restrictions (for support purposes). Most of the things work, but some things require Explorer (the shell) to be "refreshed" somehow. If I kill Explorer.exe and restart it, everything works the way I want it to. However, I'd rather not terminate Explorer to get this to work. Is there someway to do this?

Answer:

Give this a try:
;SendMessage
HWND_BROADCAST = -1
WM_WININICHANGE = 26
IntControl (22, HWND_BROADCAST, WM_WININICHANGE, 0, 'Policy')

Article ID:   W16480
File Created: 2005:02:18:12:20:54
Last Updated: 2005:02:18:12:20:54