Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Code 800704B2 - An attempt was made to remember a device that had previously been remembered

Troubleshooting Code 800704B2 -
An attempt was made to remember a device that had previously been remembered

Introduction to Code error 800704B2

This error code, 800704B2 occurs when you try to map a network drive with a VBScript.  A wild guess, you are probably using a WSH (Windows Script Host) method called MapNetworkDrive.

The Symptoms you get with error 800704B2

A Windows Script Host message box appears and the script does not map the drive as you would have hoped.

The probable scenario is that you are trying to create a Windows logon script.

The Solutions for Code 800704B2

My first suggestion is make sure you have the latest service pack.  For once, this error really does seem to be a bug which Microsoft fix with a service pack.  See TechNet article Q328981.  My reflex is to disregard people who tell me to reboot the server, or get the latest service pack, but on this occasion it seems a service pack will fix it.

My second suggestion would be to put a RemoveNetworkDrive statement immediately before my MapNetworkDrive method.  J.B. Reminded me that RemoveNetworkDrive takes two true parameters, so try:
RemoveNetworkDrive x, true, true.  See more on remove network drive here.

My second suggestion was actually sent in by RS - see here

Example Script of error 800704B2

 

' VBScript.

' By Guy Thomas


' Purpose of script to map a network drive to H:\

Dim oNet

 

Set oNet = CreateObject("Wscript.Network")

oNet.MapNetworkDrive "K:", "\\Alan\Lazer6"

Dim oNet

' Note Lazer6 exists

Set oNet = CreateObject("Wscript.Network")

oNet.MapNetworkDrive "H:", "\\ServerName\home"

 

Example 2 of error 800704B2 by RS

 

Dim WshNetwork, Letter

Set WshNetwork = WScript.CreateObject("WScript.Network")

Letter = "X:"

' this triggers the bug if the drive "Letter" is not available (with a red "X" in My Computer):

WshNetwork.RemoveNetworkDrive Letter, True, True

' the workaround

Dim AllDrives, i, WshShell, Command

Set AllDrives = WshNetwork.EnumNetworkDrive()

For i = 0 To AllDrives.Count

If AllDrives.Item(i) = Left(Letter, 1) Then

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

Command = "net use " & Letter & " /delete /yes"

WshShell.Run(Command), 7, True ' minimised, wait until completion

Set WshShell = nothing

End If

Next

 

 

Solarwinds IpMonitorTry a different solution, download SolarWinds ipMonitor

Here is my thinking, ipMonitor will give you valuable data about your network and servers.  This extra information just may unlock the solution to your error code.  One more thing, sometimes when troubleshooting you go around in circles; therefore if you try a different, but related approach, you may just crack the problem.  Free Download of SolarWinds ipMonitor

Computer Training Software - Recommended Training VideosGuy Thomas recommends Computer Training Software

Their topics and material are ideal for getting you started with VBScript.  The videos are easy to follow and you can control the pace.  Try their free demo material and then see if you want to buy the full package. See more about VB Script Training CD.


Do you need extra help?

For interpreting the WSH messages check Diagnose 800 errors.

For general advice try my 7 Troubleshooting techniques

Give something back?

Would you like to help others?  If you have a good example of this error, then please email me, I will publish it with a credit to you:

 


Download my Logon Script eBook for only $6.25

Logon ScriptThe extra features you get in your eBook include, more pages full of detailed examples.  Also, ten 'how to...' sections, with screen shots showing which menus to use.  Go for Guy's eBook - and get a printable version with copy enabled and no expiry date.

  Jumbo Script 7 Package

 *


Google

Webcomputerperformance.co.uk

GFi Events Manager

Guy Recommends: GFi EventsManager

Here is a solution to monitor, manage and archive thousands of events that are generated by devices across your entire network.  Get your free evaluation copy of GFI EventsManager.

 

Home Copyright © 1999-2008 Computer Performance LTD All rights reserved

Please report a broken link, or an error.