Author Archives: oyvind

Freeradius: remove VLAN tag when request comes from specific client

I have a RADIUS server which is configured to add VLAN tags based on the LDAP groups the user is a member of. However in my situation I also need my RADIUS to authenticate users who connect to equipment in … Continue reading

Posted in Scripting | Tagged , , , , , , , | Leave a comment

Configure NIC Teaming with PowerShell (Server Core)

This is how to configure NIC teaming with powershell on a server running Windows Server 2012 R2 Server Core. Basic NIC team Run the following command to list what network adapters (NICs) are available: Get-NetAdapter -Physical In my case the server … Continue reading

Posted in Powershell, Windows Server | Tagged , , , , , , , , , , , , , , | Leave a comment

Windows PKI: The request contains no certificate template information 0x80094801

I tried submitting a certificate request for a web server certificate to my Windows PKI via. the GUI and got this error: The request contains no certificate template information 0x80094801 The solution is to use the command line command certutil … Continue reading

Posted in Uncategorized, Windows Server | Leave a comment

Installing .NET Framework 3.5 on Windows Server 2012 Server Core

Mount or insert the windows 2012 server media, in my case the mount-point is “D:\”. Run the following command from powershell. PS> import-module servermanager PS> Install-WindowsFeature NET-Framework-Core -Source D:\sources\sxs    

Posted in Scripting, Windows Server | Tagged , , , , , | Leave a comment

Installing .NET Framework 3.5 on Windows Server 2012

Installing .NET Framework 3.5 on Windows Server 2012 is not so hard, but it can be a little bit confusing if you are used to the traditional dotnetfix35.exe installation. Here is how you do it. First you need to mount … Continue reading

Posted in Uncategorized, Windows Server | Tagged , , , , , , , | Leave a comment

Solution for powershell remoting error “It cannot determine the content type of the HTTP response from the destination computer…”

I tried to set up powershell remoting on a server and kept getting this error: Enter-PSSession : Connecting to remote server failed with the following error message : The WinRM client cann ot process the request. It cannot determine the … Continue reading

Posted in Uncategorized, Windows Server | Tagged , , , | 13 Comments

Remove KMS host license key from a server that should not be a KMS host.

I came over this message in the event viewer on a server today: Event 12293: Publishing the Key Management Service (KMS) to DNS in the ‘domain.company.com’ domain failed. Info: 0x80072338 It seems like a KMS host license key has been … Continue reading

Posted in Uncategorized, Windows Server | Tagged , , , , , , , , , | 1 Comment

Use Powershell to check if Windows Update patch is installed

Here is a powershell function to check if a windows update patch is installed or not. It will return $True if it is installed and $False if it is not installed. function Check-IsPatchInstalled { #Øyvind Nilsen, oyvindnilsen.com PARAM ( [Parameter(Mandatory=$false,ValueFromPipeline=$false)][String]$computer … Continue reading

Posted in Scripting | Tagged , , , , , , , , , , , , | 1 Comment

Running ESXi from SD cards

Benefits of running ESXi from SD Cards ESXi 5.1 got a very small footprint, less than 150 MB. This  in the combination that ESXi does not write very much to disk makes it a great OS to boot from SD … Continue reading

Posted in vmware | Tagged , , , , , , , , , , , , , , , | Leave a comment

Vmware Update Manager fails to download patches from patch store

I ran in to this error when I sat up a new ESXi blade. “Host cannot download files from VMware vSphere Update Manager patch store. Check the network connectivity and firewall setup, and check esxupdate logs for details.”   It … Continue reading

Posted in vmware | Tagged , , , , , , , , , , | Leave a comment