I want to create a script where remove all the address I set manually in ethernet adaptor. To do that first I want to read the ip addresses. At the begging works perfectly but after I tried to remove them now even the read function is not working. Even after I made a restart I still receive the same error:
a = subprocess.getoutput(f'netsh interface ipv6 show address LocalNetwork')
Receive:
ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5)
ERROR:disk_cache.cc(205)] Unable to create cache
The issue is with the permissions or envirnoment.
Try is with error handling:
It is using subprocess.check_output instead of getoutput for better error handling.