Skip to content

Replaced the command "net statistics" with "Get-Uptime" #142

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mmarigo
Copy link

@mmarigo mmarigo commented Apr 18, 2025

Replaced the command net statistics workstation ... with Get-Uptime available since PowerShell ver. 6.
The reason is that the output of the command net statistics depends on the language of the operating system and it is not possible to execute: net statistics workstation | Select-String "since".

In Italy for example
the output of the command is:
...
Statistiche dal 18/04/2025 08:48:09
...

net_statistics

Marco Marigo and others added 3 commits April 18, 2025 11:49
… "Get-Uptime" available since PowerShell ver. 6.

The reason is that the output of the command "net statistics" depends on the language of the operating system and it is not possible to execute: net statistics workstation | Select-String "since" ...
In Italy for example
the output of the command is for example:
...
Statistiche dal 18/04/2025 08:48:09
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant