none
How to collect NetworkStatistics under PowerShell? RRS feed

  • General discussion

  • Under CMD, the following code require administrator level or elevated permissions, so it cannot write report into text file,

    netstat -b > D:\netstat.txt

    I would like to know on how PowerShell coding work on collecting NetworkStatistics issue.

    Does anyone have any suggestions?

    Thanks in advance for any suggestions



    Thanks in advance for any suggestions

    • Changed type Bill_Stewart Friday, July 7, 2017 6:22 PM
    • Moved by Bill_Stewart Friday, July 7, 2017 6:22 PM Help vampire
    Tuesday, May 16, 2017 5:20 AM

All replies

  • The same is true for PowerShell.

    Use:

    net statistics workstation
    net statistics server

    or

    netsh interface ipv4 show tcpconnections
    netsh interface ipv4 show ipstats
    netsh interface ipv4 show ?


    \_(ツ)_/

    Tuesday, May 16, 2017 6:39 AM
  • I would like to know on any command in PowerShell working like netstat -b, which show the name of program.

    Under PowerShell, the following code also require administrator level or elevated permissions, so it cannot write report into text file too

    netstat -b > D:\netstat.txt

    I would like to know on how to run PowerShell coding to skip the requirement of administrator level or elevated permissions.

    Do you have any suggestions?
    Thank you very much for any suggestions :>


    Thanks in advance for any suggestions


    Tuesday, May 16, 2017 2:02 PM
  • Why? Just run the netstat -b command at the PowerShell prompt, just like you have been doing already.

    -- Bill Stewart [Bill_Stewart]

    Tuesday, May 16, 2017 2:24 PM
  • Detailed access to a process with any tool requires elevation.


    \_(ツ)_/

    Tuesday, May 16, 2017 2:50 PM
  • I would like to know on how to use script to skip the requirement of elevated permissions.

    Do you have any suggestions?
    Thank you very much for any suggestions :>

    Thanks in advance for any suggestions

    Tuesday, May 16, 2017 3:59 PM
  • I would like to know on how to use script to skip the requirement of elevated permissions.

    Do you have any suggestions?
    Thank you very much for any suggestions :>

    Thanks in advance for any suggestions

    Now that doesn't sound like it makes at sense. What good is security if we can just ignore it.


    \_(ツ)_/

    Tuesday, May 16, 2017 4:34 PM