New
#1
What is event ID for dhcp-client IP lease? (Or ia there a better way?)
Hi,
I need to do a net use when an IP is assigned via DHCP. The only way that I can find to do this is to schedule a task based on a logged event. To do this I need to specify
- the log (I picked "Microsoft Windows DHCP Events/Admin")
- the source (I picked Dhcp-Client)
- the event ID (this is what I can't figure out)
I looked at the logs with the Event Viewer and found a bunch of dhcp-client log entries but none of them were "successful IP lease" or words to that effect.
I get tons of these: (50067) Dhcp has received network hint 146514C4F4E4 for the Network Card with the network address 0x4025C2636874
and, while meeeing with the router) a few of these: (1001) Your computer was not assigned an address from the network (by the DHCP Server) for the Network Card with network address 0x4025C2636875. The following error occurred: 0x79. Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.
but I never saw something indicating a successful lease and I know there was one or I couldn't be posting this question!
OR IS THERE A BETTER WAY to schedule a task when an IP is assigned?