Search the Community
Showing results for tags 'IP address'.
Found 2 results
Hello everybody. Few months ago, I've written a >network UDF. The functions witch configure the network use WMI to do that (ex : EnableStatic method for changing the IP adress) But now, I'm looking for a way to avoid using WMI, because somethimes, on some computers, WMI may not work. I do not want to use an external tool or command (like netsh). I've search for a solution on MSDN with the WinAPI fonctions (IP Helper). The functions that would allow me to add or delete an IP adress are AddIPAddress and DeleteIPAddress. But as the MSDN says : - The IPv4 address added by the AddIPAddress function is not persistent. - To create an IPv4 address that persists, the EnableStatic method of the Win32_NetworkAdapterConfiguration Class Unfortunately, I don't know if there is another solution than using wmi... My idea is to change the IP adress in the registry and then use AddIPAddress to apply the modification without restarting Windows. Firstly : do you think my idea is realiable ? Secondly : how can I use the AddIPAddress function ? (I'm not good at all with using WinAPI) Thanks for your help and suggestions.
Hey all, back with some more AD questions. Is it possible to return machine info (computer name) given a username? Id like to know what computer a specific user is logged in to (and maybe a little history of when they last logged in to which computer), and Im thinking my best odds are using the AD UDF? Thanks for any help!!