Printer VB Script confirmation.

Printer VB Script confirmation.

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Printer VB Script confirmation. asif 07-09-2005
Posted by =?Utf-8?B?YXNpZg==?= on July 9, 2005, 9:39 am
If you were  Registered and logged in, you could reply and use other advanced thread options
I'm supporting a schol where I'm using a VB script to connect network
printers so that printers are available to any user logs in.
I have placed this script in the all user startup. When this VB script runs
it pops up a confirmation message "Open File - Security Warning" - 'Do you
want to open this file'
Can I stop this message asking to confirm the execution of the script.

The script is as follows:

Set WshNetwork = CreateObject("WScript.Network")
WshNetwork.AddWindowsPrinterConnection "\tech\HPLaser"
WshNetwork.SetDefaultPrinter "\tech\HPLaser"


Posted by Lanwench [MVP - Exchange] on July 9, 2005, 11:26 am
If you were  Registered and logged in, you could reply and use other advanced thread options


> I'm supporting a schol where I'm using a VB script to connect network
> printers so that printers are available to any user logs in.
> I have placed this script in the all user startup. When this VB
> script runs it pops up a confirmation message "Open File - Security
> Warning" - 'Do you want to open this file'
> Can I stop this message asking to confirm the execution of the script.
>
> The script is as follows:
>
> Set WshNetwork = CreateObject("WScript.Network")
> WshNetwork.AddWindowsPrinterConnection "\tech\HPLaser"
> WshNetwork.SetDefaultPrinter "\tech\HPLaser"

What about having it be a startup script in group policy, so it doesn't run
under the context of the user logging in? I don't think it will trigger this
prompt (corrections welcome) but it also seems more efficient to run it that
way, if you want it for all computers & all users.



Similar ThreadsPosted
Printer password February 7, 2006, 8:00 pm
How to add a printer with no admin right? March 7, 2007, 11:22 pm
Cannot connect to printer April 16, 2007, 11:41 pm
Microsoft Printer spooler service September 27, 2005, 4:00 pm
mapping LPT1 to network printer November 22, 2005, 5:08 pm
Hacking throught a fax/printer combo. February 21, 2006, 12:11 am
Default printer security settings June 3, 2006, 7:50 pm
Cant add (specific) Printer with user account January 8, 2007, 5:41 am
Why is a network printer a security hole? March 14, 2008, 7:45 pm
ebapi sending blank pages to printer November 21, 2005, 5:21 am

The site map in XML format XML site map

Contact Us | Privacy Policy