Jump to content

Get data from Windows' Registry with PHP


siskokid

Recommended Posts

Good mourning :)

 

Could anyone help me with the following task:

 

I need to drag some information of the Windows' Registry using PHP. I need the following:

 

IP Address, DNS Address, DNS Suffix and DHCP.

 

These variables are located under:

 

SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces

 

Could you please help me with a sample of code :)

 

I know how to do it with VBScript. So in this connection, another valuable piece of help would be to give me a piece of PHP code, which would help me to "implant" my VBScript into the PHP code. I mean, I need the VBScript to be called by the PHP and executed on the fly :)

 

I couldn't manage to "translate" the VBScript into PHP, because I noticed that some of the implemented Classes and Methods for VBScript are not available for PHP :(

 

Any help will be appreciated :)

 

Best,

siskokid

 

 

Link to comment
Share on other sites

I couldn't manage to "translate" the VBScript into PHP, because I noticed that some of the implemented Classes and Methods for VBScript are not available for PHP

 

They are (the classes your looking for) available through com.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.