Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

red X on network drive

Status
Not open for further replies.

patrichek

MIS
Nov 18, 2003
632
US
Hi all,
I recently setup a gpo to map network drives and its working good except for the annoying red X. I got the script from this board, i think from markdmac's post.
here it is, can someone tell me why i have the red X?
thanks!

Set WshShell = WScript.CreateObject("WScript.Shell")

Set GuyNet = WScript.CreateObject("WScript.Network")
Set CheckDrive = GuyNet.EnumNetworkDrives()

DriveLetter = "Z:"

RemotePath = "\\server\share"

AlreadyConnected = False
For i = 0 To CheckDrive.Count - 1 Step 2
If CheckDrive.Item(i) = DriveLetter Then AlreadyConnected = True
Next

If AlreadyConnected = True then
GuyNet.RemoveNetworkDrive DriveLetter
GuyNet.MapNetworkDrive DriveLetter, RemotePath
WshShell.PopUp "Drive " & DriveLetter & "Disconnected, then connected successfully."

Else
GuyNet.MapNetworkDrive DriveLetter, RemotePath
WshShell.PopUp "Drive " & DriveLetter & " connected successfully."

End if
 
I think its in the script because mapped drives never were x'd out until recently when i used this script in a gpo and they are x'd all the time now. it never shows up without the X, even on initial startup.
 
This is a common issue with about ten different clients that I have.

There are, I'm sure, different reasons for the Red X's and cetainly the KB article 297684 has never worked for me (let alone trying the instructions in it!)

Anyways, I think it's one of those 'MS Denial' things that makes us all feel like we're the one's with the problem!!

I tell all my clients to ignore it as, not only do I charge by the hour but when you click on the Red 'X' the mapped drives return anyways.

Don't waste any more time than is necessary on this - would be my recommendation!

Hope that helps.



How Hard can it be!
_____________________________
Michael BA MCSE
North Coast Computer Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top