Long time ago i had found a usefull script from ptrex which i had used.
Lately messing with cmd on my computer trying to manage some actions with my IP i made a small script.
What it does is:
It can give you your IP Address
Release your IP Address
Renew your IP Address
Delete your apr cache
Reset your TCP/IP
And check services
Please read the script carefully before using it and use it only if you understand what it does.
Else it could affect your network.