|
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.
|