Hello,
We are trying to figure out how to get a unique identifier for a machine.
Our application is a C# windows application that talks to our server via a
webservice. Every time our webservice is called, we want to verify that the
user has a valid license. For that we want to identify the user via his/her
machine. I tried using the following
searcher = new ManagementObjec tSearcher("SELE CT * FROM Win32_DiskDrive ");
foreach(Managem entObject wmi_HD in searcher.Get())
{
HardDrive hd = new HardDrive();
hd.Model = wmi_HD["Model"].ToString();
hd.Type = wmi_HD["InterfaceT ype"].ToString();
hdCollection.Ad d(hd);
}
searcher = new ManagementObjec tSearcher("SELE CT * FROM
Win32_PhysicalM edia");
int i = 0;
foreach(Managem entObject wmi_HD in searcher.Get())
{
// get the hard drive from collection
// using index
HardDrive hd = (HardDrive)hdCo llection[i];
// get the hardware serial no.
if (wmi_HD["SerialNumb er"] == null)
hd.SerialNo = "None";
else
hd.SerialNo = wmi_HD["SerialNumb er"].ToString();
++i;
}
In most cases, I get serial number. But in a few cases, I get serial number
for the hard drive as zero. Is there any other way to uniquely identify the
user's machine.
Thanks,
-Nitin 8 2624
Hi Nitin, Is there any other way to uniquely identify the user's machine.
For your information:
DomainName+Comp uterName,
NIC's MAC Address
Processor's Serial Number
Wish it helps!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Gary,
thanks for the info. However, the processor id is not available on P3 and
below and I did not find it on Windows 98 machine. Any other ideas are
welcome.
But this looks like a good starting point.
Thanks,
-Nitin
""Gary Chang"" <v-******@online.m icrosoft.com> wrote in message
news:FU******** ******@cpmsftng xa10.phx.gbl... Hi Nitin,
Is there any other way to uniquely identify the user's machine.
For your information: DomainName+Comp uterName, NIC's MAC Address Processor's Serial Number
Wish it helps!
Best regards,
Gary Chang Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. --------------------
Hi Nitin,
Thanks for your response!
If you have the difficulty to query the Processor Serial number, I think
the Network Adapter's MAC address should be a good choice...
Good Luck!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Thanks Gary. Unfortunately, this solution may not work as some of our
clients may not have a Network Adapter (still using Dial-up).
Is there any other option available?
Thanks,
-Nitin
""Gary Chang"" <v-******@online.m icrosoft.com> wrote in message
news:%2******** ********@cpmsft ngxa10.phx.gbl. .. Hi Nitin,
Thanks for your response!
If you have the difficulty to query the Processor Serial number, I think the Network Adapter's MAC address should be a good choice...
Good Luck!
Best regards,
Gary Chang Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. --------------------
Hi Nitin, Is there any other option available?
Just for your information, the IP address that the machine is currently
used and maybe you can generate a GUID for your program when the program is
installing to the customer's machine...
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
I will try that. Do you know how Microsoft ensures this? If the machine does
not have network card or cannot get processor id. I am thinking of using the
serial number of operating system along with the date and time of install.
Do you think this will be unique enough?
Thanks,
-Nitin
""Gary Chang"" <v-******@online.m icrosoft.com> wrote in message
news:HI******** ******@cpmsftng xa10.phx.gbl... Hi Nitin,
Is there any other option available?
Just for your information, the IP address that the machine is currently used and maybe you can generate a GUID for your program when the program is installing to the customer's machine...
Thanks!
Best regards,
Gary Chang Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. --------------------
Hi Nitin,
As far as I know, the Windows' Serial Number is not unique per each
system...
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Does anyone know how Microsoft or other leading companies do it?
""Gary Chang"" <v-******@online.m icrosoft.com> wrote in message
news:MN******** ******@cpmsftng xa10.phx.gbl... Hi Nitin,
As far as I know, the Windows' Serial Number is not unique per each system...
Thanks!
Best regards,
Gary Chang Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights. -------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nitin |
last post by:
Hello,
We are trying to figure out how to get a unique identifier for a machine.
Our application is a C# windows application that talks to our server via a
webservice. Every time our webservice is called, we want to verify that the
user has a valid license. For that we want to identify the user via his/her
machine. I tried using the following
searcher = new ManagementObjectSearcher("SELECT * FROM Win32_DiskDrive");
|
by: dave m |
last post by:
I need to be able to retrieve a unique ID from a users PC. I needs to be
something a user could not easily change, like the computer name. Could
someone point me in the right direction to find the information found in
Windows system information? Or maybe there is a better method.
Thanks in advance for any help or suggestions.
Dave M.
|
by: nondisclosure007 |
last post by:
Hello all!
I have something rather unique. I'm creating a cookie for
customization for a webpage. But I want to tie the user to a machine
(not friendly, I know, but for what I'm doing, it's got to be done).
I know there a whole list of custom USI (Unique System Identifiers) on
a system. IE, System BIOS serial number, that funky code MSFT creates
on windows activation, etc.
|
by: JJ |
last post by:
Now I know this question has been asked many times, but I cannot seem to
find a good site which summarises the methods possible in vb .net.
I am after a way of producing a unique serial number for my app. The program
would produce a unique identifier for the computer, then I would psovide the
user with a serial number unique to their machine.
In other words I would like to check for things like:
i) Hard disk (not volume) serial number...
|
by: ba.hons |
last post by:
Hello all,
Was wondering if anyone could provide some info on what could be a
possible solution to a problem am having.
I have to generate a Unique Identifier in C# which I will use to
assign to a user, i dont really need the Unique Identifier's to be
sequential so i was considering using system.time.hour +
system.time.minute. + system.time.second, but am worried about
daylight savings and also people altering the time on the host PC.
| |
by: Ken |
last post by:
Hi,
I have a form whose control source is a view from SQL server 2005
database. The view has a primary key that is a unique identifier field
with keys generated by newid() function from SQL server 2005.
Anyhow when I try to view/assign the unique identifier field and debug/
use watchlist I get this "????????" for the value of the unique
identifier. I am able to create a text box with this unique identifier
field and view it. Its just when...
|
by: Rob Stevens |
last post by:
Is there some sort of unique identifier in every treenode
that is consistent? I was looking at the handle of every
treenode, but it appears that the handle changes everytime
the tree is built.
I have seen in some databases where they store the treenodes
they are using some serial number of the node. I don't have
a clue what that is, but can someone tell me if there is something
that is unique to every node.
|
by: Mufasa |
last post by:
I'm looking for a way to get a truly unique identifier for a machine for our
client software. I'd like to have it so that there's little or no setup by
the end user. (We set up the machines and then ship them out for most cases
but some of our customers do provide their own machines.) Our concern is if
somebody takes one of our machines and ghosts it so they have a complete
copy of the machine, it will allow them to continue working.
We...
|
by: mliptak |
last post by:
I'm trying to implement logging in my application, so that each log
message has its unique identifier, e.g.
log(identifier, text)
What I want to achieve is that the compiler screams if the log() with
'identifier' is also used in some other place in the code which would
make the 'identifier' not unique.
Is that something that can be achieved in C++?
Thanks
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |