# Script to push current keycode for OEM Make Wizard to clipboard

**URL:** <https://forum.techsoft3d.com/t/script-to-push-current-keycode-for-oem-make-wizard-to-clipboard/693>\
**Category:** AutoCAD OEM\
**Created:** [March 14, 2022, 7:05am UTC](https://forum.techsoft3d.com/t/script-to-push-current-keycode-for-oem-make-wizard-to-clipboard/693 "2022-03-14T07:05:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/felder/32/266_2.png) [@felder](https://forum.techsoft3d.com/u/felder)\
**Post date:** [March 14, 2022, 7:05am UTC](https://forum.techsoft3d.com/t/script-to-push-current-keycode-for-oem-make-wizard-to-clipboard/693/1 "2022-03-14T07:05:56Z")

</div>

On step that could always fail, is to take the right keycode (based on date and serial number). Unfortunately, this code changes every day…

I created a small Powershell-Script calculating the current keycode and pushing it to the clipboard from where it could be pasted into the OEM Make Wizard dialog:

```auto
$LicenseKeys = "12345"
$Day = Get-Date -Format "dd"
$Month = Get-Date -Format "MM"
$keycode = $Month + $LicenseKeys + $Day
#push keycode to clipboard
Set-Clipboard $keycode 

```

---

<div class="post-metadata">

**Author:** ![gabriel.peragine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/gabriel.peragine/32/1535_2.png) [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Post date:** [March 15, 2022, 8:41pm UTC](https://forum.techsoft3d.com/t/script-to-push-current-keycode-for-oem-make-wizard-to-clipboard/693/2 "2022-03-15T20:41:06Z")

</div>

Thanks so much for this @felder ! 🙂 I’m sure someone will find it useful
