# Enforcing Smartcard with Powershell

**URL:** <https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982>\
**Category:** PowerShell Help\
**Created:** [March 31, 2022, 8:53pm UTC](https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982 "2022-03-31T20:53:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronnie.hanif](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@ronnie.hanif](https://forums.powershell.org/u/ronnie.hanif)\
**Post date:** [March 31, 2022, 8:53pm UTC](https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982/1 "2022-03-31T20:53:32Z")

</div>

Hello All, I am a novice when it comes to scripting especially in powershell.

I came across this writeup on enforcing smartcard but also allowing the user to reset their password:

> **[Authenticating users with smartcard and login/password](https://www.anvole.com/en/news/authenticating-users-with-smartcard-and-login-password/)**
>
> Context When a user opens an Active Directory session with his smartcard, it happens that some applications do not support smartcard logon, but needs

Is the script listed a powershell script or visual basic? How do I go about running this script on a user to test?

Please advise if I understand what the script is actually doing.

Thanks All!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [March 31, 2022, 8:58pm UTC](https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982/2 "2022-03-31T20:58:15Z")

</div>

Ronnie,  
Welcome to the forum. 👋🏽

How about contacting the author of the script when you have questions about it? 😉

---

<div class="post-metadata">

**Author:** ![tbingeman](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tbingeman/32/2122_2.png) [@tbingeman](https://forums.powershell.org/u/tbingeman)\
**Post date:** [April 1, 2022, 5:09pm UTC](https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982/3 "2022-04-01T17:09:39Z")

</div>

Ronnie,

The article you linked tells you what type of script it is. Please look through the article and find the name of the type of script it is.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:18pm UTC](https://forums.powershell.org/t/enforcing-smartcard-with-powershell/18982/4 "2024-05-16T20:18:07Z")

</div>

Closed on May 16, 2024, 8:18pm UTC


