I have been trying to force user logoffs using rundll32.exe along with user32.dll the syntax I used was as follows: "rundll32.exe user32.dll,ExitWindowsEx 0"
When I use this command, nothing happens, no response at all. The idea I had was to schedule this command as a task which runs after x amount of idle time on a workstation, thus forcing a logoff (there doesn't seem to be any other way to do it.) I also tried using shell32.dll, but this doesn't seem to have any features for logoff.
I am also trying to find a way to prevent concurrent user logins (nothing in group policies).
Can someone please help me?
When I use this command, nothing happens, no response at all. The idea I had was to schedule this command as a task which runs after x amount of idle time on a workstation, thus forcing a logoff (there doesn't seem to be any other way to do it.) I also tried using shell32.dll, but this doesn't seem to have any features for logoff.
I am also trying to find a way to prevent concurrent user logins (nothing in group policies).
Can someone please help me?