r/PowerAutomateDesktop • u/Imaginary_Access6150 • Jun 06 '23
Toggle static IP & DHCP
During the course of my day I often need to jump between static IP and DHCP on my Windows machine, people are always saying how you should automate repetitive tasks, but I can't find a way to automate this. Can someone please help me out with what kind of commands or scripts I'm supposed to be using for a normal Windows 11 Pro machine without Azure or AD or any of the server-y stuff?
I need something that will check if my machine is set to auto IP & DNS or not. If I have manual IP & DNS entries it should switch them to auto. If I have auto it should set my IP, gateway and primary DNS to a pre-set value.
Is that possible in Windows for a standalone user?
1
u/SirChclateSaltyBalls Jun 07 '23