I have a logon script that's been running fine for years. Recently I updated it with a new function and it has caused another (seemingly unrelated) portion of the script to break. The broken lines are as follows:
Set objNet = WScript.CreateObject("WScript.Network")
I've tested that on one server which gives me the error: "The printer name is invalid (80070709)" (which is not true)
On the problem server I get this error: "The filename, directory name, or volume label syntax is incorrect. (8007007B)"