Add credential parameter for all PowerShell module cmdlets
Add credential parameter for PowerShell module cmdlets to allow cmdlets to be run from alternate credentials, such as a service account. This would be very useful for passing a credential asset to a runbook in Azure Automation.
We support -Credential when creating a CMSite PSDrive using New-PSDrive. Any ConfigMgr cmdlets that are run from this PSDrive will use the credentials specified for the specific PSDrive that was created.
Dan Sonnenburg commented
Excellent! Thanks for your response, this works perfectly!