Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if "%1"=="" goto usage
- ::: delete ts client license registry key
- echo %1
- snmpset -v 2c -c WBTADMIN %1 1.3.6.1.4.1.714.1.2.3.15.1.1.1.1 i 2
- snmpset -v 2c -c WBTADMIN %1 1.3.6.1.4.1.714.1.2.3.15.1.1.2.1 s "SOFTWARE\Microsoft\MSLicensing"
- snmpset -v 2c -c WBTADMIN %1 1.3.6.1.4.1.714.1.2.3.15.1.1.3.1 i 2
- snmpget -v 2c -c WBTADMIN %1 1.3.6.1.4.1.714.1.2.3.15.1.1.4.1
- goto end
- :usage
- echo usage: resetlic {ip address or hostname}
- echo.
- :end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement