Could someone help me find how to run netstat -nb
in powershell script in python?
import os
def main():
a = os.popen('netstat -nb').read()
print ("\n Connections", a)
main()
Output:
The requested operation requires elevation.
Could someone help me find how to run netstat -nb
in powershell script in python?
import os
def main():
a = os.popen('netstat -nb').read()
print ("\n Connections", a)
main()
Output:
The requested operation requires elevation.