Guest KonstantinosP1 Posted July 8, 2019 Posted July 8, 2019 Hello, recently i am experimenting with the WMI. I am running windows 10 home 64 bit version and i discovered that when i am quering Win32_NetworkAdapterConfiguration, variables DHCPLeaseExpires and DHCPLeaseObtained have not right values. I have tried to run the same command on windows 8.1 and on windows server 2012r but the results were the expected ones. The command that i run in Powershell is: "get-wmiobject win32_networkadapterconfiguration | select caption,description, DHCPLeaseExpires, DHCPLeaseObtained" The results are: DHCPLeaseExpires DHCPLeaseObtained ---------------- ----------------- 19700102110845.000000+120 19700102103845.000000+120 19700102110845.000000+120 19700102103845.000000+120 19700102113849.000000+120 19700102103849.000000+120 Nevertheless when I am running the command "ipconfig /all" I get the correct values For example: Lease Obtained. . . . . . . . . . : Τρίτη, 20 Μαρτίου 2018 11:38:36 μμ Lease Expires . . . . . . . . . . : Τετάρτη, 21 Μαρτίου 2018 12:23:36 πμ Why in the first occasion the year is 1970 instead of 2018? More... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.