- Windows PowerShell 5.1 with .NET Framework 4.7.2+ or
- PowerShell Core 6.0 or greater on Windows, macOS and Linux
For a list of platforms that PowerShell Core is supported on see.
Install from PowerShell Gallery for all users (requires permissions)
# Install PSRule module
Install-Module -Name 'PSRule';
Install from PowerShell Gallery for current user only
# Install PSRule module
Install-Module -Name 'PSRule' -Scope CurrentUser;
Save for offline use from PowerShell Gallery
# Save PSRule module, in the .\modules directory
Save-Module -Name 'PSRule' -Path '.\modules';
For pre-release versions the
-AllowPrerelease
switch must be added when callingInstall-Module
orSave-Module
.