Site icon TOSS

Lock-BitLocker

powershell

Lock-BitLocker is accessible with the help of BitLocker module. To configure BitLocker, go through this link.

Synopsis

Prevents access to encrypted data on a BitLocker volume.

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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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
Aliases:fd
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[]
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
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Syntax

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

—————–Example 1—————–
Lock a volume
PS C:> Lock-Volume -MountPoint “D:” -ForceDismount
This command locks the BitLocker volume specified with the Mount parameter. The command uses the ForceDismount parameter, so the cmdlet attempts to lock the volume even if it is in use.

You can check the Version, CommandType and Source of this cmdlet by giving below command.

Get-Command Lock-BitLocker

You can also read about

To know more PowerShell cmdlets(Commands) on BitLocker click here

Click on this Link for an Single place where you get all the PowerShell cmdlet sorted based on the modules.

You can also refer other blogs on PowerShell at link

You can also refer other blogs on Microsoft at link

And also if you required any technology you want to learn, let us know below we will publish them in our site http://tossolution.com/

Like our page in Facebook and follow us for New technical information.

References are taken from Microsoft

Exit mobile version