Showing posts with label Script. Show all posts
Showing posts with label Script. Show all posts

Saturday, January 4, 2014

Exchange management Powershell Error Message: The WSMan client cannot process the request. Proxy is not supported under HTTP transport.

Exchange management Powershell Error Message:

New-PSSession : Connecting to remote server failed with the following error message : The WSMan client cannot process the request. Proxy is not supported under HTTP transport. Change the transport to HTTPS and specify valid proxy information and try again. For more information, see the
about_Remote_Troubleshooting Help topic.
+                 & $script:NewPSSession `
    + CategoryInfo          : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
   gTransportException
    + FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
Exception calling "GetSteppablePipeline" with "1" argument(s): "No session has been associated with this implicit
remoting module"
+             $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.C ...
+     + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : RuntimeException

 Solution:

  • Verify the session state using the powershell command  - Get-Pssession | fl The value are  All, Opened, Disconnected, Closed, and Broken.
  • Remove the broken powershell session using the command - remove-pssession -id 1
  • Check the internet proxy setting - Go to internet Explorer - Tools - Internet Options - Connections - Lan Settings
  • Verify the netsh winhttp show proxy
  • Export the registry and then delete the WinHttpSettings key from the registry location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\WinHttpSettings

Ref: http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
        http://exchangeserverpro.com/exchange-2010-certificate-revocation-checks-and-proxy-settings/







Friday, January 3, 2014

Exchange Powershell command error message Microsoft.PowerShell.Commands.Internal.Format.AutosizeInfo Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo

Exchange Powershell command error message
 Microsoft.PowerShell.Commands.Internal.Format.AutosizeInfo Microsoft.PowerShell.Commands.Internal.Format.TableHeaderInfo
On executing the below powershell on exporting to html file it will result error message in the html file
Get-MailboxDatabase -Status | Sort-Object DatabaseSize -Descending | ft Name, DatabaseSize -Autosize | ConvertTo-HTML -head $a | Out-File C:\Temp\DBFileSize.htm
Solution:
On removing the format-table and -autosize from the powershell command the error message disappered. Finally the command changed as follows,
Get-MailboxDatabase -Status | Sort-Object DatabaseSize -Descending | Select-Object Name, DatabaseSize, AvailableNewMailboxSpace | ConvertTo-HTML | Out-File C:\Temp\DBFileSize.htm

The blog is written to the share the knowledge mainly on Microsoft Exchange Server and other Microsoft product that experienced on day-to-day life.