Windows 10 and logon scripts

Logon script used to work for Windows 7.  When I logon to Windows 10, and try to invoke it manually (I don't want to wait the 5 minute delay until it works normally) I get the error:   800A004c "Path not Found"

After this, I Logged/off and on 2x and I could double click and invoke it manually again..

Any ideas why this happened?
tike55Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dean ChafeeIT/InfoSec ManagerCommented:
In your logon script make sure to use UNC paths to any resources, not mapped drives. The error indicates this may be the issue.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tike55Author Commented:
there is no mapped drives for resources.  The logon script actually maps drives, but it failed to initialize.
0
Hello ThereSystem AdministratorCommented:
Make sure that the location exists and the user has access to it.

Windows 10 became more securely, so you can't access sysvol & netlogon shares via UNC paths.
To resolve this issue run gpedit.msc, go to:
Computer -> Administrative Templates -> Network -> Network Provider -> Hardened UNC Paths, enable the policy and click "Show" button.
Enter your server name (\\myservername) into "Value name" and enter the folowing text:
RequireMutualAuthentication=0,RequireIntegrity=0,RequirePrivacy=0 into the "Value" field.

Windows10 delay logon scripts for 5mins by default. You can configure it in GPO -> Computer Configuration -> Administrative Templates ->  System -> Group Policy -> Configure Login Script Delay = set it to disabled.

What's the script supposed to do?
Does it contain 'sScriptPath'? The problem might be there too.

Remember that on the user account properties the path to the netlogon folder is hardcoded, so "script.vbs" is enough to fill in.

More info about this error:
http://www.computerperformance.co.uk/Logon/code/code_800A004C.htm
Error 800A004C occurs when you execute a VBScript.  My suggestion is that you are trying to read, or write, to a file reference that does not exist.  A wild guess, there is a typo in your Path statement.
0
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

tike55Author Commented:
will the login script still delay if it is invoked manually?
0
tike55Author Commented:
The Hardened path reg tweak/GPO isn't the issue.  On another Windows 10 workstation, logon scripts work fine.  Hardened paths is not configured.
0
Hello ThereSystem AdministratorCommented:
will the login script still delay if it is invoked manually?
No.
0
tike55Author Commented:
Any other ideas besides enable Hardened UNC Paths?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.