How To Find A String in a File With PowerShell

Introduction So you have a need to have PowerShell to look for a string in a file and create and entry if it doesn’t find it and do nothing if it does.  For my example I am installing an application and I need to add three lines of content, but if it exists I do not want duplicate entries created. The Code There are probably other ways to achieve the goal, but my idea was to use Get-Content and read... read more

How To Resolve PowerPath 6.1 Required KB Missing During Installation

The Issue During an upgrade to PowerPath 6.1 on Windows 2008 R2 server received an error for missing KB 2921916 and 3033929.   The first one is about Schannel and is 2014 release The second one is a SHA-2 patch from 2015 The above KB patches are for SHA-2 related patches dating 2014... read more

How To Install Failover Clustering with PowerShell

Introduction In this post we will cover some more automation with PowerShell and in automating installing Failover Cluster features with PowerShell on Windows 2008 R2 and Windows Server 2012 R2. We will cover the commands available to install the features needed that can be run individually and also a simple script to install the features and log the results. So what are the features available to install... read more

How To Create SYMLINK’s on Windows 2012 R2 Server Using mklink

Introduction In this post we will expand more on creating symlink’s to directories and files on a Windows 2012 R2 server using mklink command. This post builds on a previous post on mounting NFS exports on Windows server 2012 R2. Process So we have an NFS mount, and now we would like to create a symlink to a sub-directory in the export and also to a sub-directory on a local drive on the Windows... read more

Updating gnuwin32 tools on Windows with GetGnuWin32

Introduction Gnuwin32 provides ports of tools with a GNU or similar open source license, to modern MS-Windows (Microsoft Windows 2000 / XP / 2003 / Vista / 2008 / 7). We have covered install Gnuwin32 on Windows in a previous post, but how do you update it? That’s where GetGnuWin32 comes into play. Process First we need to download GetGnuWin32 from... read more

« Previous Entries