When you start working with PowerShell Modules you often find yourself in having to approve module updates over and over and over.
When you start working with PowerShell Modules you often find yourself in having to approve module updates over and over and over.
Install-Module PSWriteWord -AllowPrerelease
While it's great if you don't trust PowerShellGallery I tend to trust that gallery because Microsoft runs it and I only install modules I've verified prior to installation.
Get-PSRepository
To fix this problem simply use command below to set InstallationPolicy to trusted.
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
That's all. Simple one line of code and you trust PowerShellGallery and can install modules from there without any prompts.
This post was last modified on June 7, 2025 11:44
Ever wondered how to run network diagnostics like Ping, Traceroute, or DNS queries from probes…
Are you tired of manually running network diagnostics like Ping, Traceroute, or DNS queries? The…
Discover new features in the PSWriteHTML PowerShell module – including New-HTMLInfoCard, improved layout controls with…
Security Identifier (SID) History is a useful mechanism in Active Directory (AD) migrations. It allows…
Today, I made the decision to upgrade my test environment and update the version of…
Have you ever looked at your Active Directory and wondered, "Why do I still have…