Read-PrinterNfcTag

Read-PrinterNfcTag

Reads information about printers from an NFC tag.

Sintaxis

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

Descripción detallada

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.

Parámetros

-AsJob

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-CimSession<CimSession[]>

Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.

Alias

Session

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

-ThrottleLimit<Int32>

Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

false

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

Ejemplos

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"

Temas relacionados

Write-PrinterNfcTag