Return to site

Using A Script To Install Printers Remotely

broken image

Using A Script To Install Printers Remotely

Also, you can always refer to a text file with all your remote machines listed in it and place that switch name of text file with the string above and FAN out the cmd to all of them.. Now using 'Printer Management' export these settings to a file and save it to the C: or Root.. Deploying Printers and Print Drivers Remotely Install a printer driver using a inf file. HERE

Offering full access to COM, WMI and NET, POSH is a full-featured task automation framework for distributed Microsoft platforms and solutions.. Or you could just list them all in the string and just make sure you separate with a ',' And before I get bombarded yes this is the very simple way and yes I know you can add more shit too it.. SUBREDDIT FILTERS RESOURCES SCRIPT REPOSITORIES VIRTUAL LABS & BOOKS BLOGS & PODCASTS LIVE CHAT NORTH AMERICAN USER GROUPS remote-capable remote-capable remote-capable EUROPEAN USER GROUPS . 2

ps1:56 char:1 $Printer Put() ~~~~~~~~~~~~~~ CategoryInfo: NotSpecified: (:) [], MethodInvocationException FullyQualifiedErrorId: DotNetMethodExceptionThis happens everytime Has anyone got a working Powershell script that accomplishes this task or knows how to get this working? I have even put the relevant files into a network share and tried running it from there (changing file paths accordingly obviously).. The second line uses rundll32 to install the HP Universal PCL 6 print driver Add-printer remotely.. Name it whatever but sake of this I'm naming it 'PrinterFile' Here's a quick a lil script.. I got ya bro First, set up a machine as a 'print server' in 'Printer Management' and install all the appropriate printers to it, removing all unnecessary drivers and or settings. HERE

These commands work I am able to remotely add and remove printers If I want to use this to add printers to multiple computer.. Are for the remote machines, were ready to use PsExec The first line starting w/cscript is using a built-in VBS script to create the TCP/IP printer port on the computer that matches the IP address of the printer. e10c415e6f Click

Code: Exception calling 'Put' with '0' argument(s): 'Generic failure ' At D: GPInstall Printer_Install_Scripts ColourPhotocopier ColourPhotocopier.. printerExport -computername REMOTEPC01 Now, I'm sure somebody will jump in and say something about using $cred, well you could do that of course but this way you'll just be prompted each time you run this string for your Admin Credentials.. | Windows PowerShell (POSH) is a command-line shell and associated scripting language created by Microsoft.. SERVERCOMPUTER is the computer where the exported file is sitting on C: and 'REMOTEPC01 is whatever the name of your remote PC you want to install Add-printer -path SERVERCOMPUTER c$ PrinterFile. 5