DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Reset DNS Configuration To DHCP

  • submit to reddit
        Resets the DNS configuration on the specified remote PC (per the /node:PCname parameter) to obtain DNS addresses from DHCP

wmic /node:PCname process call create 'cmd.exe /c “netsh interface ip set dns name=”Local Area Connection“ source=dhcp”'