Skip to main content

Set-PsRepository PSGallery [Change]

Summary

This remote monitor attempts to set PSGallery as a trusted PowerShell repository if it is not already configured. You might have encountered this error at least once; this remote monitor attempts to resolve it.

Image

This monitor will make changes to all systems it is deployed to.
Police Car Light

What will change?
This monitor will check to see if the PSGallery is a trusted repository and will set it properly if needed.
This automatically installs the prerequisite that is needed by a lot of ProVal content.

This action will happen regardless of what alert template is set against the monitor.
Monitors that make changes to the environment can be difficult to audit actions taken. Use with caution.

Details

Suggested "Limit to": Windows Machines (PowerShell 5.0+)
Suggested Alert Style: Once
Suggested Alert Template: Default - Do Nothing

Insert the details of the monitor in the table below.

Check ActionServer AddressCheck TypeExecute InfoConditionInterval
System127.0.0.1Run FileREDACTEDState Based86400

Target

Managed Windows Machines

Implementation

Import - Remote Monitor - Set-PsRepository PSGallery