Bart's Weblog

Just a blog…

Archive for May, 2013

WSUS: Automatically Declining Itanium Updates

Posted by bartvdw on 0606/0505/2013

This is quiet useful, and easier then using the GUI to filter them out…

Automatically Declining Itanium Updates in WSUS
http://gallery.technet.microsoft.com/scriptcenter/Automatically-Declining-a4fec7be

Adapt the code if you don’t want to have an email sent (ex. output to screen or dump in a text file).

Posted in PowerShell, WSUS | 5 Comments »

Citrix: Documenting a Citrix XenApp 6.5 Farm with Microsoft PowerShell

Posted by bartvdw on 0606/0505/2013

Documenting a Citrix XenApp 6.5 Farm with Microsoft PowerShell
http://carlwebster.com/documenting-a-citrix-xenapp-6-5-farm-with-microsoft-powershell/

Posted in Citrix, PowerShell | Leave a Comment »

Citrix: List all installed Hotfixes and Rollup Packs (PowerShell) (XenApp)

Posted by bartvdw on 0606/0505/2013

Citrix XenApp Powershell : List all installed Hotfixes and Rollup Packs
http://www.brichet.be/?p=393

If you for example only wants a list of updates, change the command like follows (example):

$Hotfixes = Get-XAServerHotfix $Server.ServerName | Select HotfixName

If you receive an error regarding “Out-GridView”, remove that line and run the script using “> output.txt” or use another method.

Posted in Citrix, PowerShell | Leave a Comment »

WSUS: PoshPAIG (PowerShell Patch Audit/Installation GUI)

Posted by bartvdw on 0606/0505/2013

PoshPAIG (PowerShell Patch Audit/Installation GUI)
http://poshpaig.codeplex.com

Posted in Microsoft, PowerShell, WSUS | Leave a Comment »

WSUS: Approve all needed updates for a computer group using a member as reference

Posted by bartvdw on 0606/0505/2013

Approve updates for a computer group using a member as reference (computer using as reference must be member of that group); adapt variables in the beginning of the script to suit your needs (this is not for WSUS on Windows Server 2012!!):

[reflection.assembly]::LoadWithPartialName(“Microsoft.UpdateServices.Administration”) | out-null
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer(‘wsus.domain.local’,$false,80);
$groupName = “Servers”
$computerName = “reference.domain.local”
$approveUpdates = $false

$group = $null
$computer = $wsus.GetComputerTargetByName($computerName)
$groups = $computer.GetComputerTargetGroups() | foreach-object {
If ($_.Name -eq $groupName) {
$group = $_;
}
}
Function GetComputerGroupByName ($group) {
$wsus.GetComputerTargetGroups() | foreach-object {
if ($_.Name -eq $group) {$_;}
}
}
if ($group -eq $null) {throw new-object System.Exception($computerName + ” doesn’t below to group ” + $groupName)}

$updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScope;
$updateScope.IncludedInstallationStates = “NotInstalled”
#$updateScope.ApprovedStates = “NotApproved”

$action = [Microsoft.UpdateServices.Administration.UpdateApprovalAction]::Install;
$updates = $computer.GetUpdateInstallationInfoPerUpdate($updateScope);
$updates | foreach-object {
$u = $wsus.GetUpdate($_.UpdateId);
If ($approveUpdates) {
$u.Approve($action,$group);
} else {“Need to approve ” + $u.Title}
};

Approve Needed Updates
http://gallery.technet.microsoft.com/e3b33372-1e7f-41ea-ad83-ecc10ba5f0f6

Posted in Microsoft, WSUS | 2 Comments »

VMware: Sample Configuration of EtherChannel / Link Aggregation with ESX/ESXi and Cisco/HP Switches

Posted by bartvdw on 0404/0505/2013

Sample Configuration of EtherChannel / Link Aggregation with ESX/ESXi and Cisco/HP
http://blogs.vmware.com/kb/2012/07/sample-configuration-of-etherchannel-link-aggregation-with-esxesxi-and-ciscohp-switches.html

Posted in Cisco, ESX(i), HP, Network, VMware | Leave a Comment »

IBM System x: Configure IMM from Windows

Posted by bartvdw on 0202/0505/2013

Configuring IBM IMM from Windows (Remotely)
http://serverchronicle.blogspot.be/2012/08/configuring-ibm-imm-from-windows.html

Posted in IBM System x | Leave a Comment »

Microsoft SQL Server 2005: Display Fragmentation Information of Data and Indexes of Database Table

Posted by bartvdw on 0202/0505/2013

SQL SERVER – 2005 – Display Fragmentation Information of Data and Indexes of Database Table
http://blog.sqlauthority.com/2008/01/10/sql-server-2005-display-fragmentation-information-of-data-and-indexes-of-database-table/

Posted in Microsoft, SQL | Leave a Comment »

Microsoft Exchange 2010: How to limit memory usage

Posted by bartvdw on 0202/0505/2013

How to limit Exchange 2010 memory usage
http://www.bursky.net/index.php/2012/05/limit-exchange-2010-memory-use/

Posted in Exchange, Microsoft | Leave a Comment »

VMware: Download Patches

Posted by bartvdw on 0202/0505/2013

http://www.vmware.com/patchmgr/findPatch.portal

Posted in ESX(i), Update Manager, VMware | Leave a Comment »