Write-PrinterNfcTag

Write-PrinterNfcTag

Writes printer connection data to an NFC tag.

構文

Parameter Set: ManualSpecification
Write-PrinterNfcTag [[-SharePath] <String[]> ] [[-WsdAddress] <String[]> ] [[-Lock]] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

Parameter Set: PrinterNfcTag
Write-PrinterNfcTag [-InputObject] <CimInstance> [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]

詳細説明

The Write-PrinterNfcTag cmdlet writes a near field communication (NFC) tag with printer connection data. You can use NFC tags to program shared printers and Web Services for Devices (WSD) printers. If multiple print shares or WSD device addresses support the same device, the cmdlet writes the NFC tag in the order of the print shares or WSD device addresses that you specify. This cmdlet requires that the system have an NFC radio available.

Specify the printer connection data for this cmdlet by specifying the paths of shared printers or the IP addresses WSD printers, or by using the InputObject parameter to specify a printer object as input to this cmdlet.

パラメーター

-AsJob

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-CimSession<CimSession[]>

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

エイリアス

Session

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-InputObject<CimInstance>

Specifies the NfcTag object to use as input to this cmdlet. To obtain an NfcTag object, use the Read-PrinterNfcTag cmdlet.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

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

True (ByValue)

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

false

-Lock

Indicates that the NFC tags cannot be modified after you write the NFC tags. You cannot unlock a locked NFC tag.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

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

True (ByValue)

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

false

-SharePath<String[]>

Specifies an array of paths of shared printers. Use the following format: \\printServer\shareName. The cmdlet writes the path of the shared printers to an NFC tag.

エイリアス

なし

必須?

false

位置は?

1

既定値

なし

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

True (ByValue)

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

false

-ThrottleLimit<Int32>

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

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

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

false

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

false

-WsdAddress<String[]>

Specifies an array of IP addresses of WSD printers. The cmdlet writes the IP addresses of the of WSD printers to a printer NFC tag. このパラメーターに対して使用できる値:an IPv4 or IPv6 IP address or any value that resolves to an IP address, such as a fully qualified domain name (FQDN) or Hostname.

エイリアス

なし

必須?

false

位置は?

2

既定値

なし

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

True (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

Example 1: Write printer connection data to an NFC tag

This command writes printer connection data to an NFC tag for the specified shared printers and the WSD printer that has the host name PrinterHost01.

PS C:\> Write- PrinterNfcTag -SharePath "\\ServerName\PrinterName01","\\AlternateServerName\PrinterName02" -WsdAddress "PrinterHost01"

Example 2: Copy an NFC tag

This command uses the Read-PrinterNfcTag to read the printer connection data from the next NFC tag that someone taps against the NFC reader. The command passes the printer connection data to the next cmdlet by using the pipeline operator. The command then writes the printer connection data to an NFC tag when a user taps the tag against the NFC radio.

PS C:\> Read-PrinterNfcTag | Write-PrinterNfcTag

関連トピック

Read-PrinterNfcTag