Computer Performance, Windows 2003, Exchange 2003, Logon Scripts

Guy recommends :
Free Solarwinds
VM Console

Solarwinds VM Console Free Download

Find out which of your VMs are a waste of space and which VMs need more resources.


Guy's Review of
Computer Utilities

 1) FreePing
 2) Engineer's Toolset
 3) Xobni
 4) PuTTY
 5) WMI Monitor
 6) BgInfo
 7) Net-SNMP
 8) IP Address Tracker
 9) DNS Stuff
10) WinDiff Compare


Code  80072030 - There is no such object on the server

Troubleshooting Code 80072030 - There is no such object on the server

A wild guess, there is a mistake in the reference to your OU.  However, to hedge my bets, it could be any Active Directory object that causes the error 80072030 :
'There is no such object on the server'

Introduction to Error Code 80072030

This is an easy error code to troubleshoot.  Code 8007xxxx indicates a problem with Windows, or Active Directory.  For example, you are trying create a child object inside an OU, but that parent OU does not exist.Code 080072030 There is no such object on the server

The Symptoms You Get 80072030

The script does not execute as you hoped, instead you get a WSH error message.  One possibility is that you are trying to create an Active Directory object but there is no parent container, example misspelled OU.

The Cause of Code 80072030

Check Active Directory User's and Computers, perhaps there is no such parent OU, therefore you cannot create the child OU.

  ‡

The Solutions

Use Active Directory Users and Computers to check that the OU exists.  Create the parent container object so that the new child object will have a 'home'.  Note: The error is in Line 5. In the case of runtime errors you can use this work around.  Add this line: On Error Resume Next.

Example 1 of Script Error: There is no such object on the server

Error there is no OU called BulkIT, consequently, you cannot create the SalesMan contact object.

Solution create the parent OU = BulkIT

'Script to Create a new Contact account in the BulkImport OU
'Script created by Guy Thomas
'Feel free to adapt names

Set objOU = GetObject("LDAP://OU=BulkIt, dc=cp, dc=com")
Set objUser = objOU.Create("contact", "cn=SalesMan")
objUser.SetInfo

Wscript.Echo "Success new Contact, & chr(13), Check Active Directory Users and Computers - Remember F5"

Guy Recommends 3 Free Active Directory ToolsDownload Solarwinds Active Directory Administration Tool

Solarwinds have produced three Active Directory add-ons.  These free utilities have been approved by Microsoft, and will help to manage your domain by:

  1.  Seeking and zapping unwanted user accounts.
  2. Finding inactive computers.
  3. Bulk-importing new users.  Give it a try.

Download your FREE Active Directory administration tools.

Example 2 of VBScript with Error 80072030

The OU specified by strContainer is mis-spelt, or the comma is missing.  Such errors are common in scripts with very long Active Directory paths.
strContainer = "OU=Cowbridge ,"

' Set AccountControl.vbs
' Example VBScript to enable user accounts in a named OU
' Author Guy Thomas http://computerperformance.co.uk/
' Version 1.7 - March 21st 2010
' ----------------------------------------------------'
Option Explicit
Dim objOU, objUser, objRootDSE
Dim strContainer, strLastUser, strDNSDomain, intCounter, intAccValue
Set objRootDSE = GetObject("LDAP://RootDSE")
strDNSDomain = objRootDSE.Get("DefaultNamingContext")
strContainer = "OU=Cowbridge ,"
intAccValue = 512
strContainer = strContainer & strDNSDomain
set objOU =GetObject("LDAP://" & strContainer )
intCounter = 0
For each objUser in objOU
If objUser.class="user" then
   objUser.Put "userAccountControl", intAccValue
   objUser.SetInfo
   intCounter = intCounter +1
   strLastUser = objUser.Get ("name")
End if
next
WScript.Echo intCounter & " Accounts Enabled. Value " _
& intAccValue
WScript.Quit

' End of VBScript Example

Guy Recommends: WMI Monitor and It's Free!Solarwinds WMI Monitor

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 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

If you like this page then please share it with your friends

 


 *


Custom Search

Solarwinds Network Device MonitorSolarwinds' Free Network Device Monitor

Thus utility makes it easy to check the health of a router or firewall.  Check the real-time performance and availability statistics for any device on your network.

Get started with an extensive collection of "out-of-the-box" monitors for popular network devices.  Download your free Network Device Monitor

 

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

Please report a broken link, or an error.