Invoke-CPCTroubleshoot
SYNOPSIS
Triggers a troubleshoot action on a Cloud PC
SYNTAX
Invoke-CPCTroubleshoot [-Name] <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
The function triggers the troubleshoot action on a specific Cloud PC. This initiates a health check and session host inspection on the target Cloud PC, helping administrators diagnose connectivity, configuration, and health issues without reprovisioning. Use Get-CloudPC to find Cloud PC names. The action returns 204 No Content on success.
EXAMPLES
EXAMPLE 1
Invoke-CPCTroubleshoot -Name "CloudPC01"
EXAMPLE 2
Invoke-CPCTroubleshoot -Name "CloudPC01" -WhatIf
PARAMETERS
-Name
Enter the display name of the Cloud PC to troubleshoot
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
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
-Confirm
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
-ProgressAction
Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
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.