The purpose of this script is to enumerate all users that not belong to group names containing a specific pattern. The output shows samAccountName and email address. The test of the attribute “$user.memberof” has been added because when this attribute
Get service pack level on Windows 2008 servers
Get server network configuration using WMI
Get inactive users (>6 months)
Automatic pictures resizing with Imagemagick (medium and small size)
Synchronize NTP clock
Stop iptables and allowing everyone
WSUS server cleanup task
The best way to schedule an automatic cleanup of expired/superseeded update is to use the following Powershell script (source : http://www.peetersonline.nl/index.php/powershell/wsus-cleanup-with-powershell/) Script : #Region VARIABLES # WSUS Connection Parameters: [String]$updateServer = “myWSUSServer.domain.local” [Boolean]$useSecureConnection = $False [Int32]$portNumber = 80 # Cleanup
Testing for Schema Extension Conflicts
Source : http://technet.microsoft.com/en-us/library/testing-for-active-directory-schema-extension-conflicts%28WS.10%29.aspx You can use ADSchemaExtensionConflictAnalyzer.ps1 (http://go.microsoft.com/fwlink/?LinkId=191133), a Windows PowerShell script, to analyze application schema extension .ldf files against a production schema and generate a report on errors, conflicts, and other warnings. For example, if an application schema extension is
Set possible owners on core cluster resources
This script will set possible owners on core cluster resources (IP Address and Name) Script : Get-Cluster -Name ClusterName | Get-ClusterResource -Name “IP Address”,”Name” | Set-ClusterOwnerNode -Owners ClusterNode01,ClusterNode02 References Get-Cluster Get information about one or more failover clusters in a