< Back
Repair-UserKeyPermission
Post
NAME Repair-UserKeyPermission
SYNOPSIS
Repair-UserKeyPermission
Repair the file owner and Permission of user config
-FilePath: The path of the private user key
-User: The user associated with this ssh config
SYNTAX
Repair-UserKeyPermission [-FilePath] <String> [-UserSid <SecurityIdentifier>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-FilePath <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserSid <SecurityIdentifier>
Required? false
Position? named
Default value $currentUserSid
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS
SYNOPSIS
Repair-UserKeyPermission
Repair the file owner and Permission of user config
-FilePath: The path of the private user key
-User: The user associated with this ssh config
SYNTAX
Repair-UserKeyPermission [-FilePath] <String> [-UserSid <SecurityIdentifier>] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
PARAMETERS
-FilePath <String>
Required? true
Position? 1
Default value
Accept pipeline input? false
Accept wildcard characters? false
-UserSid <SecurityIdentifier>
Required? false
Position? named
Default value $currentUserSid
Accept pipeline input? false
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
RELATED LINKS