Shutting Down NICs

Discussion in 'Windows 11' started by imlost2, Jan 24, 2023.

  1. imlost2

    imlost2 MDL Novice

    Aug 5, 2013
    19
    13
    0
    Anybody know why the command:

    • C:\Windows\System32\wbem\WMIC.exe path win32_networkadapter where PhysicalAdapter=True call disable
    no longer works in Window3s 11? I had used it in Windows 10 to prevent MS from surreptitiously updating the OS or sending telemetry info
    back to Redmond during bootup or shutdown, before my firewall started. But now that commend leaves some NICs disabled and some still operating.
     
  2. strotee

    strotee MDL Member

    Jan 30, 2011
    226
    200
    10
    I recommend PowerShell.
    Code:
    powershell -c "Get-NetAdapter | Disable-NetAdapter -Confirm:$false"
    
    That code snippet works in a batch script (.bat or .cmd). Best of luck.

    Of course, to enable them again do this command.
    Code:
    powershell -c "Get-NetAdapter | Enable-NetAdapter -Confirm:$false"
    
     
  3. imlost2

    imlost2 MDL Novice

    Aug 5, 2013
    19
    13
    0
    Thanks. I'll give it a shot. Didn't know Powershell worked in batch files. Hopefully it also works in an autoIt script. That's what I was using to have user feed back.
     
  4. MS_User

    MS_User MDL Guru

    Nov 30, 2014
    4,385
    1,183
    150
    why dont you just disable it at the HW level? is the only way to be sure MS dont sneak anything throw ;)
     
  5. imlost2

    imlost2 MDL Novice

    Aug 5, 2013
    19
    13
    0
    @MS_User, you mean in the BIOS or Windows Device Manager? That's too cumbersome unless there's a way to script it. But thanks for the suggestion.