Read-PrinterNfcTag

Read-PrinterNfcTag

Reads information about printers from an NFC tag.

Syntax

Parameter Set: Read0
Read-PrinterNfcTag [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Detaillierte Beschreibung

The Read-PrinterNfcTag cmdlet reads information about printers from the near field communication (NFC) tag that anyone taps against the default NFC reader for the system. The cmdlet returns the printer information that it reads as a table that contains the value of the SharePath property and the value and the wsdAddress property for the printers.

Parameter

-AsJob

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-CimSession<CimSession[]>

Führt das Cmdlet in einer Remotesitzung oder auf einem Remotecomputer aus. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, z. B. die Ausgabe eines Cmdlets New-CimSession oder Get-CimSession. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.

Aliasse

Session

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-ThrottleLimit<Int32>

Gibt die maximale Anzahl von gleichzeitigen Vorgängen an, die zum Ausführen dieses Cmdlets eingerichtet werden können. Wenn dieser Parameter ausgelassen oder der Wert 0 eingegeben wird, berechnet Windows PowerShell® einen optimalen Drosselungsgrenzwert für das Cmdlet basierend auf der Anzahl der CIM-Cmdlets, die auf dem Computer ausgeführt werden. Die Drosselungsgrenze gilt nur für das aktuelle Cmdlet und nicht für die Sitzung oder den Computer.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

Beispiele

Example 1: Read an NFC tag

This first command reads printer connection data from the next NFC tag that someone taps against the NFC reader. The command stores the printer information in the $Tag variable.

The second command uses the Write-PrinterNfcTag to write the printer connection information stored in $Tag to an NFC tag.

PS C:\> $Tag = Read-PrinterNfcTag
PS C:\> Write-PrinterNfcTag $Tag

Example 2: Modify the share path of a printer connection

This first command reads printer connection information from the next NFC tag that someone taps against the NFC reader. The command stores the printer information in the $Tag variable.

The second command changes the share path of the shared printers stored in $Tag. The command uses standard dot syntax to access the SharePaths property of the object stored in $Tag.

PS C:\> $Tag = Read-PrinterNfcTag
PS C:\> $Tag.SharePaths = "\\ntprint\b27-3697-b"

Verwandte Themen

Write-PrinterNfcTag