Deploy a PowerShell script to Windows device groups to disable RDP password savingSolved

Participant
Discussion
8 hours ago Aug 18, 2026

I need to run a PowerShell script on a specific group of Windows devices to set DisablePasswordSaving=1 for RDP. Can this be done from Hexnode using Execute Custom Script, and is there a way to target only selected device groups instead of all devices?

Replies (1)

Marked SolutionPending Review
Hexnode Expert
5 hours ago Aug 18, 2026
Marked SolutionPending Review
Yes. You can deploy a PowerShell script to selected Windows devices or device groups in Hexnode using either of these methods:

Option 1: One-time execution

Use this if the script only needs to run once on the selected devices.
1. Go to the target Windows device or device group.
2. Open Actions.
3. Select Execute Custom Script.
4. Choose Windows as the platform.
5. Select PowerShell and add your script.
6. Execute the action.
This runs the script as a one-time action on the selected devices.

Option 2: Deploy through a policy
Use this if you want the script to run through device group association, including for devices added to the group later.
1. Create a new policy or edit an existing one.
2. Go to Windows > Custom Script.
3. Add the PowerShell script.
4. Associate the policy with the required device group.
When deployed through a policy, the script applies to the current devices in the group and also to new devices that are added to that group in the future.
Regards,
Mary Romero
Save