Click here to Skip to main content
15,902,735 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
Hello All,
I have installed power-shell & Exchange server 2010 in a machine. When I try to browse power-shell using following URL http://192.168.1.235/powershell?serializationLevel=Full, It gives the below error.

C#
HTTP Error 401.0 - Access Denied
You do not have permission to view this directory or page.
Detailed Error Information
Module	        kerbauth
Notification	AuthenticateRequest
Handler	        StaticFile
Error Code	0x00000000
Requested URL	http://192.168.1.235:80/powershell?serializationLevel=Full
Physical Path	C:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\PowerShell
Logon Method	Not yet determined
Logon User	Not yet determined


I have referred the following article msexchange and did the following steps.

Step 1 : Set-User ‘Administrator’ –RemotePowerShellEnabled $True
Step 2 : $SkipCertificate = New-WSManSessionOption –SkipCACheck –SkipCNCheck
–SkipRevocationCheck
Step 3 : $Session = New-PSSession –ConfigurationName Microsoft.Exchange –
ConnectionUri https://192.168.1.235/PowerShell/ -
Authentication NegotiateWithImplicitCredential –SessionOption
$SkipCertificate
This Step 3 failed with following error:::::
New-PSSession : Cannot bind parameter 'SessionOption'. Cannot convert the "Microsoft.WSMan.Management.SessionOption" value of type "Microsoft.WSMan.Management.SessionOption" to type "System.Management.Automation.Remoting.PSSessionOption".
At line:1 char:175
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://192.168.1.235/PowerShell/ -Auth
entication NegotiateWithImplicitCredential -SessionOption <<<<  $SkipCertificate
    + CategoryInfo          : InvalidArgument: (:) [New-PSSession], ParameterBindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.NewPSSessionCommand


Any help on this would be great...

Thanks
Sebastian
Posted
Updated 3-Jun-12 19:14pm
v6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900