none
Import-PSSession $Session RRS feed

  • Question

  • Hi Team,

    Please let me know why I am getting the error msg "ErrorAction SilentlyContinue " on below,

    Iam trying to create new DL in exchange server 2013 but Iam getting below error msg.

    “  $Session =
    New-PSSession –ConfigurationName Microsoft.Exchange –ConnectionUri 

    -Authentication Kerberos 
             Import-PSSession $Session
    -ErrorAction SilentlyContinue    

    • Moved by Bill_Stewart Wednesday, May 30, 2018 7:32 PM Unanswerable drive-by question
    Thursday, April 5, 2018 4:33 AM

All replies

  • PowerShell commands cannot be written across multiple lines Remove the line feeds that are breaking the com NDS.

    Use "help" to learn how to write PowerShell commands.

    Also please post all of the error message and not just a piece.

    It is recommended that you learn PowerShell be fore trying to copy and use code. 


    \_(ツ)_/

    Thursday, April 5, 2018 4:59 AM
  • Thanks for the information,what below statement means?

    Import-PSSession $Session
    -ErrorAction SilentlyContinue    

    Thursday, April 5, 2018 10:26 AM
  • You cannot have a statement on two lines.

    Learn PowerShell  


    \_(ツ)_/

    Thursday, April 5, 2018 10:27 AM