none
Get command prompt via "WMIC" command. RRS feed

  • Question

  • Hello.

    Windows firewall on a client is enabled and I can't disable it via "PsExec". Can I get command prompt via "WMIC" command and then run "netsh" command for disable firewall?

    Thank you.

    Monday, July 3, 2017 9:01 AM

All replies

  • Hi, 

    We can try commands serials to disable Firewall on remote PC: 

    eca@echo off set /p var= Enter the computer FILE: WMIC /Node:%%var%% service where caption="windows Firewall" call stopservice


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, July 6, 2017 2:58 AM
    Owner