Use the AT command in Windows

Source: Internet
Author: User
Tags echo message

Recently, because the continuous integration system of the project needs to scan the built files for viruses after the build is complete, the anti-virus software we selected is Kaspersky kav2012. However, because our CI system uses Windows Server 08 R2, kav2012 cannot be installed. However, you can only install Windows desktop + kav2012 on another machine, and add the AT command to the CI system script to scan the virus by running the Desktop System of route control.

The at command uses the following syntax:
At \ computername time/interactive |/every: date,.../next: date,... command
At \ computername ID/delete |/delete/Yes

 

First, you must ensure that the machine can be pinged through the machine name. In win7, you must check the firewall settings.Article(To be transferred from http://technet.microsoft.com/en-us/library/cc749323 (ws.10). aspx)

Nobody can ping my computer 8 out of 13 rated this helpful-Rate this topic

Updated: February 18,201 0

Applies to: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

A common step in troubleshooting connectivity situations is to use the ping tool to ping the IP address of the computer to which you are trying to connect. when you Ping, you send an ICMP echo message (also known as an ICMP echo request message) and get an ICMP echo reply message in response. by default, Windows Firewall does not allow incoming ICMP echo messages, and therefore the computer cannot send an ICMP echo reply in response.

Enabling incoming ICMP echo messages will allow others to ping your computer. however, it also leaves your computer vulnerable to the types of attacks that use ICMP echo messages. therefore, we recommended that you enable the allow incoming echo request setting temporarily, and then disable it when it is no longer needed.

To Enable ICMP echo messages, create new inbound custom rules to allow ICMPv4 and ICMPv6 echo request packets.

To Enable ICMP Echo Request for ICMPv4 and ICMPv6
  1. In the Windows Firewall with advanced security snap-in, clickInbound rulesIn the tree, and clickNew ruleInActionsPane.

  2. ClickCustomAnd clickNext.

  3. ClickAll programsAnd clickNext.

  4. ForProtocol Type, SelectICMPv4.

  5. ClickCustomizeForInternet Control Message Protocol (ICMP) settings.

  6. ClickEcho Request, ClickOK, And then clickNext.

  7. UnderWhich local IP Address does this rule match?AndWhich remote IP Address does this rule matchClick eitherAny IP AddressOrThese IP addresses. If you clickThese IP addresses, Specify the IP addresses and clickAdd, Then clickNext.

  8. ClickAllow the connection, And then clickNext.

  9. UnderWhen does this rule apply?, Click the active profile, any or all profiles (domain, private, public) to which you want this rule to apply, and then clickNext.

  10. ForNameType a name for this rule andDescriptionAn optional description. ClickFinish.

  11. Repeat steps for ICMPv6, selectingICMPv6ForProtocol TypeInstead of icmpv4.

If you have active connection security rules, it is also helpful for troubleshooting purposes to exempt ICMP from the IPsec requirements temporarily. to do this, in the Windows Firewall with advanced security snap-in, inPropertiesDialog box, clickIPSec settingsTab and clickYesToExempt ICMP from IPSec. This step is only necessary if you have active connection security rules on the computer that you are trying to ping.

 

Then, run at \ computername:

If the access is denied prompt appears, you need to configure the account for running at on this \ computername machine:

The following dialog box is displayed to change the account for running:

After the configuration, the AT command should be able to return the job in the active state on the specified machine:

 

Now, we can use the following at command to remotely control Kav for virus scanning:

C: \ Users \ Administrator> at \ WIN-SRJUT8CLLUL "C: \ Program Files \ Kaspersky Lab \ Kaspersky Anti-Virus 2012 \ avp.com" Scan/RA: C: \ scanreport \ log.txt \ dailybuildhost

Among them, scan and/Ra are all parameters of the Kav command line interface avp.com:

 

 

\ Dailybuildhost is the path for continuous Integration Server construction and virus scanning

 

The scanned log content is as follows:

 

Related Article

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.