远程开启/关闭目标telnet服务的windows脚本RTCS.vbs

2019-01-16 12:16:37刘景俊

function showerror(errornumber)  
if errornumber<>0 then  
   wscript.echo "Error!"  
   wscript.quit  
else  
   wscript.echo "OK!"  
end if  
end function  

function usage()  
wscript.echo string(79,"*")  
wscript.echo "RTCS v1.10"  
wscript.echo "Remote Telnet Configure Script, by zzzEVAzzz"  
wscript.echo "Welcome to visite www.isgrey.com"  
wscript.echo "Usage:"  
wscript.echo "cscript "&wscript.scriptfullname&" targetIP username password NTLMAuthor telnetport"  
wscript.echo "It will auto change state of target telnet server."  
wscript.echo string(79,"*")&vbcrlf  
end function