- 11 Mar 2024
- 1 読む分
- 印刷する
- PDF
Turn Off/On LAN adapter on Windows devices.
- 更新日 11 Mar 2024
- 1 読む分
- 印刷する
- PDF
The following PowerShell scripts helps IT Admins to turn on or off the LAN network adapter on Windows 10 and above devices.
(A) Turn off LAN network
Create a file on your desktop, for example, turn_off_network.ps1 and open it in a text editor like notepad++
Copy the contents below to the file or click here to download the file.
Please provide exact name of your LAN network in the script.
netsh interface set interface "name_of_the_LAN_network" admin=disable
(B) Turn on LAN network
Create a file on your desktop, for example, turn_on_network.ps1 and open it in a text editor like notepad++
Copy the contents below to the file or click here to download the file.
Please provide exact name of your LAN network in the script.
netsh interface set interface "name_of_the_LAN_network" admin=enable
Please select the Execution Level as Device while uploading the script on Scalefusion dashboard.
Follow our guide to upload & publish the PowerShell script using Scalefusion Dashboard.
Please note that to use the PowerShell scripts, the Scalefusion MDM Agent Application must be installed on the device(s). Please follow our guide to publish and install the Scalefusion MDM Agent Application.
Notes:
The scripts and their contents are sourced from various albeit authenticated Microsoft sources and forums.
Please validate the scripts on a test machine before deploying them on all your managed devices.
Scalefusion has tested these scripts, however, Scalefusion will not be responsible for any loss of data or system malfunction that may arise due to the incorrect usage of these scripts.