Invoke-RemoteModuleUpdate
SYNOPSIS
Update PowerShell modules on remote computers.
SYNTAX
DESCRIPTION
This function updates PowerShell modules on specified remote computers. It ensures required modules are loaded, retrieves credentials from PasswordState, enables CredSSP for secure credential delegation, and invokes the update process on the target computers. The function also handles resolving computer names and configuring PowerShell repositories.
EXAMPLES
EXAMPLE 1
Updates PowerShell modules on the remote computer "Server01".
EXAMPLE 2
Updates PowerShell modules on the remote computers "Server01" and "Server02".
PARAMETERS
-ComputerName
The name(s) of the remote computer(s) where the module update will be performed.
Type: String[]
Parameter Sets: (All)
Aliases: Computer, ServerName, Server
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
NOTES
EXIT CODES 1 Probleem met het inladen van één of meerdere modules 2 Probleem met het ophalen van de vereiste credentials uit passwordstate 3 Probleem met het inschakelen van CredSSP