Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Get-Credential with smartcard and PIN

$
0
0

I write lots of scripts for automation.  Administrators here run as a low privilege account and elevate what they need to an administrative account.

I want to be able to use Get-Credential in my scripts to get that elevating account from the user to do actions, but I have a problem.  Get-Credential works fine with username/password logins.  It does not work at all with a Smart Card and PIN.

How can I use Smart Card and PIN credentials in a PowerShell script to elevate actions using those alternate credentials?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>