forked from limiteddenial/PrintManagementDsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPrinter_AddTCPIPPrinter_Config.ps1
More file actions
44 lines (40 loc) · 1.07 KB
/
Printer_AddTCPIPPrinter_Config.ps1
File metadata and controls
44 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<#PSScriptInfo
.VERSION 2.0.0.0
.GUID e63dab79-d613-4975-92d2-4d1283fa852e
.AUTHOR Eric Boersma
.TAGS DSCConfiguration
.LICENSEURI https://github.com/limiteddenial/PrintManagementDsc/blob/master/LICENSE
.PROJECTURI https://github.com/limiteddenial/PrintManagementDsc
.ICONURI
.EXTERNALMODULEDEPENDENCIES
.REQUIREDSCRIPTS
.EXTERNALSCRIPTDEPENDENCIES
.RELEASENOTES First version.
.PRIVATEDATA 2016-DataCenter,2016-DataCenter-Server-Core
#>
<#
.DESCRIPTION
Adds a printer using TCPIP for communication
#>
configuration Printer_AddTCPIPPrinter_Config
{
param
(
[Parameter()]
[System.String[]]
$NodeName = 'localhost'
)
Import-DSCResource -ModuleName PrintManagementDsc
node $NodeName
{
Printer NewTCPIPPrinter {
Ensure = 'Present'
Name = 'ExampleTCPIPPrinter'
PortType = 'TCPIP'
PortName = 'ExampleTCPIPPort'
Address = 'tcpip.local'
DriverName = 'fake'
Shared = $true
} # End Printer
} # End Node
} # End Configuration