Hi @Jonathan-Engstrom,
Could you please reply with the log output from the failed PowerShell operation?
Thanks,
Rich
Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Hi @Jonathan-Engstrom,
Could you please reply with the log output from the failed PowerShell operation?
Thanks,
Rich
Hi @Jonathan-Engstrom,
You will need to create a Resource Credential named MyCredential and then you can use that within your psensure PowerShell like this:
Move-ADObject -Identity (Get-ADComputer -Identity $env:COMPUTERNAME).ObjectGuid -Server $pdc -TargetPath $TargetOU -Credential $PSCredential(MyCredential)
By using a Resource Credential in Otter, the username and password will be securely stored in the Otter database. Please let me know if this does not work for you.
Thanks,
Rich
Hi @Jonathan-Engstrom ,
I'm sorry about this, but it looks like our documentation was out of date. We just updated our documentation and this should help to answer your question. $PSCredential now can be called in two different ways; with a username and password or by passing the resource credential name.
In order to use a resource credential within your PowerShell, you would just need to pass your resource credential name. For example:
# convert a resource credential named MyCredential to a PSCredential object
PSCall MyPowerShellScript
(
Credentials: $PSCredential(MyCredential)
);
Please let me know if this doesn't work for you.
Thanks,
Rich
Hi @mhull_0872,
We just released the latest version of ProGet 5.2.26 on 2/28/2020 which includes the new Package Deployment API. You can learn more about the package deployment tracking feature here. We also have documentation on how to use the API endpoint here.
Thanks,
Rich