Created
September 12, 2019 18:00
-
-
Save justinloring/5f100b47269f4b08562782d04f5f953d to your computer and use it in GitHub Desktop.
PrinterMigration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Export Printers | |
New-Item -ItemType Directory -Path C:\RSItemp\mystore -Force | |
Invoke-Command -scriptblock {cmd /c "C:\Windows\System32\spool\tools\Printbrm.exe /b /f C:\RSItemp\mystore\backup.printerExport"} -ComputerName <PCNAME> | |
#Import Printers | |
Invoke-Command -scriptblock {cmd /c "C:\Windows\System32\spool\tools\Printbrm.exe /r /f C:\RSItemp\mystore\backup.printerExport"} -ComputerName <PCNAME> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment