https://github.com/thibaultmaudet/ps-toolbox
A set of Powershell functions simplifying scripting or informations acquision.
https://github.com/thibaultmaudet/ps-toolbox
powershell-core powershell-desktop powershell-module windows
Last synced: 4 months ago
JSON representation
A set of Powershell functions simplifying scripting or informations acquision.
- Host: GitHub
- URL: https://github.com/thibaultmaudet/ps-toolbox
- Owner: thibaultmaudet
- License: mit
- Created: 2020-11-26T19:36:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-30T20:07:56.000Z (over 5 years ago)
- Last Synced: 2025-01-15T22:42:40.370Z (over 1 year ago)
- Topics: powershell-core, powershell-desktop, powershell-module, windows
- Language: PowerShell
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# PS-Toolbox
This module contains a collection of functions than you can use to enhance your powershell utilisation. Most of commands availables are cross-plateform and usable in the Core and Desktop version of Powershell.
## System Tools
### Get-OsVersion
The `Get-OsVersion` function is an equivalent to `winver.exe` to display the OS version informations.
```powershell
Get-OsVersion
ProductName : Windows 10 Pro
EditionId : Professional
ReleaseId : 2004
Build : 19041
InstallDate : 03/09/2020 10:16:00
RegisteredOrganization :
RegisteredOwner :
```
### Get-WifiProfiles
This command list all Wi-Fi profiles saved in your computer.
```powershell
Get-WifiProfiles
SSID
----
Network1
Network2
Network3
```
### Get-WifiPassword
Display all Wi-Fi profile passwords saved in your computer.
```powershell
Get-WifiPassword
SSID Pasword
---- -------
Network1 Password1
Network2 Password2
Network3 Password3
```
You can also display only some of the saved networks.
```powershell
Get-WifiPassword -ListAvailable Network1, Network3
SSID Pasword
---- -------
Network1 Password1
Network3 Password3
```
## Other tools
### Convert-DataBytes
Use this function to convert a stockage unit to an another.
```powershell
Convert-DataBytes -Value 1 -From KB -To Bytes
1024
```
You can also pass the value by a pipeline.
```powershell
1 | Convert-DataBytes -From KB -To Bytes
1024
```
### Get-Percentage
This function allows to calculate a percentage.
```
Get-Percentage -FirstNumber 250 -SecondNumber 37
85,2
```