/build/static/layout/Breadcrumb_cap_w.png

Scripts will not run in windows 10

Hello,

.


 I created a script to remove and install a network printer. It runs on local PC but not in script. I see it places the VBS in \kbots_cache\packages\kbots folder but will not run.

We are running both windows 10 X64 & x86



0 Comments   [ + ] Show comments

Answers (2)

Posted by: SMal.tmcc 5 years ago
Red Belt
3

Network printers are a per user type of thing.  Scripts run as system by default, try running the script as current user. 

Posted by: scdavissmith 5 years ago
Yellow Belt
1

Hi Kdebiasse,

Here is the script that has worked for me for network printers.

----------------------------------

rundll32 printui.dll,PrintUIEntry /ga /n\\<printserver>\<printqueuename> /q


net stop spooler

net start spooler

----------------------------------

set <printserver> to your print server name and <printqueuename> to your print queue name.

Good luck!


Comments:
  • I've been using this command for over 10 years, seconded. - pfletcher 5 years ago
    • I don't have a print server. however, I am still trying to install a network printer to multiple computers via kace. how do I do it? I searched the web and mostly they are mentioned server. - jencam 5 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ