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

New-PSUEnvironment

SINOSSI

Crea un ambiente di esecuzione di PowerShell Universal.

SINTASSI

New-PSUEnvironment -Name <String> [-Version <String>] [-Type <EnvironmentType>] [-Path <String>] [-Arguments <String>] [-Modules <String[]>] [-Variables <String[]>] [-PowerShellVersion <String>] [-Virtual]

DESCRIZIONE

Crea un ambiente di esecuzione per API, script, dashboard e processi di sicurezza. Utilizzi -Type Isolated per eseguire PowerShell 7 tramite multi-pwsh. Con un ambiente isolato, -PowerShellVersion accetta una versione installata (ad esempio, 7.4.13) o un selettore multi-pwsh come stable, preview, lts o 7.4. -Virtual crea o riutilizza un ambiente virtuale multi-pwsh gestito.

ESEMPIO

New-PSUEnvironment -Name 'Isolated 7.4' -Type Isolated -PowerShellVersion '7.4' -Virtual

Ultimo aggiornamento

È stato utile?