Table of contents
TLS
TOC
Collapse the table of content
Expand the table of content

Lock-WmsUsbStorage

Brian Lich|Last Updated: 3/31/2017

SYNOPSIS

Prevents USB storage devices from being used.

SYNTAX

LockById

Lock-WmsUsbStorage [-StationId] <UInt32[]> [-Server <String>] [<CommonParameters>]

LockAll

Lock-WmsUsbStorage [-All] [-Server <String>] [<CommonParameters>]

DESCRIPTION

The Lock-WmsUsbStorage cmdlet prevents the use of any station-attached USB storage devices. If a device is already attached when you run Lock-WmsUsbStorage, they are logically removed. Any USB devices that are subsequently added to a station are hidden.

EXAMPLES

Example 1: Lock USB storage devices

PS C:\> Lock-WmsUsbStorage -StationId 2

This command prevents the use of all USB storage devices on the specified station.

PARAMETERS

-All

Indicates that this operation applies to all sessions on the target host.

Type: SwitchParameter
Parameter Sets: LockAll
Aliases: 

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

-Server

Specifies the fully qualified host name of the MultiPoint Server that is the target of the command. The default is localhost.

Type: String
Parameter Sets: (All)
Aliases: ComputerName

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-StationId

Specifies an array MultiPoint station IDs. The acceptable values for this parameter are: 1 through the number of stations.

Type: UInt32[]
Parameter Sets: LockById
Aliases: 

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

None.

OUTPUTS

None.

NOTES

Unlock-WmsUsbStorage

© 2017 Microsoft