none
Startup script wont work, same script as logon works

    Question

  • Hi All,

    We explicitly defined DNS primary and secondary IPs for all clients using a group policy, now we need to remove them from all Laptops 

    we remove the link of the old GP from laptop OU and created a new policy with startup script.cmd. The script is running by double click and removes the DNS entries normally but does not run when applied via GP.

    Script:

    @echo off
    netsh interface ipv4 delete dnsservers "local area connection" all

    netsh interface ipv4 delete dnsservers "Wireless Network Connection" all

    The same script is working if we run it as Logon in user configuration.


    MCP,MCTS(Vista),MCSA(Messaging)

    Thursday, February 25, 2016 1:09 AM

Answers

All replies