Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Strange: "Program 'more.com' failed to run: Object reference not set to an instance of an object"

$
0
0

All,

  The only changes I've made to my W2K12R2 servers is i added some code to my PSH Profile to center my screen and set size/width/font properties.  I also applied the latest round of MS Patches a few weeks back.  I'm trying to use the HELP function of PSH and as you can see below this is the output I get.  Get-Help works, but I need to paginate the output (it's just the way I roll) but the function HELP has hiccuped and I'm stumped.  I do NOT have this problem with my W2K8R2 boxes at all.  All Servers are running PSH 4.0.  Any ideas, thoughts as to what I've run into?

PS C:\Windows\system32> help get-command -Examples
Program 'more.com' failed to run: Object reference not set to an instance of an object.At line:14 char:14
+     $input | more.com
+              ~~~~~~~~.
At line:14 char:5
+     $input | more.com
+     ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

#############################################

PS C:\Windows\system32> help
Program 'more.com' failed to run: Object reference not set to an instance of an object.At line:14 char:14
+     $input | more.com
+              ~~~~~~~~.
At line:14 char:5
+     $input | more.com
+     ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

#############################################

PS C:\Windows\system32> get-help get-command -Examples

NAME
    Get-Command

SYNOPSIS
    Gets all commands.

    -------------------------- EXAMPLE 1 --------------------------

    PS C:\>Get-Command


    This command gets the Windows PowerShell cmdlets, functions, and aliases that are installed on the computer.
    -------------------------- EXAMPLE 2 --------------------------

    PS C:\>Get-Command -ListImported


    This command uses the ListImported parameter to get only the commands in the current session.


Viewing all articles
Browse latest Browse all 6937

Trending Articles