Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Permission denied for domain users - VBscript

Avatar of midwest_rocker
midwest_rocker asked on
SecurityActive DirectoryVB Script
12 Comments1 Solution1840 ViewsLast Modified:
Hello Experts -

I have an error that is generated after logging in an account on my domain after running a login script (vb script - attached below).

I noticed this error is coming from the 2nd Domain controller, versus the one i created the script on.
I checked the permissions on the share - which are correct for the given situation.

The actual script is shown under the error message.
'login script location
Line: 18
Char: 1
Error: Permission Denied
Code: 800a0046
Source: Microsoft Runtime Error
'login script
dim objFSO, sourcelocation, targetlocation
set objFSO = CreateObject("Scripting.FileSystemObject")
sourcelocation = "\\server\share\Shortcut.url"
targetlocation = "C:\Documents and Settings\All Users\Desktop\Shortcut.url"
objFSO.CopyFile sourcelocation, targetlocation, true