external help file | Module Name | online version | schema |
---|---|---|---|
PSAutoLab-help.xml |
PSAutoLab |
2.0.0 |
Refresh the AutoLab configuration on the localhost.
Invoke-RefreshHost [[-Destination] <String>] [-SkipPublisherCheck] [-WhatIf]
[-Confirm] [<CommonParameters>]
If you keep the PSAutoLab module for any length of time, you will most likely update the module from time to time. Part of the update might include fixes or enhancements to current configurations or even entirely new configurations. This command makes it easier to keep your configurations up-to-date. After updating the PSAutoLab module, run this function in a new PowerShell session which will verify you have the correct version of the Lability module and copy configuration files to your Autolab\ConfigurationPath folder. This will not overwrite any MOF files or delete anything.
You will typically use the Refresh-Host alias.
PS C:\> Refresh-Host
Version 0.19.1 of Lability is already installed
Updating configuration files from C:\Program Files\WindowsPowerShell\Modules\PSAutoLab\4.19.0\Configurations
This process will not remove any configurations that have been deleted from the module.
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The path to your configurations folder.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: <drive>:\Autolab\Configurations
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If you try to refresh the host and get an error or warning about a certificate mismatch, use this parameter to bypass skipping the code signing certificate.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.