Request for Windows Log on / Log off commands
Moderators: JRL, Dorian (MJT support)
Request for Windows Log on / Log off commands
I am currently trying out your new product MSnet and ran into a situation where I need to issue a command to log in and/or log off from different remote machines. Do you plan to add this command which I think is vital? Thanks.
Logging off can be achieved with the ShutDownWindows command:
ShutDownWindows>shutdown_type
Use this command to shutdown or reboot the machine. Set shutdown_type appropriatly as follows:
0: Shutdown
1: Reboot
2: Logoff
3: Forced Shutdown
4: Forced Reboot
5: Forced Logoff
Logging on cannot be achieved as Microsoft do not allow macro programs to simulate a log in, for security reasons. A workaround is to run a macro which sets the AutoLogon value in the registry to force the machine to automatically logon next time, and then do a reboot using the above command. Then disable AutoLogon again.
ShutDownWindows>shutdown_type
Use this command to shutdown or reboot the machine. Set shutdown_type appropriatly as follows:
0: Shutdown
1: Reboot
2: Logoff
3: Forced Shutdown
4: Forced Reboot
5: Forced Logoff
Logging on cannot be achieved as Microsoft do not allow macro programs to simulate a log in, for security reasons. A workaround is to run a macro which sets the AutoLogon value in the registry to force the machine to automatically logon next time, and then do a reboot using the above command. Then disable AutoLogon again.
MJT Net Support
[email protected]
[email protected]