Activating Windows server remotely via powershell with CSP key

James Edmonds 831 Reputation points
2022-10-28T09:22:39.547+00:00

Hello,

We have a Server 2022 Datacenter key via CSP, and want to mass activate our VMs.
As the key is not a MAK key, we cannot use volume activation tools, so I am trying to script this process with Powershell.

Trying to run invoke-command with slmgr.vbs does not seem to work as expected, so I wonder if anyone could offer me any guidance on how I might be able to complete the key install and activation remotely and en masse with powershell?

Many thanks
James

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Anonymous
    2022-10-28T12:17:45.487+00:00

    Much simpler may be to use AVMA activation.
    https://learn.microsoft.com/en-us/windows-server/get-started/automatic-vm-activation
    https://4sysops.com/archives/change-a-product-key-remotely-with-powershell/

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. Anonymous
    2022-10-28T13:26:57.177+00:00

  3. James Edmonds 831 Reputation points
    2022-11-04T12:15:22.627+00:00

    Anyone able to offer any additional suggestions on how I might be able to complete this?

    Cheers
    James

    0 comments No comments

  4. Anonymous
    2022-11-04T13:18:25.817+00:00

    Might give this one a go.
    https://learn.microsoft.com/en-us/sysinternals/downloads/psexec

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  5. Anonymous
    2022-11-04T18:06:57.547+00:00

    Sounds good, completely different issue. Please don't forget to close up the thread by 145510-image.png


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.