none
MS PowerShell Connector encrypted parameters RRS feed

  • Question

  • I have a need for a password in the PS import script in the MS PowerShell Connector. (O365 SharePoint CSOM can't use a PSCredential object.  It requires username/password).  

    I have been unable to find the syntax for extracting an encrypted parameter.

    Based on the MSDN documentation  I expected this to work:

    $pwd = $ConfigurationParameters["pwd_Global"].SecureValue

    Does anyone know the correct method?

    ~Randy

    Thursday, August 7, 2014 3:19 PM

Answers

  • Offhand I think the parameter is $ConfigParameters but I don't have a sample in front of me to check.

    Thanks, Brian

    • Marked as answer by Randy Wiemer Thursday, August 7, 2014 9:05 PM
    Thursday, August 7, 2014 4:39 PM
    Moderator

All replies

  • Offhand I think the parameter is $ConfigParameters but I don't have a sample in front of me to check.

    Thanks, Brian

    • Marked as answer by Randy Wiemer Thursday, August 7, 2014 9:05 PM
    Thursday, August 7, 2014 4:39 PM
    Moderator
  • Thanks Brian. 

    It works with the correct syntax.

    $pwd = $ConfigParameters["pwd_Global"].SecureValue

    I'm embarrassed to tell you how long I was stuck on this.


    ~Randy

    Thursday, August 7, 2014 9:05 PM