Jump to content

Bios Serialini Alma (Luacom)


NotToday
 Share

Recommended Posts

Bu kodlarla bios serialini almayı denedim.Versiyonu aldı fakat serial boş dönüyor.Buna bir çözüm var mı?

obj = luacom.GetObject ( "winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");
 if (obj ~= nil) then
   objEnum = obj:ExecQuery("Select * From Win32_BIOS");
   if (objEnum ~= nil) then
    
     enum = luacom.GetEnumerator(objEnum)
     item = enum:Next ()
 
       if ( item ~= nil) then
       
              str_product =  "BiOs Serial : "..item:SerialNumber().."\r\n"..
              "BiOs Versiyon : "..item:Version().."\r\n"
           Dialog.Message("Notice", str_product, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);      	
      end  
   end
end
Edited by NotToday
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...