create a hardware lock - Forum

Forum Navigation
You need to log in to create posts and topics.

create a hardware lock

Hello
To create a hardware lock, I need a fixed code from the system
For example, a hard drive serial or ...
How can I use it?

Hello,

Take a look at variable [HDSerialNum].

Regards

Try This

https://archive.visualneo.com/viewtopic.php?f=3&t=22048&p=11222503&hilit=HDD+SERIAL#p11222503

Regards

Quote from HPW on March 4, 2019, 10:17 pm

Hello,

Take a look at variable [HDSerialNum].

Regards

By installing Windows, this Variable is changed.

@s7shanbe btw are you trying to create a protection system?

Create a file named motherboard_serial in your C:\Program Files\Neobook or VisualNEO\Functions folder

and paste the below code. After that you can get the motherboard serial by calling the function i.e. Call "motherboard_serial" "[serial]"

{NeoBook Function}
Version=5.80
Language=VBScript
Comment=Motherboard sn
Param=[%1]|Text|Var to get motherboard sn (enclosed in square braces)
{End}

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard")
For Each objItem in colItems
publication.nbSetVar "[%1]", objItem.SerialNumber
exit for
Next

luishp and josevdr95 have reacted to this post.
luishpjosevdr95

After that you can get the motherboard serial by calling the function

Wow!

Quote from neodude on March 27, 2019, 11:14 pm

@s7shanbe btw are you trying to create a protection system?

Create a file named motherboard_serial in your C:\Program Files\Neobook or VisualNEO\Functions folder

and paste the below code. After that you can get the motherboard serial by calling the function i.e. Call "motherboard_serial" "[serial]"

{NeoBook Function}
Version=5.80
Language=VBScript
Comment=Motherboard sn
Param=[%1]|Text|Var to get motherboard sn (enclosed in square braces)
{End}

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard")
For Each objItem in colItems
publication.nbSetVar "[%1]", objItem.SerialNumber
exit for
Next

Thank you, but this function does not work for me.

May I know why it didn't work?

Did it give you any error?

Did it return invalid/blank data?

@neodude

Variables/Data is Blank ... function dont get motherboard serial

Try this one. It calculates a UUID from Mac Address of Network Adapter.

Mac Address is hard coded in the device & remains same after Windows re-install.

Uploaded files:
  • You need to login to have access to uploads.
s7shanbe has reacted to this post.
s7shanbe

@s7shanbe

try:

After that you can get the motherboard serial by calling the function i.e. Call "motherboard_serial" "serial"

{NeoBook Function}
Version=5.80
Language=VBScript
Comment=Motherboard sn
Param=%1|Text|Var to get motherboard sn (enclosed in square braces)
{End}

Set objWMIService = GetObject("winmgmts:\\.\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_BaseBoard")
For Each objItem in colItems
publication.nbSetVar "%1", objItem.SerialNumber
exit for
Next

 

salu2

@neodude

This is great.

If the network card driver is not installed, does this Plugin still work?

@s7shanbe Not having network card driver is like having a broken computer.

The function may return a non unique UUID which will be same for all computers that lack card driver.

For example: 0000-0000-A427-I9081-0000-0000

To combat this scenario, you should take both HardDrive ID and Mac UUID. If hard drive id changes due to Windows re-install, you still have a unique Mac UUID.

Only in very rare case, a person would re-install Windows and corrupt his network driver.

s7shanbe has reacted to this post.
s7shanbe

Tank you.

hi

@neodude my dear friend

UUID does not work on all systems!

Please help me to get a fixed code from the system.

Hello

@neodude

when I execute

Call "motherboard_serial" "serial"

I get "Default string" in serial Var

 

Why I don't get motherboard serial? ,What is wrong in that Function?

NeoToolBox is a plugin with some very interesting functions for getting system info.

i.e.
cbGetComputerName
cbGetWindowsInstallDate
cbGetMacAddress
cbGetCpuManufacturer
cbGetCpuID
cbGetCpuSpeed
cbGetHDManufacturerID
cbGetMainBoardManufacturer
cbGetMainBoardID
cbGetMainBoardType

Uploaded files:
  • You need to login to have access to uploads.