25 lines
1.5 KiB
Markdown
25 lines
1.5 KiB
Markdown
Deploy scripts for printers
|
|
Each script calls Add-Printer & remove-Printer, respectively. Incredibly simple.
|
|
|
|
## Adding a new printer to Intune
|
|
I assume you've uploaded the drivers separately? Good.
|
|
Simply add this scripts as a new Win32 app. Call them using the codeblock below. You probably aren't deploying the SALES printer, so replace that with the name of the printer.
|
|
Do **NOT** feed the servername, only the printer name. Otherwise Intune will try to deploy \\\PS\\\\\\PS\\Printer
|
|
`%SystemRoot%\SysNative\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass .\Deploy.ps1 -printer SALES`
|
|
### **Install behavior:** This ***MUST** be set to *User* otherwise the mapping will fail!
|
|
**App Category:** Make sure this is set to 'Printing' so users can easily find what they need.
|
|
**App Logo:** This repository contains some images that will help identify the printer installs. Also, they look nice.
|
|
|
|
### Detection Rules
|
|
|
|
Set **Rules format** to *manually configure detection rules.*
|
|
Add a rule of type *Registry* with the following properties:
|
|
**Key path:** *HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\PrinterPorts*
|
|
**Value name:** *\\\PS\[PRINTERNAME]*
|
|
**Detection method:** *Value exists*
|
|
**Associated with a 32-bit app on 64-bit clients:** *No*
|
|
|
|
### Dependencies
|
|
Add the *SHARP Drivers* app as a dependency so the necessary drivers are installed.
|
|
If you're not installing a Sharp printer, then set this to whatever app installs the drivers.
|