Quantcast
Channel: Spiceworks Community
Viewing all articles
Browse latest Browse all 1893

PDQ Deploy - VBS Script

$
0
0

Trying to run a VBS script using PDQ Deploy.

It works fine if you run it, but it doesn't deploy correctly.

Says "Successful", but no changes are made on the computer....

Here is the script if it matters:

VB.net
' put in the server names here (keep the quotes!) MovePrinters"!","!"' ********************************************* ' Move printers to new server ' ********************************************* SubMovePrinters(OldServer,NewServer)' Loops through all network printers and moves all printers ' on "OldServer" to the same printername on "NewServer". dimWshNetwork,oPrinters,i,PrinterPath,DefaultPrinter,PrinterListSetWshNetwork=WScript.CreateObject("WScript.Network")SetPrinterList=CreateObject("Scripting.Dictionary")' Get the default printer before we start deleting: DefaultPrinter=GetDefaultPrinter' Get a list of...

Viewing all articles
Browse latest Browse all 1893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>