For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-PSUSetting

Sets a PSU setting.

SYNOPSIS

Sets a PSU setting.

SYNTAX

Set-PSUSetting [-LogLevel <String>] [-MicrosoftLogLevel <String>] [-LoggingFilePath <String>]
 [-DefaultEnvironment <String>] [-GroomDays <Int32>] [-ConcurrentJobLimit <Int32>] [-Telemetry] [-HideApi]
 [-HideHomePage] [-HideAutomation] [-HideDashboard] [-DisableCodeFirst] [-SecurityEnvironment <String>]
 [-ApiEnvironment <String>] [-DefaultPage <String>] [-RateLimitClientAllowList <String[]>]
 [-RateLimitIpAddressAllowList <String[]>] [-RateLimitEndpointAllowList <String[]>] [-DisableUpdateCheck]
 [-ScriptBaseFolder <String>] [-AdminConsoleLogo <String>] [-AdminConsoleTitle <String>]
 [-GroomInterval <Int32>] [-NotificationLevel <NotificationLevel>] [-ProxyUri <String>]
 [-ProxyCredential <Variable>] [-JobHandshakeTimeout <Int32>] [-HideRunAs] [-FallbackLanguageId <String>]
 [-Splatting] [-FavIcon <String>] [-ExperimentalFeatures <ExperimentalFeatures>] [-DisabledFeatures <Features>]
 [-LimitIdentities] [-DontLoadProfile] [-EnhancedAppTokenSecurity] [-DefaultDashboardTheme <String>]
 [-UseLogoSize] [-DarkTheme] [-HideEnvironment] [-HideRunOn] [-DisableFormatOnSave]
 [-ContentSecurityPolicy <String>] [-LogGroomDays <Int32>] [-Branding <OldBranding>] [-PreformattedJobOutput]
 [-ModuleDiscoveryFrequency <String>] [-DebuggerEnvironment <String>] [-FileEncoding <String>]
 [-MaxJobMemory <Int32>] [-JobRunId] [-ApiBaseFolder <String>] [-CheckForModuleUpdates] [-HideRunLater]
 [-AnonymousApiDocumentation] [-MaximumTokenLifetime <Int32>] [-PortalDisabled] [-PortalRole <String[]>]
 [-DefaultTokenLifetime <Int32>] [-ApiSecurityModel <ApiSecurityModel>] [-DefaultRunOn <String>]
 [-SessionTimeout <Int32>] [-DisableFirstRun] [-DebugPreference <ActionPreference>]
 [-VerbosePreference <ActionPreference>] [-InformationPreference <ActionPreference>]
 [-WarningPreference <ActionPreference>] [-ErrorPreference <ActionPreference>]
 [-ProgressPreference <ActionPreference>] [-DisableDatabaseVault] [-PasswordExpirationDays <Int32>]
 [-PasswordLength <Int32>] [-DisableDevolutionsAccountLogin] [-ComputerName <String>] [-AppToken <String>]
 [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
 [<CommonParameters>]

DESCRIPTION

Sets a PSU setting.

EXAMPLES

Example 1

Sets the log level to 'Debug'

PARAMETERS

The admin console logo URL.

-AdminConsoleTitle

The admin console title.

-ApiEnvironment

The environment to run API endpoints within.

-AppToken

An app token to access the PSU API.

-ComputerName

The HTTP address of the PSU REST API server.

-ConcurrentJobLimit

The maximum number of jobs to run at once.

-DefaultEnvironment

The default environment to use throughout the product. Can be overridden for individual entities.

-DefaultPage

Sets the default page for the admin console.

-DisableUpdateCheck

Disables the update check for PowerShell Universal.

-GroomDays

The number of days to retain jobs for.

-HideApi

Hides the API node from the admin console.

-HideAutomation

Hides the automation node from the admin console.

-HideDashboard

Hides the dashboard node from the admin console.

-HideHomePage

Hides the PowerShell Universal home page.

-Integrated

Executes the command internally rather than using the Management API. Only works when running script from within PowerShell Universal.

-LogLevel

The log level for PowerShell Universal. Valid values are Debug, Information, Warning and Error.

-LoggingFilePath

The file path to the log.

-MicrosoftLogLevel

The internal logging for Microsoft components, like the web server. Valid values are Debug, Information, Warning and Error.

-RateLimitClientAllowList

A list of client names to bypass rate limiting.

-RateLimitEndpointAllowList

A list of endpoints to bypass rate limiting.

-RateLimitIpAddressAllowList

A list of IP addresses to bypass rate limiting.

-ScriptBaseFolder

The base folder to store scripts within the repository.

-SecurityEnvironment

The environment used to run authentication and authorization scripts.

-UseDefaultCredentials

Use default credentials when connecting to the management API

-GroomInterval

How frequently in seconds to run the groom job.

-NotificationLevel

The lowest notification level to generate. For example, if NotificationLevel is set to Warning, only Warning and Error notifications will be shown.

-FallbackLanguageId

The fallback language ID when a string isn't found in the target language.

-HideRunAs

Hide run as support throughout the admin console.

-JobHandshakeTimeout

The number of seconds to wait for a job to communicate that it has started running.

-ProxyCredential

Proxy server credentials.

-ProxyUri

Proxy server URI.

-Splatting

Whether splatting is enabled for all configuration files.

-DisabledFeatures

Features to disable within PowerShell Universal.

-DontLoadProfile

Prevents loading use profiles for Run As environments.

-EnhancedAppTokenSecurity

Enables enhanced token security for the platform.

-ExperimentalFeatures

Experimental features to enable.

-FavIcon

The FavIcon to display in the admin console and dashboards.

-LimitIdentities

Prevents identities that are not defined from logging into PowerShell Universal.

-Telemetry

Not used. Telemetry is no longer collected.

-DefaultDashboardTheme

The default dashboard theme to use when none is specified. By default, this value is AntDesign.

-UseLogoSize

Does not adjust the size of the logo used in the admin console.

-ContentSecurityPolicy

The content security policy to set. This can be useful when hosting PowerShell Universal in an iframe.

-DarkTheme

Whether the dark theme should be used throughout the admin console.

-DisableFormatOnSave

Disables formatting on save for PowerShell scripts.

-HideEnvironment

Hides the environment drop down when running scripts.

-HideRunOn

Hides the Run On drop down when running scripts.

-Branding

The branding to use for the admin console and dashboards.

-DebuggerEnvironment

The environment to use when debugging scripts.

-FileEncoding

The file encoding to use when reading and writing files.

-LogGroomDays

The number of days to retain log files for.

-ModuleDiscoveryFrequency

The frequency to check for new modules.

-PreformattedJobOutput

Whether job output should be preformatted.

-MaxJobMemory

The maximum amount of memory a job can use in MB.

-AnonymousApiDocumentation

Allows anonymous access to generated API documentation.

-ApiBaseFolder

Specifies the base folder used for API resources.

-CheckForModuleUpdates

Enables checks for updated modules when the resource runs.

-Credential

Credentials to login to the PowerShell Universal Management API.

-HideRunLater

Excludes jobs scheduled to run later when set to $true.

-JobRunId

Specifies the job run Id.

-MaximumTokenLifetime

Specifies the maximum lifetime, in minutes, for issued tokens.

-TrustCertificate

Whether the cmdlet should ignore certificate issues.

-DefaultTokenLifetime

The default token lifetime in minutes.

-PortalDisabled

Whether the portal is disabled.

-PortalRole

The roles required to access the portal.

-ApiSecurityModel

The API security model to use for cmdlets run within PowerShell Universal.

-DefaultRunOn

The default run on computer or computer group.

-DisableFirstRun

Disables the first run wizard even if an admin user is not defined.

-SessionTimeout

The number of minutes to wait before a session is considered inactive.

-DebugPreference

The global debug preference. Can be overriden locally.

-ErrorPreference

The global debug preference. Can be overriden locally.

-InformationPreference

The global information preference. Can be overriden locally.

-ProgressPreference

The global progress preference. Can be overriden locally.

-VerbosePreference

The global verbose preference. Can be overriden locally.

-WarningPreference

The global warning preference. Can be overriden locally.

-DisableCodeFirst

Disables the code first auto-reload feature.

-DisableDatabaseVault

Disables the database vault.

-PasswordExpirationDays

The number of days before a local account's password expires.

-PasswordLength

The required minimum length for a local account's password.

-Cookies

Reuses and persists authentication cookies for the current PowerShell session.

-DisableDevolutionsAccountLogin

Disables Devolutions Account as a login option.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable, and -ProgressAction. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

Last updated

Was this helpful?