Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

Trying to get IIS detail and App-pool details remotely from one of the SharePoint servers in the farm

$
0
0

Hi,

  I am trying to get the IIS and App-pool details remotely from one server in the farm. I am getting this

[xxxxxx] Connecting to remote server failed with the following error message : WinRM cannot pro
cess the request. The following error occured while using Kerberos authentication: The network path
 was not found.
 Possible causes are:
  -The user name or password specified are invalid.
  -Kerberos is used when no authentication method and no user name are specified.
  -Kerberos accepts domain user names, but not local user names.
  -The Service Principal Name (SPN) for the remote computer name and port does not exist.
  -The client and remote computers are in different domains and there is no trust between the two d
omains.
 After checking for the above issues, try the following:
  -Check the Event Viewer for events related to authentication.
  -Change the authentication method; add the destination computer to the WinRM TrustedHosts configu
ration setting or use HTTPS transport.
 Note that computers in the TrustedHosts list might not be authenticated.
   -For more information about WinRM configuration, run the following command: winrm help config. F
or more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
    + FullyQualifiedErrorId : PSSessionStateBroken
[xxxxxxx] Connecting to remote server failed with the following error message : WinRM cannot pro
cess the request. The following error occured while using Kerberos authentication: The network path
 was not found.
 Possible causes are:
  -The user name or password specified are invalid.
  -Kerberos is used when no authentication method and no user name are specified.
  -Kerberos accepts domain user names, but not local user names.
  -The Service Principal Name (SPN) for the remote computer name and port does not exist.
  -The client and remote computers are in different domains and there is no trust between the two d
omains.
 After checking for the above issues, try the following:
  -Check the Event Viewer for events related to authentication.
  -Change the authentication method; add the destination computer to the WinRM TrustedHosts configu
ration setting or use HTTPS transport.
 Note that computers in the TrustedHosts list might not be authenticated.
   -For more information about WinRM configuration, run the following command: winrm help config. F
or more information, see the about_Remote_Troubleshooting Help topic.
    + CategoryInfo          : OpenError: (:) [], PSRemotingTransportException
-------------------------------------------------------------------------------------------------------

This is my script :

Import-Module WebAdministration
[array]$Servers = "xxxxx", "xxxxx"
foreach($server in $Servers)
{
Invoke-Command -ComputerName $server -credential "xxxxx"   -ScriptBlock {
$a = "<style>"
            $a = $a + "BODY{background-color:#FFDBA8;}"
            $a = $a + "TABLE{border-width: 1px;border-style: transparent;border-color: ;border-collapse: collapse;}"
            $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:wheat}"
            $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:PaleGoldenrod}"
            $a = $a + "</style>"
$pools=(New-Object Microsoft.Web.Administration.ServerManager).ApplicationPools

foreach($pool in $pools)
{
  $pool | select name , state | ConvertTo-HTML -head $a -body "<H4>App-pool details $server</H4>" | Add-content c:\appooldetailsv3.html
 
  }
  }
  }

Please help


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>