In the past I’ve used the Microsoft Volume Activation Management Tool (VAMT) to apply licenses across an entire fleet of servers. there is, however, a bug in the tool which prevent you from using the letter ‘N’ in the license number. Even copy/paste doesn’t work – it simply drops any and all N’s.
Here’s what happens when I type the letter ‘N’:
So here’s a PoweShell script that levergaes WMI to install the license key, “invalid characters” and all.