473,624 Members | 2,426 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do you determine the registered company on a computer

How do you determine the registered company on a computer?

Thanks Patrick.

Nov 16 '05 #1
2 1341
Hi Patrick!

"Patrick Blackman" schrieb
How do you determine the registered company on a computer?


Use WMI:

//Add a reference to System.Manageme nt.dll
using System;
using System.Diagnost ics;
using System.Manageme nt;

ManagementClass os = new ManagementClass ("Win32_Operati ngSystem")
{
ManagementObjec tCollection osc = os.GetInstances ();
foreach(Managem entObject mo in osc)
{
Debug.WriteLine ("Organizati on: {0}", mo["Organizati on"].ToString());
Debug.WriteLine ("Registered User: {0}",
mo["RegisteredUser "].ToString());
Debug.WriteLine ("Serial number User: {0}",
mo["SerialNumb er"].ToString());
}
}
Nov 16 '05 #2
Thanks.. work like a charm.
"Arne Janning" <sp************ *****@msn.com> wrote in message
news:eq******** ******@TK2MSFTN GP14.phx.gbl...
Hi Patrick!

"Patrick Blackman" schrieb
How do you determine the registered company on a computer?


Use WMI:

//Add a reference to System.Manageme nt.dll
using System;
using System.Diagnost ics;
using System.Manageme nt;

ManagementClass os = new ManagementClass ("Win32_Operati ngSystem")
{
ManagementObjec tCollection osc = os.GetInstances ();
foreach(Managem entObject mo in osc)
{
Debug.WriteLine ("Organizati on: {0}",
mo["Organizati on"].ToString());
Debug.WriteLine ("Registered User: {0}",
mo["RegisteredUser "].ToString());
Debug.WriteLine ("Serial number User: {0}",
mo["SerialNumb er"].ToString());
}
}

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
6779
by: Kevin A | last post by:
Hi, Is there a way to determine the name and version of the operating system in a portable way? (for Solaris/Linux) Thanks, Kevin
3
1342
by: Jozef | last post by:
Hello, I'm wondering if the physical path of a library really matters as long as the library is registered with windows. FOr instance, if I have the DAO 3.6 object library in C:\Temp\ on my computer, but another computer has the same library registred in C:\Windows\System32\, would I still get a "MISSING: reference" when I try to run the database on the second computer?
3
4872
by: Hughsie | last post by:
Hi I have created an installation package for my app and I have installed the application onto another machine together with the framework and the correct MDAC version. The problem is when I access something in the application that uses one of the required dlls. All the dlls have been included with the application in the same
5
2289
by: ThunderMusic | last post by:
Hi, I want to find the computer name and the company name from the network indentification informations. For the computer name, I found System.Net.Dns.GetHostName(), but I fgound nothing for the company name. Can someone help me plz? Thanks
0
4227
by: Nonee | last post by:
Anyone, anyone? : ) Hello- I have a form with the mediaplayer referenced to play mp3's and avi's and I believe that is what is causing the problem. I am not sure, but I am hoping. Anyway, I "published" the vb.net app and moved it to another computer and I get the following error msg when I load the form with the mediaplayer on it. I upgraded this project from a
1
1302
by: Patrick Blackman | last post by:
How do you get the name of the Registered Company on a computer? Any ideas would be appreciated.
29
44135
Niheel
by: Niheel | last post by:
The Apple invasion into corporate has started and I can't say if I am excited or scared. As an IT manager, I have nightmares over all the support and technical issues of integrating Apple hardware and software into our company. As an owner of ample Apple products, I'm excited about being able to use my iPhone and MacBooks at the company. http://bytes.com/images/howtos/appleinvasion_graphic.gif For years many of us have fought to get Apple...
36
3793
by: James Harris | last post by:
Initial issue: read in an arbitrary-length piece of text. Perceived issue: handle variable-length data The code below is a suggestion for implementing a variable length buffer that could be used to read text or handle arrays of arbitrary length. I don't have the expertise in C of many folks here so I feel like I'm offering a small furry animal for sacrifice to a big armour plated one... but will offer it anyway. Please do suggest...
0
1564
by: Henning | last post by:
This time I agree with Bill replying to a .Net related Q, even if it hurts :)) No need to kick on Bill everytime he is posting in this group. Fair is fair. /Henning "Kevin Provance" <kevin@remove_tpasoft_remove.comskrev i meddelandet news:%23qLKOL4SJHA.5568@TK2MSFTNGP05.phx.gbl...
0
8240
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8680
Oralloy
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...
0
8482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7168
agi2029
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...
1
6111
isladogs
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...
0
5565
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();...
0
4177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2610
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
2
1487
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.