IT Knowledge Base

Technical Repository

HowTo: Powershell – Check to see if the previous command completed successfully

The completion status of the previous command can be accessed via the special variable $?. This works best with non-terminating errors, terminating errors are the result of a direct throw or an exception getting thrown in .NET and they alter the flow of your code. Best to use a trap or try/catch statement to observe […]

Read More


HowTo: How to change the AssignedTo username for Incidents in System Center Service Manager 2012 R2

$Incident = “IR Number” $CurrentUsername = “This is the username that is currently in the AssignedTo field” $NewUsername = “The new username” $Domain = “NETBIOS Domain Name” $i = Get-SCSMObject (Get-SCSMClass System.WorkItem.Incident$) -Filter “Id -eq $Incident ” $u = Get-SCSMObject (Get-SCSMClass System.Domain.User$) | ?{$_.Domain -eq $Domain -and $_.Username -eq $CurrentUsername } $r = Get-SCSMRelationshipClass System.WorkItemAssignedToUser […]

Read More


HowTo: Fix VMware Tools Services Failure after Upgrading Linux Kernel

After upgrading the kernel on a Red Hat server, we see the following vmware-tools services fail to start: Checking acpi hot plug [ OK ] Starting VMware Tools services in the virtual machine: Switching to guest configuration: [ OK ] VM communication interface: [FAILED] VM communication interface socket family: [FAILED] Guest operating system daemon: [ […]

Read More


HowTo: Log into Cisco IOS without a password using SSH/PKI

I needed the ability to automatically log into a Cisco Router and create site to site VPN tunnels through a script running on a web server. In order to do this, I had to setup PKI on the router which would then allow me to log in without having to type in a password. Prerequisites […]

Read More


HowTo: Repair Windows 8.x

To Run “DISM /Cleanup-Image” tool in an Elevated Command Prompt 1. Open an elevated command prompt. 2. In the elevated command prompt, copy and paste the command below that you want to use. DISM /Cleanup-Image /Switch Available Switch Options: /CheckHealth – This switch option only checks to see if a component corruption marker is already […]

Read More