A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
Hi @jansi rani krishnan ,
it's possible to store sensitive data like passwords as an encrypted variable in Orchestrator.
I am using two variables for this, it's easier to maintain later (UserName and UserPassword)
Make sure to select the Encrypted Variable checkbox for the UserPassword.
In your PowerShell script replace $CRED=get-credential with these lines.
$UserName = "UserName"
$PassWord = ConvertTo-SecureString -String "UserPassword" -AsPlainText -Force
$CRED = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $UserName, $PassWord
In your PowerShell script you could subscribe to the variables (replace the hardcoded values) .
The result should look like this:
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten