Lock-Wms Usb Storage

Prevents USB storage devices from being used.

Syntax

Lock-WmsUsbStorage
    [-StationId] <UInt32[]>
    [-Server <String>]
    [<CommonParameters>]
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.

Required Parameters

-All

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

Type: SwitchParameter
Position: Named
Default value: None
Accept pipeline input: False
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[]
Position: 0
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Optional Parameters

-Server

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

Type: String
Aliases: ComputerName
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

Inputs

None.

Outputs

None.