Script Error when mapping drives through a script.

I have been using the script below to map users drives for over a year with no problem.  Now this morning, users are getting an error when logging on that the script failed and there drives are not mapped...can anyone offer some clues as to why this might be happening?  The script works locally.

Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objNetwork = CreateObject("Wscript.Network")

If (objFSO.DriveExists("H:") = True) Then
    objNetwork.RemoveNetworkDrive "H:", True, True
End If
objNetwork.MapNetworkDrive "H:", "\\server\public"

If (objFSO.DriveExists("G:") = True) Then
    objNetwork.RemoveNetworkDrive "G:", True, True

End If
objNetwork.MapNetworkDrive "G:", "\\server\apps"

The Windows Scripting error is as follows:

Script:  \\Server\Netlogon\1.vbs
Line: 7
Char: 1
Error:  An extended error has occured
Code:  800704B8
Source:  WSHNetwork.MapNetworkDrive
Who is Participating?

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

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.

Ernie BeekExpertCommented:
To ask the obvious: anything changed with the rights on the share?
LIFEEXPERTAuthor Commented:
No - No changes at all.  Has been fine for at least a year or better.
Hi, check the time synchronisation on the workstation to the servers.  I have also read this could be due to licensing issues if you haven't got enough CALs, but I'm not sure about that one.



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
LIFEEXPERTAuthor Commented:
Yep - that was it.  The time was off by 8 minutes!  Thanks!
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
VB Script

From novice to tech pro — start learning today.