D
D
Denis Davydenko2022-01-28 12:53:42
cmd/bat
Denis Davydenko, 2022-01-28 12:53:42

How to use slmgr via PsExec?

You need to make a script for remote activation of Windows 7 via KMS.
3 commands are executed:

slmgr /skms ***
slmgr /ipk ***
slmgr /ato

Everything works locally. When trying through PsExec, the following happens:
- If I just connect to a PC ( psexec64.exe \\*** cmd.exe) and execute all these commands, everything works;
- If I write these commands in a batch file
psexec64.exe \\*** cmd.exe /с slmgr /skms ***
psexec64.exe \\*** cmd.exe /с slmgr /ipk ***
psexec64.exe \\*** cmd.exe /с slmgr /ato

Then at the stage of executing the first command, the execution hangs and does not react to anything, including Ctrl + C.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question