View Complete Thread
  • Undefined object type Server

    May 14, 2019 10:06 PM|jvinicius|LINK

    Hi, folks.

    I'm trying to run some PowerShell scripts, like Start-WebAppPool, for a specific server and I got the following error:

    PS C:\Users\xyz> Start-WebAppPool -Name 'abc'
    Start-WebAppPool : Undefined object type Server.
    Parameter name: nodeName
    At line:1 char:1
    + Start-WebAppPool -Name 'abc'
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Start-WebAppPool], ArgumentException
        + FullyQualifiedErrorId : invalidArgument,Microsoft.IIs.PowerShell.Provider.StartAppPoolCommand

    I have 10 servers and I'm able to run the same command this command in 9 of then. Even when tried to Import-Module WebAdministration it doesn't work.

    Any idea of what's going on?