valign=”top” style=”padding-right:35″ colspan=”2″>
Troubleshooting Code 80072020 – An operations error occurred
Kindly sent in by Ian Godfrey
Introduction to Error Code 80072020
This error code, 80072020 occurs when you execute a VBScript. My suggestion is that It’s a permissions problem, if possible, try running the script on the very server and not an XP machine. Error messages beginning 8007xxxx mean there is an external problem with Windows rather than syntax in the VBScript itself.
The Symptoms You Get 80072020
The script does not execute as you hoped, instead you get a WSH error message.
The Cause of Code 80072020
Either the person running the script does not have permissions, or you are running the script from an XP workstation rather than the server itself.
The Solution
Logon to the Windows Server as the administrator.
‡
Example Script for Code 80072020
Kindly sent in by Ian Godfrey
The main use of this script is to see the sort of code that may result in error code 80072020.
Option Explicit
‘Declare Variables
DIM objSubnetsContainer, strSubnetsContainer, strSubnet
DIM strDomain : strDomain = GetDomainName()
Subnets
Sub Subnets
strSubnetsContainer = "LDAP://CN=Subnets,CN=Sites,CN=Configuration," & strDomain
SET objSubnetsContainer = Getobject(strSubnetsContainer)
‘Bind to the subnets container
For Each strSubnet in objSubnetsContainer
‘Iterate through each object in the container
wscript.echo strSubnet.name
Next
End Sub
Function GetDomainName()
‘This function returns the domain name
DIM objDomain
Set objDomain = GetObject("LDAP://RootDSE")
GetDomainName = objDomain.Get("DefaultNamingContext")
End Function
Guy Recommends: WMI Monitor and It’s Free!
Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems. Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free. Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.
Download your free copy of WMI Monitor
Do you need additional help?
- For interpreting the WSH messages check Diagnose 800 errors.
- For general advice try my 7 Troubleshooting techniques.
- See master list of 0800 errors.
- Codes beginning 08004…
- Codes beginning 08005…
- Codes beginning 08007…
- Codes beginning 0800A…
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
The 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.
If you like this page then please share it with your friends