Skip to main content

Manage - Network Adapter Protocols

Summary​

This task allows you to manage network protocols on Windows machines, including enabling, disabling, and configuring them to use DHCP.

Caution : Use this script with caution. Disabling IPv4 on the machine may result in a network disconnection.

Sample Run​

Serach for Manage - Network Adapter Protocols task and click on it SampleRun

Selec Run Now and click Run Task button
SampleRun

Dependencies​

Task Creation​

Step 1​

Navigate to Automation ➞ Tasks
step1

Step 2​

Create a new Script Editor style task by choosing the Script Editor option from the Add dropdown menu
step2

The New Script page will appear on clicking the Script Editor button:
step3

Step 3​

Fill in the following details in the Description section:

  • Name: Manage - Network Adapter Protocols
  • Description: It allows you to manage network protocols on Windows machines, including enabling, disabling, and configuring them to use DHCP.
    Caution : Use this script with caution. Disabling IPv4 on the machine may result in a network disconnection.
  • Category: Custom

step3

Script Editor​

Click the Add Row button in the Script Editor section to start creating the script
AddRow

A blank function will appear:
BlankFunction

Row 1 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input IsClientEnabled as Variable name
  • Select Enable Network Adapter Solution custom field from the dropdown
  • Click Save

Image

Row 2 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input ClientAction as Variable name
  • Select Action(ENUM - CLIENT) custom field from the dropdown for Client
  • Click Save

Image

Row 3 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input SiteAction as Variable name
  • Select Action(ENUM - SITE) custom field from the dropdown for Site
  • Click Save

Image

Row 4 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input EndpointAction as Variable name
  • Select Action(ENUM - ENDPOINT) custom field from the dropdown for Endpoint
  • Click Save

Image

Row 5 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input ClientProtocol as Variable name
  • Select Protocol(ENUM - CLIENT) custom field from the dropdown for Client
  • Click Save

Image

Row 6 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input SiteProtocol as Variable name
  • Select Protocol(ENUM - SITE) custom field from the dropdown for Site
  • Click Save

Image

Row 7 Function: Set Pre-defined Variable​

  • Select Set Pre-Defined Variable Function

Image

  • Select Custom Field
  • Input EndpointProtocol as Variable name
  • Select Protocol(ENUM - ENDPOINT) custom field from the dropdown for Endpoint
  • Click Save

Image

Row 8 Function: PowerShell Script​

Image

Paste in the following PowerShell script and set the expected script execution time to 900 seconds.

PowerShell Script

Image

Row 9 Function: Script Log​

Add a new row by clicking the Add Row button.

Add Row

A blank function will appear.

Blank Function

Search and select the Script Log function.

Script Log Selection

Script Log Selected

The following function will pop up on the screen:

Script Log Function

In the script log message, simply type %output% and click the Save button.

Script Log Save

Click the Save button at the top-right corner of the screen to save the script.

Save Script

Save Task​

Click the Save button at the top-right corner of the screen to save the script.
SaveButton

Completed Task​

Image

Deployment​

This task has to be scheduled on Devices Opted for Network Adapter Solution group for auto deployment. The script can also be run manually if required.

  • Go to Automations > Tasks.
  • Search for Manage - Network Adapter Protocols.
  • Then click on Schedule from right side and provide the parameters detail as necessary for the script completion.
  • Select Targeted Resources as device group Devices Opted for Network Adapter Solution. Image

Output​

  • Script Logs

Changelog​

2025-06-16​

  • Initial version of the document