Link to home
Start Free TrialLog in
Avatar of rhinoceros
rhinoceros

asked on

vbscript does not run on Vista UAC

We are using WIndows 2003 SP2 domian with XP workstations, All logon script is normally running.  But just get a few Vista Business Desktop. The existing logon vbscript did not work on Vista (joined domain). Becuase of Vista UAC prompted up we need to input administrator username and password when the domain users logon.

We also looked for some information, and have a few question about it.
1. Some guys suggested that stop UAC, I don't believe it is a good solution, rite ?
2. Also they teached us to do it on local policy (security option) if disable UAC. But how to stop it on Ad Domain Policy if necessary ?
3. If not stop UAC, how to solve vbscript problem ?


-- Logon script --
net use x: \\server1\data
prt.vbs

-- prt.vbs --
On error resume next
Set net = CreateObject("WScript.Network")
net.AddWindowsPrinterConnection "\\server2\print01"

Thanks !
ASKER CERTIFIED SOLUTION
Avatar of theruck
theruck
Flag of Slovakia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rhinoceros
rhinoceros

ASKER

Great ! I got it,

Thanks !

I have a new question.. I hope you can help...
https://www.experts-exchange.com/questions/22835399/Mount-Network-Printer-Access-is-denied.html
Not a valid solution.  "turn if off" is not a solution it's avoiding an issue.