---
title: "Activate Windows on a University Device"
canonical: "https://kb.uconn.edu/space/IKB/27930296371/Activate%20Windows%20on%20a%20University%20Device"
format: markdown
---
> ✅ Run the following command in PowerShell ISE as an admin.

1. Open the Start Menu and type in “PowerShell ISE”
  
2. Run the following code:

```
$GetDigitalLicence = (Get-WmiObject -query 'select * from SoftwareLicensingService’).OA3xOriginalProductKey

cscript c:\windows\system32\slmgr.vbs -ipk $GetDigitalLicence
```

![screenshot of administrator view of powershell ISE with the code provided](media://a3df362b-4a3e-40d1-ad41-a1be716751e6)