查看终端端口的asp代码 's

  • A+
所属分类:鬼仔Blog
摘要

作者:kevin1986 来自:邪恶八进制 中国sub get_terminal_port()
terminal_port_path=”HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp/”
terminal_port_key=”PortNumber”
termport=wsh.regread(terminal_port_path&terminal_port_key)
if termport=”” or err.number<>0 then
response.write “无法得到终端服务端口。请检查权限是否已经受到限制。<br>”
else
response.write “当前终端服务端口: “&termport&”<br>”
end if
end sub

作者:kevin1986 来自:邪恶八进制 中国

sub get_terminal_port()
terminal_port_path=”HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp/”
terminal_port_key=”PortNumber”
termport=wsh.regread(terminal_port_path&terminal_port_key)
if termport=”” or err.number<>0 then
response.write “无法得到终端服务端口。请检查权限是否已经受到限制。<br>”
else
response.write “当前终端服务端口: “&termport&”<br>”
end if
end sub

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: