Block the ip address in the server with the command cmd win

Hello

In win server how can I block IP with the command cmd?
Thank you

The server gurus hang out more in the TechNet forums:

http://social.technet.Microsoft.com/forums/en-us/categories

Here, we help with questions and problems of security.

Tags: Windows

Similar Questions

  • CMD. EXE: IS IT POSSIBLE TO USE TWO COMMANDS INSIDE OF THE COMMAND CMD 'FOR '?

    HAY EVERYONE.
    I WROTE A PROGRAM TO CMD. EXE.
    AND I WANT TO SET A VARIABLE TO THE NUMBER OF FILES PRESENT IN A DIRECTORY.
    THE PROBLEM IS THAT I DON'T KNOW HOW TO USE THE TWO COMMANDS INSIDE OF THE COMMAND.
    HERE IS THE EXAMPLE OF MY PROBLEM INSIDE THE BAT FILE:

    OFF @ECHO
    FOR /F %%D IN (' DIR/W/D / N / L ' "C:\WINDOWS\SYSTEM32\*." ") DLL | TROUVER/C/I/N 'B' ') SET FILES_NUMBER = % Y
    ECHO: % FILES_NUMBER %
    BREAK
    OUTPUT

    I EXPECT THAT THIS PROGRAM WAS TELLING ME HOW MANY DLL FILES THAT BEGIN WITH THE LETTER B, I HAVE IN MY SYSTEM32 DIRECTORY.
    HOWEVER, THIS PROGRAM HAVE A MISTAKE DURING ORDERING.

    | WAS NOT PLANNED AT THIS TIME.

    "WHEN I USE IT JUST COMMAND DIR/W/D O:N: C ' C:\WINDOWS\SYSTEM32\*. "DLL" | " FIND/C/I/N "B" WITHOUT THE FOR ORDER THIS ORDER WRITE A NUMBER ON THE SCREEN. THE NUMBER OF DLL FILES THAT BEGIN WITH THE LETTER B IN MY SYSTEM32 DIRECTORY.
    IF THESE TWO COMMANDS (DIR AND FIND) COMBINED ALL WORK OK.

    BUT I WANT TO REDIRECT THE OUTPUT OF THESE COMMANDS IN A VARIABLE. FOR THIS I USE THE COMMAND FOR.

    WHEN I USE JUST A COMMAND INSIDE THE ORDER, HE DIDN'T THERE WAS NO ERROR.
    BUT WHEN I USE PIPES, A MISTAKE SE PRODUCT.

    SO, MY QUESTION IS: HOW TO USE TWO COMMANDS INSIDE OF COMMAND? OR HOW TO USE A PIPE TO COMMAND INSIDE.

    YBY

    A slightly different method, but will set the Files_Number variable to what you want:

    Off @Echo
    C:
    cd\Windows\System32
    Dir B *. DLL | FindStr.Exe 'File (s)' > Temp.Txt
    FOR /F "Tokens = 1-4" %% IN (Temp.Txt) Set Files_Number = %% a
    Echo number of records Files_Number is %

    Note: You can add a Temp.Txt DEL if you want, but it is not necessary because the > causes the replaced every time that you run this. (If we had used > as our redirector, it adds to the Temp.Txt file, which we don't want.)

    In addition, when you use the / w with the DIR command that calls the large format so you get 1 account per line regardless of the number of files has the letter B in them. Also, your search for the letter B in each line through FIND counted the Bs if they're the first letter.

    My method deliberately DIRs for only these DLLs that begins with the letter B. FindStr allows us to give us only the row that contains the number of files. In the FOR-IN-DO we know that this line will have four elements of the text, so we settled our chips to 1-4. They will be placed in temporary variables a, b, c & d.

    Given that the actual number of files, that's what we want, we have Files_Number = %% a.  Had we wanted to know the total number of bytes of the file, WE Set Total_Bytes = % c.

    You can do both if you want to do like this:

    Off @Echo
    C:
    cd\Windows\System32
    Dir B *. DLL | FindStr.Exe 'File (s)' > Temp.Txt
    FOR /F "Tokens = 1-4" %% IN (Temp.Txt) Set Files_Number = %% a
    FOR /F "Tokens = 1-4" %% IN (Temp.Txt) define Total_Bytes = %% c
    Echo number of records Files_Number is %
    Echo Total number of bytes is Total_Bytes % %

  • Can I put the exact zoom for the command Cmd-0 level?

    Just for the moment, a short Cmd - 0 touch sets my document about 79% window. I want to get 75% without manual change this value each time after using the short key.

    Is this possible?

    Try to reverse the order

    app.activeWindow.zoomPercentage = 75;

    app.layoutWindows [0] return (ZoomOptions.FIT_SPREAD);

  • I use Verizon as a server with their security suite. I can receive emails with any address with the exception of Windows Live Hotmail addresses.

    I use verizon as a server with their security suite.  I can receive emails with any address with the exception of hotmail addresses.  I put the filters for hotmail, but I can not receive emails from anyone with a hotmail account.  Any ideas or suggestions?
    Thank you

    Hi DonaldMagaw,

    When you use Windows Live Hotmail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Solution Center Hotmail Portal

    http://windowslivehelp.com/product.aspx?ProductID=1

    I hope this helps.

  • Unable to connect to the server with ttisqlcs, failed to retrieve IP address of the system

    Please help me, I have installed timesten server and client on different machines in the LAN, but with the same user and group - ttadmin:ttgroup

    When I tried to connect to the server with ttisqlcs - connStr "DSN = sampleCS"

    The result gave me errors like below

    Connect "DSN is sampleCS ';.

    S1000: Unable to retrieve the IP address of the system. System error:-2

    The command failed.

    Fact.

    The related part in sys.ttconnect.ini is defined as below

    [192.168.0.206]

    Description = TimesTen Server

    Adresse_reseau = 192.168.0.206

    PORT_TCP = 53397

    And the sys.odbc.ini

    [ODBC data sources]

    sampleCS = TimesTen 11.2.2 Client Driver

    [sampleCS]

    TTC_SERVER = 192.168.0.206

    TTC_SERVER_DSN = nredb_ds

    That wants it mean by 'recovering intellectual '?

    He is trying to resolve IP by hostname even when I already gave him the ip address?

    Either way, I can ping 192.168.0.206 and telnet to port 53397 without problem.

    Please help me, thanks ~

    It does not matter that they are VMs (I use between virtual machines all the time), but "Networking" of VM, of course, must be set up correctly. But if you can ping and telnet between VMS so that shouldn't be a problem.

    On the client computer, you have an entry in/etc/hosts for the client machines and the server? Even on the server? Please check that and add entries if they are not there and see if it helps. If not then we need to find the client using 'strace' to see which system call fails. Please try and after the release (or at least the last part that leads to failure).

    Thank you

    Chris

  • Is it possible to block the execution of Javascript from an IP address?

    In accordance with article http://tech.firstpost.com/news-analysis/more-trouble-for-airtel-injects-javascript-code-to-monitor-data-usage-activist-receives-notice-270111.html, my broadband provider is inserting javascript in web pages browsed by me. I would like to block the download and execution of Javascript to this IP address. is it possible to do?

    Have you tried the YesScript extension? It can block scripts by IP (or domain name).

    1. Add YesScript in Firefox.
    2 Add-ons Manager open (Ctrl + Shift + A)
    3. click on Extensions
    4. click the button Options of YesScript
    5. Add the IP address

  • TB has ceased to send or receive e-mail messages through Verizon Server (with the last parameters) without Thunderbird updates on 20/09/2014

    To the test. The last time I tried to send this qustion access was denied and I've lost the value of one hour of work.

    WiFi hotspot is the likely cause.
    http://www.nowiressecurity.com/articles/protecting_connections_at_wi-fi_hotspots.htm

    Maybe the server is configured to block ports, but it will access http through a browser.
    or maybe something like this has happened.
    Internet service providers will be blocking IP addresses where spam is known to come from in the past. They use services list to identify these IP addresses. If the mobile home park is set to the index, Park mobile home ISP is blocking the mobile home park may be totally unaware of the problem.

    http://en.Wikivoyage.org/wiki/Internet_access
    Some web access points will restrict access to known as host webmail sites. Include a few research libraries, universities and private companies wishing to discourage users to check their personal email during working hours. However, almost all Internet cafes and other public access points will allow you to access your webmail: for many of their users, webmail is the reason why they are here.

    Using the e-mail software for Outlook, Lotus Notes or Thunderbird or Mac's Mail.app may be restricted if your ISP or access point blocking access or requires access through a proxy server.

  • TCP on PC server with the network interface has 2

    If I need to create a TCP on PC server with the network interface has 2 with a different IP address, for example 192... and 172... and the IP address of the client side is 192..., is there something I need to take care.

    Any suggestion, thank you.

    No, by default the server listens on all interfaces.

  • How to block the registration of files with a windows xp-specific extension

    How to block the registration of files in windows xp with a specific extension, example the user cannot save a file with the extension exe or mp3 or another, as management on the filtering of files, windows 2003 server, I can't find the steps for the blocking process I mean in windows xp prof

    Windows cannot do natively.  A file name is simply a file name and you can not prevent the registration of a file based on its extension.

    You can change file associations, such as a double click on a file with a particular extension will not automatically launch an application given, however, but that's not what you asked.
    You may also schedule a program to run from time to time which will erase all files with a given as well.  but until this program is executed, such a file might exist on your disk.

    HTH,
    JW

  • How to block the address in Windows Mail

    How can I permanently block an address or a domain.  When I block an email address, now it goes to my spam. I want that emails that are on my blocked list should be deleted. If I check (permanently delete the box) which suppose to delete suspicious emails, it removes all the emails coming to my email box. I sent two personal emails to my friends that I know are not spam in my Windows Mail and they also get deleted until they get not even read. Does anyone know how to permanently block an email address after you have manually was put in the e-mail block list.

    Apply the rules of message instead of blocked senders. Assuming that a spammer does not change the domain name, you can create a rule:

    Where the line contains people
    Delete it and stop processing more rules (or remove it from the server, and you will never see it)
    Click on People contains and add the domain. Ex: @yahoo.com.

    These links refers to Outlook Express, but are identical to Windows Mail.

    Tips Message rule
    http://www.insideoe.com/tips/rules.htm

    Control junk e-mail in Outlook Express
    http://www.Microsoft.com/Windows/IE/community/columns/junkmail.mspx

    Message rules does not?
    http://www.insideoe.com/FAQs/why.htm#rules

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Help with the easy VPN server with LDAP

    Hello

    I used to be able to set up our easy VPN server with local authentication.

    But now, I'm trying to use LDAP authentication to match with our policies.

    Can someone help me please to check the config and tell me what is wrong with him?

    My router is a Cisco1941/K9.

    Thank you in advance.

    Ryan

    Current configuration: 5128 bytes
    !
    ! Last configuration change at 13:25:16 UTC Tuesday, August 28, 2012, by admin
    ! NVRAM config update at 05:03:14 UTC Monday, August 27, 2012, by admin
    ! NVRAM config update at 05:03:14 UTC Monday, August 27, 2012, by admin
    version 15.2
    horodateurs service debug datetime msec
    Log service timestamps datetime msec
    no password encryption service
    !
    router host name
    !
    boot-start-marker
    boot-end-marker
    !
    !
    !
    AAA new-model
    !
    !
    AAA group ASIA-LDAP ldap server
    Server server1.domain.net
    !
    AAA authentication login ciscocp_vpn_xauth_ml_1 local
    AAA authentication login ASIA-LDAP-AUTHENTIC ldap group ASIA-LDAP
    local VPN_Cisco AAA authorization network
    Group ldap AAA authorization network ASIA-LDAP-ASIA-LDAP group authorization
    !
    !
    !
    !
    !
    AAA - the id of the joint session
    !
    !
    No ipv6 cef
    !
    !
    !
    !
    !
    IP domain name domaine.net
    IP cef
    !
    Authenticated MultiLink bundle-name Panel
    !
    Crypto pki token removal timeout default 0
    !
    Crypto pki trustpoint TP-self-signed-765105936
    enrollment selfsigned
    name of the object cn = IOS - Self - signed - certificate - 765105936
    revocation checking no
    rsakeypair TP-self-signed-765105936
    !
    !
    TP-self-signed-765105936 crypto pki certificate chain
    certificate self-signed 01
    30820229 30820192 A0030201 02020101 300 D 0609 2A 864886 F70D0101 05050030
    2 060355 04031325 494F532D 53656 C 66 2 AND 536967 6E65642D 43657274 30312E30
    69666963 37363531 30353933 36301E17 313230 36323630 39323033 0D 6174652D
    355A170D 2E302C06 1325494F 03550403 32303031 30313030 30303030 5A 303031
    532D 5365 6C662D53 69676E65 642D 4365 72746966 69636174 652 3736 35313035
    06092A 86 4886F70D 01010105 39333630 819F300D 00308189 02818100 0003818D
    C1B7E661 4893D83A EFE44B76 92BAA71A 6375 854 C 88 D 4533E51A 49791 551D8EF7
    F82E2432 E65B401D 27FE4896 2105B38A CB1908C1 9AE2FC19 8A9393C3 1 B 618390
    EE6CB1CC 5C8B8811 04FA198E 16F3297B 6B15F974 13EE4897 97270547 31 74270
    4590ACA6 68606596 97C5D4D5 462CACA0 CDDAC35A 17415302 CFD4E329 8E7E542D
    02030100 01A 35330 03551 D 13 51300F06 0101FF04 05300301 01FF301F 0603551D
    23041830 1680142E FF686472 569BCCF1 552B 1200 1 060355 5B660F30 D35060DB
    1D0E0416 04142EFF 9BCCF155 68647256 2B1200D3 5060DB5B 660F300D 06092 HAS 86
    01010505 00038181 00558F64 05207 D 35 AA4BD086 4579ACF6 BCF6A851 4886F70D
    1D0EA15B 75DBFA45 E01FBA5C 6F827C42 1A50DD11 8922F1E5 3384B8D8 8DD6C222
    0187E501 82C1C557 8AD3445C A4450241 75D771CF 3A6428A6 7E1FC7E5 8B418E65
    74D265DD 06251C7D 6EF39CE9 3 D FE03F795 692763 AE865885 CFF660A5 4C1FF603
    3AF09B1E 243EA5ED 7E4C30B9 3A
    quit smoking
    license udi pid CISCO1941/K9 sn xxxxxxxxxxx

    ISM HW-module 0
    !
    !
    !
    secret admin user name of privilege 15 5 $1 rVI4$ WIP5x6at0b1Vot5LbdlGN.
    ryan privilege 0 0 pass1234 password username
    !
    redundancy
    !
    !
    !
    !
    !
    !
    !
    crypto ISAKMP policy 1
    BA 3des
    preshared authentication
    Group 2
    !
    Configuration group customer isakmp crypto VPN_Group1
    xxxxxxxxxxxx key
    DNS 10.127.8.20
    pool SDM_POOL_1
    ACL 100
    netmask 255.255.255.0
    ISAKMP crypto ciscocp-ike-profile-1 profile
    match of group identity VPN_Group1
    authentication of LDAP-ASIA-AUTHENTIC customer list
    whitelist ISAKMP ASIA-LDAP-authorization of THE
    client configuration address respond
    virtual-model 1
    !
    !
    Crypto ipsec transform-set esp-SHA-ESP-3DES-3des esp-sha-hmac
    !
    Profile of crypto ipsec CiscoCP_Profile1
    game of transformation-ESP-3DES-SHA
    set of isakmp - profile ciscocp-ike-profile-1
    !
    !
    !
    !
    !
    !
    !
    interface Loopback0
    IP 10.127.15.1 255.255.255.0
    !
    the Embedded-Service-Engine0/0 interface
    no ip address
    Shutdown
    !
    interface GigabitEthernet0/0
    IP xxx.xxx.xxx.xxx 255.255.255.224
    automatic duplex
    automatic speed
    !
    interface GigabitEthernet0/1
    IP 10.127.31.26 255.255.255.252
    automatic duplex
    automatic speed
    !
    type of interface virtual-Template1 tunnel
    IP unnumbered Loopback0
    ipv4 ipsec tunnel mode
    Tunnel CiscoCP_Profile1 ipsec protection profile
    !
    local IP SDM_POOL_1 10.127.20.129 pool 10.127.20.254
    IP forward-Protocol ND
    !
    IP http server
    local IP http authentication
    IP http secure server
    IP http timeout policy slowed down 60 life 86400 request 10000
    !
    IP route 0.0.0.0 0.0.0.0 GigabitEthernet0/0
    IP route 10.0.0.0 255.0.0.0 10.127.31.25
    IP route 10.127.20.128 255.255.255.128 GigabitEthernet0/0
    !
    Note access-list 100 category CCP_ACL = 4
    access-list 100 permit ip 10.0.0.0 0.255.255.255 everything
    !
    !
    !
    !
    !
    !
    !
    LDAP attribute-map ASIA-username-map
    user name of card type sAMAccountName
    !
    Server1.domain.NET LDAP server
    IPv4 10.127.8.20
    map attribute username-ASIA-map
    bind authenticates root-dn CN = xxx\, S1234567, OU = Service accounts, OR = Admin, OU = Acc
    DC = domain, DC = net password password1
    base-dn DC = domain, DC = net
    bind authentication-first
    !
    !
    control plan
    !
    !
    !
    Line con 0
    line to 0
    line 2
    no activation-character
    No exec
    preferred no transport
    transport of entry all
    output transport lat pad rlogin lapb - your MOP v120 udptn ssh telnet
    StopBits 1
    line 67
    no activation-character
    No exec
    preferred no transport
    transport of entry all
    output transport lat pad rlogin lapb - your MOP v120 udptn ssh telnet
    StopBits 1
    line vty 0 4
    transport telnet entry
    !
    Scheduler allocate 20000 1000
    end

    Router #.

    Ryan,

    It seems that you are facing the question where it is indicated in the section:

    Problems with the help of "authentication bind first" with user-defined attribute maps:

    * Then you are likely to see a failure in your authentication attempt. You will see the error message "Invalid credentials, result code = 49.  The newspapers will look something like the journals below: *.

    Which is the same error you see. Go ahead and replace in your attribute map and test again.

    If you remove the command "bind-first authentication' configuration above, everything will work correctly.

    https://supportforums.Cisco.com/docs/doc-17780

    Tarik Admani
    * Please note the useful messages *.

  • Unable to connect to the server with Smart View essbase

    Hello

    I'm having trobules connection Smart View to make ad hoc analyses, but perfectly I could establish a connection with planning and navigate web forms in Excel.

    The address that I use to connect to Essbase is: http:// < server >: 19000/aps/SmartView and planning url is http:// < server >: 19000/HyperionPlanning/SmartView

    I have already used these URLS in another server with the version 11.1.2 but now that I'm trying to connect to a server with v11.1.1.3 I can't. Whenever I connect to planning to see forms a prompt appears with the message saying that "I connect to a server with an earlier version" but I could work perfectly with the forms. When I connect to essbase, I can see the apps but I can't just do any analysis adhoc.

    Could someone has an idea of what could happen?

    Thanks in advance

    Published by: user9143843 on January 13, 2011 04:58

    SmartView 11.1.2 is not compatible with Essbase 11.1.1.3.

    Reference - http://www.oracle.com/technology/software/products/ias/files/fusion_certification.html

    HTH-
    Jasmine.

  • Version 29: Address bar is filled with static icons to Firefox. Impossible to type the URL in the address bar.

    I have never seen anything like this before and can't find a solution in support or in a general Google search.

    We have a user who has an address bar has filed with the static icons in Firefox (there's a screenshot if there is no way to predict that). If the user clicks on them, they aren't going anywhere (they shouldn't be here anyway, no?). This user is unable to type in the address bar, either. Not sure if there was an auto-update to version 29 of the next day or not, but Firefox has been uninstalled a sweet version of installed 29 - reasoning that he could be an installation problem. The question remains. This user is not having the same problem with Chrome. Have not tried to breed with another browser on that machine. Have not heard complaints from other users in the Office using version 29.

    Is there a setting being ignored with version 29? Is this a bug? Should we try to install version 28 and see if it's a question of versioning, or maybe something else? Try to eliminate possible problems and move to the next set of solutions.

    Thank you

    Hello Wudumaer, other users have reported that this error can be caused by third-party extensions like Icon RSS 1.0.6...

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • Firefox refuses to stop the blocking of pop-up windows - up, even with added exceptions and blocker completely disabled.

    I work in a facility that uses a corporate intranet to access our database. The database uses windows pop up widely important information. Problem is that Firefox absolutely will NOT stop block popup windows no matter what I try. At first I added our database server to the list of exceptions. It worked for a while, but soon after resumption of the important pop-up blocking. I then completely disabled the blocking of popup windows (options > > content > > unchecked "block popup windows"). It did not work until I closed and reopened Firefox. A week later (today!), Firefox takes over again blocking the pop-up windows. I double checked my settings to confirm that Firefox still claims to have the popup blocker off.
    At this point, I am at a loss on how to proceed. I looked at other issues similar and my frustration (and certainly their even more), individuals requesting repeatedly told them to turn off the blocker of popups even after explaining that they already have. Help would be very appreciated.

    Thanks for the description of the Firefox Safe Mode. I just thought that Safe Mode is a condition under which we could launch Windows XP in a minimal operating system by starting a startup sequence, hold down the F8 key and effectively manage the prrams troubleshooting and maintenance for Windows. It seems that the Windows XP of Firefox version could run not affected by a virus, a worm or other malware, and ge fixed.

    Please try this Linux distribution. They are many, and I'm a fan.

  • How to block the site from the db with Mozilla?

    How to block the site from the db with Mozilla?
    I noticed this file is blocked by some customers of Mozilla. Is this possible to Mozilla software and security settings?

    On another machine it works but the other cannot be connected to the database. This puts inside Mozilla technical possible?

    See:

Maybe you are looking for

  • Iconia one 7 b1 740 8 GB can update kitkat 4.4?

    Iconia one 7 b1 740 8 GB can update kitkat 4.4? and why I can't see the site of 740 on acer iconia one 7 b1?

  • Resolution mismatch message

    My monitor broke and I got an Emerson LED TV (22-inch) to use as a monitor.  I get this message: "conflict resolution. Change resolution of currency "on starup.  The message disappears and the screen works and sounds great, except the entire screen i

  • Z3 blackBerry Blackberry ID forgotten password

    I forgot my password Blackberry ID. I put your hint question. But whenever I answer the question, it is to say that the answer is incorrect. What should do?

  • Send table of C++ to QML

    Hi, I want to send an object in C++ to QML so that when received by QML, it'll be like table variant. Is this possible? How to build a QVariant to contain the array of integers? Also, when I use QVariant as return type: Q_INVOKABLE QVariant getArrayI

  • Word highlights all text.

    I use Windows 7, with Word 2010, everything I type in is underlined. Selecting; underscore ' button does nothing. What should I do to change it to no underlining? Thank you.