Key Authorization for Batch Program

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Bjorn94
Posts: 4
Joined: 05 Mar 2022 06:35

Key Authorization for Batch Program

#1 Post by Bjorn94 » 27 Mar 2022 10:44

Is it possible to enter an authentication key associated with the customer's HWID? So that the program cannot be used on other users on other PCs?

ShadowThief
Expert
Posts: 1166
Joined: 06 Sep 2013 21:28
Location: Virginia, United States

Re: Key Authorization for Batch Program

#2 Post by ShadowThief » 27 Mar 2022 15:06

Batch is an interpreted language, so any obfuscation has to eventually get undone so that the command prompt can actually run the code. Making the code read-only won't help either, since people can just copy and paste the code into another instance of Notepad.

That said, you can certainly get the output of wmic csproduct get uuid and check it against any allowed values.

Post Reply