Hi, I am having trouble with a GPO Login script that is suppose to create a
new DSN connection for a SQL database, and it gets pushed to 700 plus PCs in
a WAN, that are either XP Pro SP2 or Win2000 SP?.
Here are the first five lines of the script, and it seems to error out on
the 5th line, for some users, but when connected as with and install admin
account (that pushes nothing) and run from explore, it accomplishes what it
needed. Sorry I don't have the error, but it says something about the
driver location. Can someone tell me is there a better way to write that
line, or even this whole process?? OR can anyone tell me what they think
might be the cause of an error like this, that only happens for some users,
and then works for admin

Dim oWshShell
Const cRegKey1 = "HKLM\Software\ODBC\ODBC.INI\NewSQL\"
Const cRegKey2 = "HKLM\Software\ODBC\ODBC.INI\ODBC Data Sources\"
Set oWshShell = CreateObject ("WScript.Shell")
oWshShell.RegWrite cRegKey1 &
"Driver","C:\%systemroot%\System32\sqlsrv32.dll"