Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to set a default printer using vbs on windows 2008 R2 with remote desktop services

$
0
0

Hello

It seems I wasn't in the right places before / threads. BIG Sorry.

Here's the problem: I have this VBScript:

On any computer, the Default Printer "HisBadPrinter"

strPrinterName = "mySuperPrinter"
Set objPrinter = Helper.CreateObject("WScript.Network")
objPrinter.SetDefaultPrinter strPrinterName

In Xp, Windows 7 it work perfect, The default printer is being changed.

But in Remote Desktop on Windows Server 2008 R2 it is not working, with any type of account (Administrator, user, powerUser...) "HisBadPrinter" is always the default printer and it's always printing on it without any error messages.

Help Please.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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