-
Notifications
You must be signed in to change notification settings - Fork 0
/
LN10 Install prepare with Input printers.txt
29 lines (20 loc) · 1.21 KB
/
LN10 Install prepare with Input printers.txt
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
#get-windowsoptionalfeature -online -FeatureName "*print*"
#get-windowsoptionalfeature -online -featurename Printing-Server-Role
#get-windowsoptionalfeature -online -featurename Printing-LPDPrintService
#get-windowsoptionalfeature -online -featurename Printing-LPRPortMonitor
#Install-WindowsFeature -Name Print-Server
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-Server-Role" -All
Set-Service -Name Spooler -StartupType Automatic
Start-Service -Name Spooler
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-LPDPrintService" -All
Enable-WindowsOptionalFeature -Online -FeatureName "Printing-LPRPortMonitor" -All
#Disable-WindowsOptionalFeature -Online -FeatureName "Printing-Server-Role" -All
#Disable-WindowsOptionalFeature -Online -FeatureName "Printing-LPDPrintService"
#Disable-WindowsOptionalFeature -Online -FeatureName "Printing-LPRPortMonitor"
# Disable IPv6
Get-NetAdapterBinding -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name "Ethernet" -ComponentID ms_tcpip6
# Prefer IPv4
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" -Name DisabledComponents -PropertyType DWORD -Value "0x20"
#telnet -p 515
#Str+D "WarteschleifeName"