Home » Active Directory

VBScript to find old users in a domain

On Error Resume Next
Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject(”ADODB.Connection”)
Set objCommand = CreateObject(”ADODB.Command”)
objConnection.Provider = “ADsDSOObject”
objConnection.Open “Active Directory Provider”
Set objCommand.ActiveConnection = objConnection
Set objDSE = GetObject(”LDAP://RootD
SE”)
strDomain = objDSE.Get(”DefaultNamingContext”)
objCommand.CommandText = “SELECT adspath,Name FROM ‘LDAP://” & strDomain & “‘ ” & “WHERE objectClass=’user’ and objectcategory=’person’ and lastlogontimestamp <=’00000000000′”
objCommand.Properties(”Page Size”) = 2000
objCommand.Properties(”Timeout”) = 30
objCommand.Properties(”Searchscope”) = ADS_SCOPE_SUBTREE
objCommand.Properties(”Cache Results”) = […]

How to find out what policies are applied to your Windows Xp machine

Help and Support Center -> Use Tools to view your computer information and diagnose problems -> Advanced System Information -> View Group Policy settings applied
Results will as “Group Policy Results for <computername>. At the end of the report there is the option to save in html format: “Save this report to an .htm file.”
You […]

How to Troubleshoot 1202 Events (Event Id: 1202)

Event Type: Warning
Event Source: SceCli
Event Category: None
Event ID: 1202
Date: 1/7/2008
Time: 11:13:05 AM
User: N/A
Computer: BRPCBCX8
Description:
Security policies were propagated with warning. […]

Windows Audit Log Events

Logon Events Description
528 A user successfully logged on to a computer. For information about the type of logon, see the Logon Types table below.
529 Logon failure. A logon attempt was made with an unknown user name or a known user name with a […]

Unable to Modify the Active Directory Schema

Unable to modify the Schema
What to check for:
Events of the following type can be ignored:
Event Type : Error
Event Source : NTDS General
Event Category: Internal Processing
Event ID : 1153
Date: MM/DD/YYYY
Time: HH:MM:SS AM|PM
User : Everyone Computer : <some DC>
Description: Class identifier 655562 (class name msWMI-MergeablePolicyTemplate) has an invalid superclass 655560. Inheritance […]

Could not connect to the current schema master server.

If you attempt to view the permissions on the schema, you may receive the following error message:
Could not connect to the current schema master server. The server may not be available, or you may have insufficient privileges to manage the schema.
If you attempt to view or change the Operations Master, you may […]

What is a good Active Directory Backup?

To determine if your backup of Active Directory is good then there are two things you must consider:
Technorati Tags: system state , ad backup , active directory disaster recovery

Age of Backup
Contents of the Backup

Age of Backup
If your backup is older than the Active Directory tombstone age setting, then it is not considered […]

I Cannot Authenticate to ADAM with my Application

How do you troubleshoot the issue where you cannot authenticate to Active Directory Application Mode with you application? Well here are a few steps to follow:
1. Can a user authenticate to ADAM via LDP, using the server name and port number.
2. IS the OS running ADAM Windows XP? […]

Troubleshooting Active Directory Application Mode Installation

If you are experiencing ADAM setup failures then there a few steps that should be completed and general questions that need to be answered before proceeding with the troubleshooting process.

Is the computer a member of the domain or in a workgroup?
Are there any events generated in the event logs that provide any details regarding […]

Microsoft Windows Authentication Troubleshooter

The following details steps to resolve common Windows authentication issues. These issues cane be related to authentication protocols such as NTLM and Kerberos as well as problem with core Windows process that are vital to authentication such as Winlogon. The issues described below are related to the following operating systems:
Windows 2000 SP4
Windows 2003
Windows XP
NTLM
Possible NTLM […]