Skip to content

Instantly share code, notes, and snippets.

@justinloring
Created September 12, 2019 18:00
Show Gist options
  • Save justinloring/5f100b47269f4b08562782d04f5f953d to your computer and use it in GitHub Desktop.
Save justinloring/5f100b47269f4b08562782d04f5f953d to your computer and use it in GitHub Desktop.
PrinterMigration
#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