Jump to content

Recommended Posts

Guest KonstantinosP1
Posted

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...

  • Replies 0
  • Created
  • Last Reply

Popular Days

Popular Days

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.   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.


×
×
  • Create New...