Feature Flags

Disable features within PowerShell Universal.

Using feature flags, you can disable features that you don't use to simplify your deployments. This can be useful to make the platform easier to use and reduce attack vectors from a security standpoint.

Disable Features

To disable built-in features, you can use the -DisabledFeatures parameter of Set-PSUSetting.

$Parameters = @{
    DisabledFeatures = ([PowerShellUniversal.Features]::Api -bor [PowerShellUniversal.Features]::Pages)
}
Set-PSUSetting @Parameters

Once a feature has been disabled, it will no longer appear in the admin console.

More importantly, disabled features will be completely disabled in the PowerShell Universal server. The Management APIs will no longer function, and the configuration scripts will not be run.

Features that can be disabled include:

  • API

  • Scripts

  • Terminals

  • Dashboards

  • Pages

  • RateLimiting

  • PublishedFolders

  • Templates

Last updated

PowerShell Universal

DownloadsPricingModules

Community

IssuesForums

Copyright 2024 Ironman Software