Skip to content

Latest commit

 

History

History
133 lines (96 loc) · 3.32 KB

File metadata and controls

133 lines (96 loc) · 3.32 KB
description external help file Module Name ms.date online version schema title
Use this topic to help manage Windows and Windows Server technologies with Windows PowerShell.
BitLocker-help.xml
BitLocker
12/20/2016
2.0.0
Lock-BitLocker

Lock-BitLocker

SYNOPSIS

Prevents access to encrypted data on a BitLocker volume.

SYNTAX

Lock-BitLocker [-MountPoint] <String[]> [-ForceDismount] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

The Lock-BitLocker cmdlet prevents access to all encrypted data on a volume that uses BitLocker Drive Encryption. You can use the Unlock-BitLocker cmdlet to restore access.

You can specify a volume to lock by drive letter, or you can specify a BitLocker volume object. This cmdlet cannot lock a volume that hosts the operating system. If you attempt to lock an already locked volume, this cmdlet does nothing.

For an overview of BitLocker, see BitLocker Drive Encryption Overview on TechNet.

EXAMPLES

Example 1: Lock a volume

PS C:\> Lock-BitLocker -MountPoint "E:" -ForceDismount

This command locks the BitLocker volume specified with the MountPoint parameter. The command uses the ForceDismount parameter, so the cmdlet attempts to lock the volume even if it is in use.

PARAMETERS

-Confirm

Prompts you for confirmation before running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-ForceDismount

Indicates that the cmdlet attempts to lock a drive even if the drive is in use.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: fd

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MountPoint

Specifies an array of drive letters or BitLocker volume objects. The cmdlet attempts to lock the volumes specified. To obtain a BitLocker volume object, use the Get-BitLockerVolume cmdlet.

Type: String[]
Parameter Sets: (All)
Aliases: 

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
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: False
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

BitLockerVolume[], String[]

OUTPUTS

BitLockerVolume[]

NOTES

RELATED LINKS

Disable-BitLocker

Enable-BitLocker

Get-BitLockerVolume

Resume-BitLocker

Suspend-BitLocker

Unlock-BitLocker