voicedaa.blogg.se

Get hard drive serial number vba
Get hard drive serial number vba





get hard drive serial number vba

Hd.SerialNo = wmi_HD.ToString() Ĭonsole.WriteLine("Press to exit.") HardDrive hd = (HardDrive)hdCollection ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia") įoreach (ManagementObject wmi_HD in searcher.Get()) / The main entry point for the application.ĪrrayList hdCollection = new ArrayList() Its csharp but vb.net is also maching and very few diffrences are there: If you do so, then you are compelled to let him or her login as admin!!!!!!!!!!īut we are looking forward and hope to find quick response Totally Admin previlleges which leads to a dark side implementation. Mean WMI (Windows Management Instrumentation) calling Requires Becasue we don't let the user to login as Admin or with Admin previlleges and if we don't, then u cannot execute this code on the client machine/user machine. Believe it i rewarded the user to that folder with full control to use this assembly/dllīut still failed to retrieve hdd firmware number. Afridi as '+92-3339176357'", vbInformation, "Registration Requires"īut remember Raj, we are still fighting how to develope a source code that will retrieve hdd firmware number in user loging mode not with admin previlleges. MsgBox "Application is not registered on this machine" & vbCrLf & _ StatusBar1.Panels(1) = "Welcome " & MC.curUserName Trim(hdSno) = myHddSno11 Or Trim(hdSno) = myHddSno12 ThenĬall MC.OpenCn("Provider=msdasql dsn=Financial & Management System") Trim(hdSno) = myHddSno8 Or Trim(hdSno) = myHddSno9 Or Trim(hdSno) = myHddSno10 Or _ Trim(hdSno) = myHddSno5 Or Trim(hdSno) = myHddSno6 Or Trim(hdSno) = myHddSno7 Or _

get hard drive serial number vba

If Trim(hdSno) = myHddSno1 Or Trim(hdSno) = myHddSno2 Or Trim(hdSno) = myHddSno3 Or Trim(hdSno) = myHddSno4 Or _ MyHddSno12 = "K64LT8B2E3HH" 'Fahad Laptop MyHddSno5 = "5JVVYQ0S" 'PMS (Mehro Nissa) MyHddSno7, myHddSno8, myHddSno9, myHddSno10, myHddSno11, myHddSno12 As String We assume that u have compiled and registered and added HDSNLab.dll to the project by using the refrences dialog box.ĭim myHddSno1, myHddSno2, myHddSno3, myHddSno4, myHddSno5, myHddSno6, _

get hard drive serial number vba

I have workd more professionally than this such as Raj, This requires Admin Previlleges and will not work in user login mode.







Get hard drive serial number vba