Share via

Running Conditional Powershell Script After IP Assignment from DHCP in AD ?!

touqeeranjum 80 Reputation points
2023-04-20T09:14:08.4433333+00:00

Hi, I wanted to know how to achieve this as I could not it find any where, and unsure if this is possible. I have a DC server with DNS, DHCP configured. What I want to do is once a client receives an IP from the DHCP server, a script should run on the client (bear in mind the client has not joined AD domain, it just received an IP). Thank You

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Rich Matheisen 48,116 Reputation points
    2023-04-20T13:36:29.49+00:00

    You can try the Event Log:

    Applications and Service Logs
    	Microsoft
    		Windows
    			Dhcp-Client
    				Microsoft-Windows-DHCP Client Events/Admin
    

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.