Skip to main content

Set-SMBv1Fix

SYNOPSIS

Enables SMB v1.

SYNTAX

Set-SMBv1Fix [[-ComputerName] <String[]>] [-WhatIf] [-Confirm]
[<CommonParameters>]

DESCRIPTION

Turns SMBv1 on. While this fix action turns SMBv1 on, group policy can turn SMBv1 off, which is counted on.

EXAMPLES

EXAMPLE 1

Set-SMBv1Fix COMP1
Sets the fix action on COMP1. After the fix action is applied, COMP1 will need to be rebooted.

EXAMPLE 2

Set-SMBv1Fix
Sets the fix action on the local computer. After the fix action is applied, the local computer will need to be rebooted.

PARAMETERS

-ComputerName

Specifies the computer or computers

Type: String[]
Parameter Sets: (All)
Aliases: Host, Name, Computer, CN

Required: False
Position: 1
Default value: "$env:COMPUTERNAME"
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

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

None

NOTES

ALIASES

None.

PLATFORM APPLICABILITY

Windows only. The platform-aware loader does not export this command on Linux or macOS.

POWERSHELL COMPATIBILITY

See PowerShell compatibility for the supported runtime policy. PowerShell 7.6 LTS is preferred.

https://docs.keldor.dev/powershell/keldor/Set-SMBv1Fix