View all Worklets
Windows

Windows - Security - Set PowerShell ExecutionPolicy to RemoteSigned

Conditions PowerShell to only run signed remote scripts.

Worklet Details

Introduction to the Powershell-based Windows - Security - Set PowerShell ExecutionPolicy to RemoteSigned Worklet

The Set PowerShell ExecutionPolicy to RemoteSigned Worklet is a PowerShell-based solution designed to enhance the security of Windows client and server endpoints. It achieves this by setting the default execution policy to RemoteSigned, a standard security practice for Windows operating systems. 

The RemoteSigned script execution policy permits powershell script to run on your local machine, while ensuring that any scripts downloaded from the internet are first digitally signed by a trusted publisher.

Why would you use the Set PowerShell ExecutionPolicy to RemoteSigned Worklet?

Managing the PowerShell execution policy is a critical aspect of Windows security. The Set PowerShell ExecutionPolicy to RemoteSigned Worklet allows you to automate this process, ensuring that all scripts executed on your system adhere to the RemoteSigned policy. 

This Worklet is particularly beneficial for large networks, where manually changing the execution policy on each computer would be time-consuming and prone to errors.

Components of the Set PowerShell ExecutionPolicy to RemoteSigned Worklet

The Worklet comprises several PowerShell scripts and configuration files. The scripts include functions for opening the X509 certificate store, checking if a certificate exists, and adding a certificate to the store.

Configuration files detail the UUID keys, statuses, certificate store names, and registry properties required for the Worklet to function correctly.

How does the Set PowerShell ExecutionPolicy to RemoteSigned Worklet work?

The Worklet operates by retrieving a base64-encoded certificate from a predetermined URL, decoding it, and verifying its thumbprint. If the certificate doesn't exist in the specified certificate store, the Worklet installs it. 

The Worklet also checks and adjusts registry properties as necessary to align with the defined execution policy.

What is the expected outcome when you use the Set PowerShell ExecutionPolicy to RemoteSigned Worklet?

When you apply theSet PowerShell ExecutionPolicy to RemoteSigned Worklet, it alters the PowerShell execution policies to enforce ‘RemoteSigned’ requirements for the current user or local machine as specified. This change allows only signed scripts to run, protecting your computer from potentially malicious scripts. 

By automating these security measures, the Worklet helps to maintain a secure and consistent environment across your Windows devices.

View in app

Consider Worklets your easy button

What's a Worklet?

A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

do more with worklets