Silently Install Software

A common request in these threads is how to deploy software, so heres my take on it. Allows you to download a file and run parameters to silently install it. Once again, this will be more useful when GFI implements the ability to run a script once off. As for what switches to Install the […]

WSUS Cleanup Script

Here is a handy little script that cleans up WSUS 3 Automatically [reflection.assembly]::LoadWithPartialName(“Microsoft.UpdateServices.Administration”) | out-null $wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer(); $cleanupScope = new-object Microsoft.UpdateServices.Administration.CleanupScope; $cleanupScope.DeclineSupersededUpdates = $true $cleanupScope.DeclineExpiredUpdates = $true $cleanupScope.CleanupObsoleteUpdates = $true $cleanupScope.CompressUpdates = $true #$cleanupScope.CleanupObsoleteComputers = $true $cleanupScope.CleanupUnneededContentFiles = $true $cleanupManager = $wsus.GetCleanupManager(); $cleanupManager.PerformCleanup($cleanupScope);

Change Xenserver Pool Master

Change Pool Master via CLI First disable high availability: xe pool-ha-disable Now list your XenServer hosts: xe host-list Using the list above, designate a new pool master by supplying the uuid associated with the desired host: xe pool-designate-new-master host-uuid= You’ll probably lose connection to the pool at this point, but that’s normal behavior. Once XenCenter […]

Google users targeted with malware-laden “Suspicious sign in” notices

Emails purportedly sent by the Google Accounts Team warning about a prevented “suspicious sign- in” have been spotted targeting Google users. “Someone recently tried to use an application to sign in to your Google Account,” says in the email. “We prevented the sign-in attempt in case this was a hijacker trying to access your account. Please review […]

GMap.NET Custom Image Marker

After using a great Map library I required to use a custom image instead of the default ones shipped with the pre-compiled binaries. Here is what I came up with and works a treat. Imports System.Drawing Imports GMap.NET.WindowsForms Namespace GMap.NET.WindowsForms.Markers Public Class GMapCustomImageMarker Inherits GMapMarker Private _image As Image Public Sub New(Image As Image, p […]

Extract Office Install Key (2000/XP/2003/2007/2010)

Here is a little script to get the office keys. Should work for office 2000/XP/2003/2007/2010 Dim ScriptHelper Set ScriptHelper = New ScriptHelperClass ScriptHelper.RunMeWithCScript() strComputer = ScriptHelper.Network.ComputerName CONST HKEY_CLASSES_ROOT = &H80000000 CONST HKEY_CURRENT_USER = &H80000001 CONST HKEY_LOCAL_MACHINE = &H80000002 CONST HKEY_USERS = &H80000003 CONST KEY_QUERY_VALUE = 1 CONST KEY_SET_VALUE = 2 CONST SEARCH_KEY = “DigitalProductID” Dim arrSubKeys(10,1) Dim foundKeys Dim iValues, arrDPID […]

Determine Office Edition Script

By request, here is a script to detect the installed edition of Office. Currently only supports 2007 and 2010 but can be adapted easily enough. This site was used as a reference – http://support.microsoft.com/kb/2186281 Set objWord = CreateObject(“Word.Application”) Select Case objWord.Version Case ”12.0″ strYear = ”2007″ Case ”14.0″ strYear = ”2010″ Case Else strYear = ”Unsupported Version” End Select intRelease = Right(Left(objWord.ProductCode(),2), 1) Select Case intRelease Case ”0″ strRelease = ”Pre Release” Case ”1″ strRelease = ”Beta 1″ Case ”2″ strRelease = ”Beta 2″ Case ”3″ strRelease = ”RC 0″ Case ”4″ […]

Prevention is better than cure

Do you monitor server health at the moment? Your server is one of your most important assets, so it makes sense to check its pulse regularly to ensure its heart is beating strong. Remember what the doctors are fond of saying: “An ounce of prevention is worth a pound of cure”. With that in mind […]

DNS.exe High Memory Usage

Q. I did a fresh install of Windows 2008 R2 and my DNS memory consumption is going through the roof. If I reboot, it’s ok briefly, but then it goes up again. How can I stop it? A. There are a lot of discussions about DNS high memory utilization on Windows 2008 R2 floating around. […]

Majority of small businesses not confident in network security

More than half of IT administrators at small businesses would not bet their own money that all of the computers their business owns and employees use are free of malware (51%) or that all are operating at peak efficiency and will not fail (59%), according to GFI Software. Survey results also reveal that 51% of […]