Export (0) Print
Expand All

Write-PrinterNfcTag

Windows Server 2012 R2 and Windows 8.1

Updated: June 4, 2014

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Write-PrinterNfcTag

Writes printer connection data to an NFC tag.

Syntax

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>]




Detailed Description

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.

Parameters

-AsJob

Runs the cmdlet as a background job. Use this parameter to run commands that take a long time to complete. The cmdlet immediately returns an object that represents the job and then displays the command prompt. You can continue to work in the session while the job completes. To manage the job, use the *-Job cmdlets. To get the job results, use the Receive-Job cmdlet. For more information about Windows PowerShell® background jobs, see about_Jobs.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CimSession<CimSession[]>

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.


Aliases

Session

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-InputObject<CimInstance>

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


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-Lock

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


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

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.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-ThrottleLimit<Int32>

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

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. The acceptable values for this parameter are: 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.


Aliases

none

Required?

false

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

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

Related topics

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft