I'm loath to include this because if you have Group Policy Preferences, they can sometimes request a logout when using the /Force parameter. This will essentially cause your script to freeze up while it waits for a Yes / No answer.
If you have success with the above method, I'd continue to use it. But be aware that the introduction of GPPrefs may cause this to hang.
Dan
If you have success with the above method, I'd continue to use it. But be aware that the introduction of GPPrefs may cause this to hang.
Dan