This script update DNS server ip address on the remote server network cards. The steps are the followings : retrieve from AD all the server names check if the server is responding to ping test list the current network information
Ping computer with a specific OS
This script use WMI to ping a list of computers. Only specific OS are pinged. Script (with Microsoft Active Directory module loaded : import-module activedirectory) : $ping = new-object System.Net.NetworkInformation.Ping $list = Get-ADComputer -LDAPFilter “(|(operatingsystem=Windows XP*)(operatingsystem=Windows 7*)(operatingsystem=Windows Vista*))” ForEach ($b
Get users that not belong to similar group names
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