Active Directory – Troubleshooting Account Lockout information

Troubleshooting Account Lockout (Technet) Account Lockout and Management Tools Account Lockout Status (LockoutStatus.exe)   SCOM Alerts & Audit Collection Services You should be able to setup an event collection on the Security event log for that lockout and a few other events so that you get an alert.  Here a just a…


ITIL® V3 and ASL – Sound Guidance for Application Management and Application Development

ITIL® V3 and ASLSound Guidance for Application Management and Application Developmentby Machteld Meijer, Mark Smalley & Sharon Taylor  Role of teams (Application Management and Application Development) in the Application Management Lifecycle.jpg


How many records in a SQL table – vbscript example

Dim objConnection, objRecordset, strSearchCriteriaConst adOpenStatic = 3Const adLockOptimistic = 3 ‘ Connection string for SQL Server database.strConnect = “DRIVER=SQL Server;” _ & “Trusted_Connection=Yes;” _ & “DATABASE=MyDatabaseName;” _ & “SERVER=MyServerName\MyInstance” ‘ Connect to database.Set adoConnection = CreateObject(“ADODB.Connection”)Set objRecordset = CreateObject(“ADODB.Recordset”) adoConnection.ConnectionString = strConnectadoConnection.Open objRecordset.Open “SELECT * FROM Table1”, objConnection, adOpenStatic, adLockOptimistic If objRecordset.EOF Then  WScript.Echo “NO records could be…


Sample PowerShell code to enable auditing on a folder

$computer = gc env:computername$path = “C:\New Folder”$user = “everyone”$path = $path.replace(“\”, “\\”)$SD = ([WMIClass] “Win32_SecurityDescriptor”).CreateInstance()$ace = ([WMIClass] “Win32_ace”).CreateInstance()$Trustee = ([WMIClass] “Win32_Trustee”).CreateInstance()$SID = (new-object security.principal.ntaccount $user).translate([security.principal.securityidentifier])[byte[]] $SIDArray = ,0 * $SID.BinaryLength$SID.GetBinaryForm($SIDArray,0)$Trustee.Name = $user$Trustee.SID = $SIDArray$ace.AccessMask = [System.Security.AccessControl.FileSystemRights]”Modify”$ace.AceFlags = “0x67”$ace.AceType = 2$ace.Trustee = $trustee$SD.SACL = $ace$SD.ControlFlags=”0x10″$wPrivilege = gwmi Win32_LogicalFileSecuritySetting -computername $computer -filter “path=’$path’”$wPrivilege.psbase.Scope.Options.EnablePrivileges = $true$wPrivilege.setsecuritydescriptor($SD)


MOF v4 related documents, guides, and toolkits

MOF 4.0 is practical guidance for IT organizations. With the release of version 4.0, MOF now reflects a single, comprehensive IT service lifecycle—it helps IT professionals connect service management principles to everyday IT tasks and activities and ensures alignment between IT and the business.