0

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.

Simon Bar
  • 116
  • 1
  • 6
Adir
  • 29
  • 2
  • 9

1 Answers1

0

you need to activate the power shell as administrator