can't launch powershell 2.0 after upgrade from 1.0


win2k3, sp2, x86.  powershell 1.0 works fine.  however, after upgrading powershell 2.0, launching powershell command line produces "the shell cannot started. failure occurred during initialization: object reference not set instance of object.".  happens powershell instance.

removing version 2 1.0 reinstalled works, until upgrade v2 again. 

have reinstalled dot net 2.0, 3.0, , 3.5. 

clues?

thanks.



event type:    error
event source:    powershell
event category:    engine health
event id:    103
date:        1/4/2010
time:        1:16:23 pm
user:        n/a
computer:    memento1
description:
settings: object reference not set instance of object.

details:
    exceptionclass=nullreferenceexception
    errorcategory=
    errorid=
    errormessage=object reference not set instance of object.

    severity=error

    sequencenumber=

    hostname=consolehost
    hostversion=2.0
    hostid=8c3fdf99-7210-44f4-ba25-c08930874040
    engineversion=2.0
    runspaceid=a6fa42de-bb66-4935-9aa9-dac33f39bf47
    pipelineid=
    commandname=
    commandtype=
    scriptname=
    commandpath=
    commandline=

additionalinfo:
    name=;value=
    name=;value=
    name=;value=

more information, see , support center @ http://go.microsoft.com/fwlink/events.asp.

hi sean,

after analyzing process monitor log again, find error occurred if following registry key missing:

hkey_current_user\environment

please check on server , create if it’s missing.

thanks.

this posting provided "as is" no warranties, , confers no rights.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...