#Clear Screen
cls
#Remove lingering variables
Remove-Variable * -Force -ErrorAction SilentlyContinue
#Confirm that printbrm.exe is located in C:\Windows\System32\spool\tools\Printbrm.exe
#Import Server Manager module and add Printing roles
Import-Module ServerManager
Add-WindowsFeature "Print-Server", "Print-Services"
$SourceServer = 'SERVERNAME'
$backupdir = 'd:\AFScripts\PrinterSettings'
C:\Windows\System32\spool\tools\Printbrm.exe -s \\$SourceServer -r -f $backupdir
No comments:
Post a Comment