Wednesday , June 19 2019
Home - craig (page 4)

craig

Active Directory Password Last Changed Export Tool

VBScript program to output all users in the domain with the date and time that each last changed their password. If passwords expire for all users, this program can be used to identify old unused accounts that can be disabled and eventually deleted. This program uses the pwdLastSet attribute to determine when the password was last set. Because this attribute …

Read More »

WSUS Client (Server or Workstation) Reset Settings/Cookie Script

Imaging the server in VmWare or by othe means leaves the WSUS client session cookie in the registry.  Once the new imaged server/workstation is then connected back to WSUS the session cookie points the orginal computer object.  The following script resolves this be resetting client WSUS settings outside of GPO enforced WSUS location: REM stop the Automatic Updates service net …

Read More »

Checking Exchange 2010 Whitespace in EDB file

Exchange 2010 appears to have new command to allow the checking of free space within EDB file (whitespace). This can be checked with the following Exchange 2010 powershell command: Get-MailboxDatabase mbx* -status | fl name, databasesize, availablenewmailboxspace An example of command results: Name : MBX1 DatabaseSize : 218.6 GB (234,757,357,568 bytes) AvailableNewMailboxSpace : 63.58 GB (68,263,870,464 bytes)

Read More »

How to Configure Windows Server 2008 or 2008 R2 for SCCM Site

Hit a problem with webdav and BITS not being enabled for SCCM install on Windows 2008 R2.  The following instructions details changes need before SCCM will install. http://technet.microsoft.com/en-us/library/cc431377.aspx Craig. How to Configure Windows Server 2008 for Site Systems

Read More »

How to move WSUS 3.0 to a new server

Just to outline how to migrate WSUS 3.0 to a new server using a local SQL Express instance and without downloading all of the updates again. 1. Install WSUS on new server with local express database. 2. During configuration wizard choose “Synchronize from another WSUS server…”, enter the name of the existing WSUS instance you are migrating from, and then choose …

Read More »

Checking LDAP uSNChanged (integer8 value) in VB .net

Having problems finding a way to use integer8 values from Active Directory ldap in a VB.net Application, I thought i’ll show a simple function written to check the AD uSNChanged. Just call the function with the DN of the object to check. Must include: [vb] Imports System.Reflection [/vb] Function code: [vbnet]Private Function _ADObjectUsn(ByVal xDN As String) Dim xLdapConnection As New …

Read More »

PHP LDAPS Not Bind/Connecting

Had a few problems with coding a simple Activie Directory password reset web form.  It appears when coding in PHP the OpenLdap doesn’t trust the connecting Domain Controller’s SSL Certificate issuing CA. This can be fixed with PHP on either Apache or IIS with a simple file: Create a file named ‘ldap.conf’ in the directory ‘c:\openldap\sysconf’.  In the file the first line …

Read More »