r/PowerShell • u/LegitimateEye8153 • Jan 06 '26
Creating a powershell script that toggle IPv6
Hello ,
I want to ask if i can write a script and make it run automatically when windows start to enable ipv6 if it disabled or disable it if enabled because i have a problem , computers can't read domain and show undefiend network so it takes long time to signout .
0
Upvotes
View all comments
Show parent comment
3
u/LegitimateEye8153 Jan 06 '26
i am using ipv4 not ipv6 so i make changes in IPv6 mark it enabled or disabled to make any change in network to reset it , then the pc read the domain .
when i do that the network changes from undefined network to the domain name.
pc take a long time to signout (15-20 min) but when i do that pc read the domain name and signout normally in just seconds.
so i don't wanna do that i need a powershell commands so i can run it when start or make it run automaticlly when restart the pc.