-
-
Notifications
You must be signed in to change notification settings - Fork 5
Invoke FSCPSInstallModule
onikolaiev edited this page Apr 29, 2025
·
4 revisions
Installs and imports specified PowerShell modules, with special handling for the "Az" module.
Invoke-FSCPSInstallModule [[-Modules] <String[]>]
The `Invoke-FSCPSInstallModule` function takes an array of module names, installs them if they are not already installed, and then imports them. It also handles the uninstallation of the "AzureRm" module if "Az" is specified. Real-time monitoring is temporarily disabled during the installation process to speed it up.
Invoke-FSCPSInstallModule -Modules @("Az", "Pester")
This example installs and imports the "Az" and "Pester" modules in the current user scope.
An array of module names to be installed and imported.
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False- Real-time monitoring is disabled during the installation process to improve performance.
- The "AzureRm" module is uninstalled if "Az" is specified. Author: Oleksandr Nikolaiev (@onikolaiev)