Forum Discussion

mark_carlisle's avatar
mark_carlisle
Advocate IV
7 years ago
Solved

Gateways - Update Datasource how to build the body in PowerShell

We have a lot of data sources (~200) and an IS enforced policy to change passwords every 45 days. The current process is for someone to go through these data sources and input the new credentials as ...
  • mark_carlisle's avatar
    7 years ago

    Solution

     

    $TEST = @{
          'credentialDetails' = 
            @{
              credentialType = 'Windows'; 
              credentials = '{"credentialData":[{"name":"username", "value":"<REDACTED>"},{"name":"password", "value":"<REDACTED>"}]}';
              encryptedConnection = 'Encrypted'; 
              encryptionAlgorithm = 'RSA-OAEP'; 
              privacyLevel = "Organizational"
            }
        }   | ConvertTo-Json