#########################

#    PowerShell Help    #

#########################

 

<#

.SYNOPSIS

    This script is designed to deploy printers to Windows 10 workstations deployed and triggered by Intune.

.DESCRIPTION

    Written by Jean-Pierre Simonis, Delivery Quality Assurance

    https://www.linkedin.com/in/jsimonis/

    Version 1.1

 

    #########################

    #      Change Log       #

    #########################

 

    # 23/11/2017 1.1

    # Features

    # - Add support for MSI install keys so that script deployment via Intune reports as successful

    #

    # 10/11/2017 v1.0 - Initial Release

    #  Features

    # - Error trapping and logging 

    # - Unzip Printer Driver package

    # - Install Local Printer Queue

  

.NOTES

 

    #########################

    #         Notes         #

    #########################

 

    # This script is designed to be packaged as an exe and pushed out via Intune

    #

    #

    # This script requires the following permissions

    #

    #  - Elevated PowerShell Session first time only to create custom eventlog type

    #  - Permission to update install the printer (Assumed it will run in Intune installation context)

    #  - Your endpoint protection may need this package to be added as an exception as it might detect and block it as this script extracts itself and launch a script in an administrative context


 

    # Installation

    # 1. Ensure script is run against Windows 10 devices with at least PowerShell V5.1

    # 2. Create printer driver zip file

    # 3. Configure variables in PowerShell Script to desired printer configuration supply name of driver zip file

    # 4. Create batch file to launch PowerShell script (Refer below instructions for contents of batch file)

    # 5. Create Self-extracting executable (I used WinRAR)

    #       a.       Configure it to extract to temporary directory

    #       b.       Configure post launch a command (deploy.bat)

    #       c.       Configure Icon, Overwrite (Replace) and Title settings

    #       d.       Configure for silent extraction (hidden dialogs)

    #       e.       Ensure deploy.bat, Deploy-Printer.ps1, PrinterDriver.zip are added to archive

    # 6. Use MSI Wrapper to convert the EXE to MSI

    #       a. download from http://www.exemsi.com

    #       b. Configure MSI Settings

    #              Application ID (ensure this value is the same as defined in script configuration)

    #              Deploy Printer Package 1

    #              Upgrade Code (This can generated by MSI Wrapper)

    #              {E6454CC0-00B2-4134-9D28-9089E5628C4B}

    #              Product Name

 

    #              Deploy Printer Package

    #              Version

    #              1.0.0.0

    #              Icon

    #              PowerShell.ico (I downloaded and used a powershell logo in ico format)

    #              Comments

    #              PowerShell Script to Deploy Campus Side Printer

    #

    # 7. (Optional) Use ORCA to modify MSI tables to update product name to remove (wrapped by MSI Wrapper in title or buy the product)

    #        a. download from https://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs.85).aspx

    # 8. Configure Intune to deploy LOB Windows Application

    # 9. Enjoy Customer Success 😊 

 

    # Contents of deploy.bat

 

    @echo off

    REM Written by Jean-Pierre Simonis, Delivery Quality Assurance, www.deliveryqa.com.au

 

    @echo Launching Printer Deployment PowerShell Script

    powershell.exe -executionpolicy unrestricted -file .\Deploy-Printer.ps1

 

    # End of Script

 

.LINK

http://www.deliveryqa.com.au

#>

 

 

#########################
#    PowerShell Help    #
#########################
<#
.SYNOPSIS
    This script is designed to deploy printers to Windows 10 workstations deployed and triggered by Intune.
.DESCRIPTION
    Written by Jean-Pierre Simonis, Delivery Quality Assurance
    https://www.linkedin.com/in/jsimonis/
    Version 1.0
    #########################
    #      Change Log       #
    #########################
    # 10/11/2017 v1.0 - Initial Release
    #  Features
    # - Error trapping and logging 
    # - Unzip Printer Driver package
    # - Install Local Printer Queue
   
.NOTES
    #########################
    #         Notes         #
    #########################
    # This Script is designed to be packaged as an exe and pushed out via Intune 
    #
    #
    # This Script requires the following permissions
    # 
    #  - Elevated PowerShell Session first time only to create custom eventlog type
    #  - Permission to update install the printer (Assumed it will run in Intune installation context)
    # Installation
    # 1. Ensure script is run against Windows 10 devices with at least PowerShell V5.1
    # 2. Create printer driver zip file
    # 3. Configure variables in PowerShell Script to desired printer configuration supply name of driver zip file
    # 4. Create batch file to launch PowerShell script (Refer below instructions for contents of batch file) 
    # 5. Create Self-extracting executable (I used WinRAR) 
    #       a. Configure it to extract to temporary directory
    #       b. Configure post launch a command (deploy.bat)
    #       c. Configure Icon, Overwrite (Replace) and Title settings
    #       d. Configure for silent extraction (hidden dialogs)
    #       e.  Ensure deploy.bat, Deploy-Printer.ps1, PrinterDriver.zip are added to archive
    # 6. Use MSI Wrapper to convert the EXE to MSI
    #       a. download from http://www.exemsi.com
    #       b. Configure MSI Settings
    #              Application ID
    #              Deploy Printer Package
    #              Upgrade Code (This can generated by MSI Wrapper)
    #              {E6454CC0-00B2-4134-9D28-9089E5628C4B}
    #              Product Name
    #              Deploy Printer Package
    #              Version
    #              1.0.0.0
    #              Icon
    #              PowerShell.ico (I downloaded and used a powershell logo in ico format)
    #              Comments
    #              PowerShell Script to Deploy Campus Side Printer
    #
    # 7. (Optional) Use ORCA to modify MSI tables to update product name to remove (wrapped by MSI Wrapper in title or buy the product)
    #        a. download from https://msdn.microsoft.com/en-us/library/windows/desktop/aa370557(v=vs.85).aspx
    # 8. Configure Intune to deploy LOB Windows Application
    # 9. Enjoy Customer Success 😊
    # Contents of deploy.bat
    @echo off
    REM Written by Jean-Pierre Simonis, Delivery Quality Assurance, www.deliveryqa.com.au
 
    @echo Launching Printer Deployment PowerShell Script
    powershell.exe -executionpolicy unrestricted -file .\Deploy-Printer.ps1
    # End of Script
.LINK
http://www.deliveryqa.com.au
#>