PSLogonFailures Troubleshooting Guide

From Jonsdocswiki
Jump to: navigation, search

Please note, the script authors cannot guarantee to provide support by email or any other means.

Contents

Script fails to run on Windows Server 2008 RTM

Error shown on Windows Server 2008 RTM / Vista

Note: The script works fine on Windows Server 2008 R2. This problem only affects 2008 RTM / Vista.

When trying to run the script on Windows Server 2008 RTM / Vista you receive an error stating The parameter is incorrect (see right).

This is not a problem with the script but instead a problem with PowerShell on Server 2008 RTM.

Fix

At present there is no fix for this but the bug has been reported to Microsoft. If you are on Microsoft Connect, please vote for this bug and mark it as reproducible.

The script fails to run. Also I've tested the script on the command line and get an error about signing policies

This can occur for a couple of reasons:

  1. You've not adjusted the Execution policy of PowerShell on your system (see the PSLogonFailures Install Guide - use Set-ExecutionPolicy.
  2. Alternatively, you have set the policy but this happens anyway.

I was certainly confused when 2 (above) happened to me and no matter what I did the script wouldn't run, I simply got told to adjust the policy. Even unblocking the file didn't seem to help!

Fix

Simply copy the text from the script file into a new file that you've created on your system. You should have no problems running a script you've created on your own system so that should now run correctly from both the command line and task scheduler.

I've tested the script on the command line and I get an error about .net Framework

You receive the following error when trying to run the script:

Error a user receives if the .net framework is missing when trying to run the script.

Fix

As per the system requirements, the .net Framework 3.5 is required.

Install this (can be installed as a feature on Windows Server 2008 R2, see installing the .net framework in the installation guide.

Personal tools