locked
-expand problem RRS feed

  • Question

  • Hi all!

    Does anyone know how to fix this problem?
    [PS] C:\Windows\System32>Get-ClientAccessServer -expand name
    Get-ClientAccessServer : A parameter cannot be found that matches parameter name 'expand'.
    At line:1 char:31
    + Get-ClientAccessServer -expand  <<<< name

    ---

    Cheers!
    Tuesday, October 6, 2009 9:26 PM

Answers

  • Not sure exactly what you are trying to do - you just want to get the Name of the Client Access Server?  If so I think you are meaning to pipe to select-object, which has an -expand parameter.

    [PS] C:\Windows\System32>Get-ClientAccessServer | select -expand name

    Get-ClientAccessServer does not have an expand parameter: http://technet.microsoft.com/en-us/library/bb124785.aspx

    -Lincoln

    • Proposed as answer by Marco Shaw Wednesday, October 7, 2009 1:04 AM
    • Marked as answer by LarsMK Friday, October 9, 2009 11:28 AM
    Tuesday, October 6, 2009 11:10 PM

All replies

  • Not sure exactly what you are trying to do - you just want to get the Name of the Client Access Server?  If so I think you are meaning to pipe to select-object, which has an -expand parameter.

    [PS] C:\Windows\System32>Get-ClientAccessServer | select -expand name

    Get-ClientAccessServer does not have an expand parameter: http://technet.microsoft.com/en-us/library/bb124785.aspx

    -Lincoln

    • Proposed as answer by Marco Shaw Wednesday, October 7, 2009 1:04 AM
    • Marked as answer by LarsMK Friday, October 9, 2009 11:28 AM
    Tuesday, October 6, 2009 11:10 PM
  • Thanks! Had to do it "the old way" :)
    Friday, October 9, 2009 11:28 AM