The greatest challenge to any thinker is stating the problem in a way that will allow a solution

Bertrand Russell


On 26 Jun 2011

Basic / Introductionary


Powershell is now the standard for Windows based scripting, providing a route into the wealth of .NET Microsoft objects available and now being commonly provided for by 3rd-party applications by API Cmd-Lets.  If you administer a Windows world, then you need to get used to Powershell.  Its an object-orientated environment, which takes some getting used to if you’re not familiar with it, but its very versatile once you’ve got some confidence.


Powershell ships with Windows 7 (and Vista) and 2008 as standard, though you might have to install it in Win2008…

  1. Go to Server Manager
  2. Go into Features, then Add Features
  3. Tick Windows Powershell, and then Next
    • Normally a restart isn’t required

If you’re running scripts from a machine that does not have (or has dodgy) internet access, you need to disable certificate checking

  1. In Internet Explorer
  2. Go to Internet Options, and then Advanced
  3. Then under Security un-check Check for publisher’s certificate revocation

If you’re running from an earlier version of Windows, the following provide links to installers and general documentation

Execution Policy

On the first run you need to allow Powershell to scripts (you need to run this command as an administrator, so if you’re using Windows 7, for example, you’ll need to start the Powershell console as an administrator, regardless of whether you’re currently logged in as an admin). If you have no admin rights over the PC you’re using, then you’ll need to select the Suspend option rather than Yes (sets just for your current session, doesn’t try to write to the registry).

Set-ExecutionPolicy RemoteSigned

It is possible to bypass the Execution Policy entirely (though you do so at your own risk, should only be used to run a script you trust where you haven’t the time to fix the underlying problem, and should be reverted afterwards)…

Set-ExecutionPolicy Bypass

Installed Version

To check the main installed version use the following command…

get-host | select version

However, if you might have installed something other than the normal RTM or GA release version you’ll need to the registry key HKLMSoftwareMicrosoftPowerShell1, which will have the following values of interest…

Value Data Meaning
Install 1 Installed (not version number)
PID 89383-100-0001260-04309 RTM (Release to Manufacturing)
PID 89393-100-0001260-00301 RC2 (Release Candidate 2)

Leave a Reply

XHTML: You can use these tags if you know what they are: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.