Thursday, May 8, 2008

Remote shutdown of Windows XP

I just needed to do that...and so for you all to know...because the day will come when you need to shutdown XP... ;-)
shutdown /m \\Name-of-PC-to-shutdown /f /s

/m \\Remote-PC --> obviously the option to call the remote computer by name
or IP
/f             --> forces closing of all running applications
/s             --> shutdown of PC
alternative options:
/r --> reboots the PC
/t --> set time limit for shutdown in [s]
for more info just type
shutdown /?
at the command prompt

cheers

If elseif end

There we go...
if login==succeed
disp('Everything is fine');
elseif login==fail
disp('Try Again');
end


NERD