Share via


Read-PrinterNfcTag

Read-PrinterNfcTag

Reads information about printers from an NFC tag.

構文

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

詳細説明

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.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など、コンピューター名またはセッション オブジェクトを入力します。既定値は、ローカル コンピューターで実行中の現在のセッションです。

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ThrottleLimit<Int32>

このコマンドレットを実行するために確立できる最大同時操作数を指定します。このパラメーターを省略するか、値として 0 を入力した場合、Windows PowerShell® では、コンピューターで実行している CIM コマンドレットの数に基づいて、コマンドレットに対する最適なスロットル制限を計算します。スロットル制限は現在のコマンドレットのみに適用され、セッションまたはコンピューターには適用されません。

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

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"

関連トピック

Write-PrinterNfcTag