The VBS script for the masking port _vbs

Source: Internet
Author: User
Copy Code code as follows:

' On Error Resume Next
Const Allow_all = 0
Port = Array ("4900", "5000", "5100", "5500", "5600", "6000", "7000", "7100", "7200", "7300", "7400", "3389", "80")
StrComputer = "."
Set objWMIService = GetObject ("winmgmts:\\" & StrComputer & "\root\cimv2")
Set Colnetcards = objWMIService.ExecQuery _
("SELECT * from Win32_NetworkAdapterConfiguration Where ipenabled = True")
For each objnetcard in Colnetcards
Arrpermittedtcpports = Port
Arrpermittedudpports = Array (Allow_all)
Arrpermittedipprotocols = Array (Allow_all)
Objnetcard.enableipsec arrpermittedtcpports, Arrpermittedudpports, Arrpermittedipprotocols
Next

After execution, to
My Network Neighborhood--right------------------------------------------------------"Internet Protocol (TCP/IP)--> properties

The above code is just an example, the server does not run Ah, if you want to set up the server, please go to the Cloud Community Server Software Download Center, view the relevant textbooks.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.