IT
摘要: using System; using System.Collections.Generic; using System.Text; using System.Management;namespace CS{ class Program { static void Main(string[] args) { PrintMotherBoardInfo(); Console.WriteLi... 阅读全文
posted @ 2010-05-11 16:15 liufei 阅读(801) 评论(0) 推荐(0) 编辑
摘要: <HTML><HEAD><TITLE>WMI Scripting HTML </TITLE><META http-equiv=Content-Type content="text/html; charset=gb2312"><SCRIPT language=JScript event="OnCompleted(hResult,pEr... 阅读全文
posted @ 2010-05-11 15:42 liufei 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: 最近学习过程中,想到提取系统硬件信息做一些验证,故而对网上提到的利用.NET System.Management类获取硬件信息做了进一步的学习、验证。验证是分别在4台电脑,XP SP3系统中进行,特将验证过程记录于此。 说明:电脑1(联想品牌电脑);电脑2(HP品牌电脑);电脑3(联想品牌电脑);电脑4(兼容机);获取CPU编号:view plaincopy to clipboardprint?M... 阅读全文
posted @ 2010-05-11 15:37 liufei 阅读(2947) 评论(0) 推荐(0) 编辑
摘要: http://www.dnbcw.com/biancheng/c/glhm92624.html 阅读全文
posted @ 2010-05-11 14:12 liufei 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 多的朋友对WMI可能见过但理解不深,我也是十分想了解关于WMI的知识,可一直找不对太合适的资料,在网上的一些资料不是有很多错误,就是讲解不清,我有空的时候将关于WMI的知识集中一下,放在这里便于大家学习。本贴会不断增加。 1、什么是WMI WMI是英文WindowsManagementInstrumentation的简写,它的功能主要是:访问本地主机的一些信息和服务,可以管理远程计算机(当然你必须... 阅读全文
posted @ 2010-05-11 11:29 liufei 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 0 一.应用场景 客户服务器上装的软件越来越多,由原来一个人管理改为几个人同时管理了,因此不同的管理员需要经常进行远程登陆,注销操作。 服务器上原有的一些程序是windows程序,用户登陆注销后,程序就退出了,咋办?把GUI程序改成windows服务程序是可行的,但客户希望能尽快解决此问题啊,咋办?于是就有了本文的想法,先这样用用吧! 呵呵...二.本文难点 说起来就一句话,做起来可得考虑以下三个... 阅读全文
posted @ 2010-05-11 10:53 liufei 阅读(1736) 评论(6) 推荐(1) 编辑
摘要: 使用。net的ManagementClass获取计算机硬件信息1. ManagementClassosClass=newManagementClass("Win32_MemoryDevice");//这里写的是内存的信息,可以改成如下的信息 2. //Win32_1394Controller 3. //Win32_1394ControllerDevice 4. //Win32_Account 5.... 阅读全文
posted @ 2010-05-11 10:36 liufei 阅读(753) 评论(0) 推荐(0) 编辑
摘要: 客户端ip:Request.ServerVariables.Get("Remote_Addr").ToString();客户端主机名:Request.ServerVariables.Get("Remote_Host").ToString();客户端浏览器IE:Request.Browser.Browser;客户端浏览器 版本号:Request.Browser.MajorVersion;客户端操作系... 阅读全文
posted @ 2010-05-11 10:34 liufei 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 有的时候需要根据MAC来限定登录的计算机,为此查找了不少资料(有来自博客堂和CSDN),下面是获得远程计算机的MAC和局域网中计算机列表的方法。需要引用的命名空间 using System; using System.Collections; using System.Diagnostics; using System.Management; using System.Net; using Sys... 阅读全文
posted @ 2010-05-11 09:58 liufei 阅读(611) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Management;namespace SHJ{ /// <summary> /// Computer Information /// </summary> public class Computer { public string CpuID; public string MacAddress; public stri... 阅读全文
posted @ 2010-05-11 09:53 liufei 阅读(455) 评论(0) 推荐(0) 编辑