mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-28 10:53:32 +01:00
Update the manuals
This commit is contained in:
parent
88c834e437
commit
2acdb5fbbf
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: add-firewall-rules.ps1
|
||||
```powershell
|
||||
add-firewall-rules.ps1 [<path-to-executables>]
|
||||
Adds firewall rules for the given executables (needs admin rights)
|
||||
```
|
||||
|
||||
Adds firewall rules for the given executables (needs administrator rights)
|
||||
add-firewall-rules.ps1 [<PathToExecutables>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,9 @@ Adds firewall rules for the given executables (needs administrator rights)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./add-firewall-rules C:\MyApp\bin
|
||||
Adding firewall rule for C:\MyApp\bin\app1.exe
|
||||
Adding firewall rule for C:\MyApp\bin\app2.exe
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: add-memo.ps1
|
||||
```powershell
|
||||
add-memo.ps1 [<text>]
|
||||
Adds a memo to Memos.csv in the home folder
|
||||
```
|
||||
|
||||
Adds the given memo text to $HOME/Memos.csv
|
||||
add-memo.ps1 [<text>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Adds the given memo text to $HOME/Memos.csv
|
||||
## Example
|
||||
```powershell
|
||||
PS>./add-memo "Buy apples"
|
||||
✔️ added to 📄/home/markus/Memos.csv
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: alert.ps1
|
||||
```powershell
|
||||
alert.ps1 [<message>]
|
||||
Handle and escalate the given alert message
|
||||
```
|
||||
|
||||
Handle and escalate the given alert message
|
||||
alert.ps1 [<message>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
42
Docs/build-repo.md
Normal file
42
Docs/build-repo.md
Normal file
@ -0,0 +1,42 @@
|
||||
# PowerShell Script: build-repo.ps1
|
||||
```powershell
|
||||
Builds a Git repository
|
||||
```
|
||||
|
||||
Supports building with cmake, configure, autogen, Imakefile and Makefile.
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/build-repo.ps1 [[-RepoDir] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-RepoDir <String>
|
||||
Specifies the path to the Git repository.
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value "$PWD"
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
```
|
||||
|
||||
```
|
||||
[<CommonParameters>]
|
||||
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS>./build-repo C:\MyRepo
|
||||
```
|
||||
|
||||
|
||||
## Notes
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1*
|
42
Docs/build-repos.md
Normal file
42
Docs/build-repos.md
Normal file
@ -0,0 +1,42 @@
|
||||
# PowerShell Script: build-repos.ps1
|
||||
```powershell
|
||||
Builds all Git repositories in a folder
|
||||
```
|
||||
|
||||
build-repos.ps1 [<ParentDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-ParentDir <String>
|
||||
Specifies the path to the folder containing the Git repositories
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value "$PWD"
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
```
|
||||
|
||||
```
|
||||
[<CommonParameters>]
|
||||
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS>./build-repos C:\MyRepos
|
||||
```
|
||||
|
||||
|
||||
## Notes
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of build-repos.ps1*
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-desktop.ps1
|
||||
```powershell
|
||||
cd-desktop.ps1
|
||||
Change the working directory to the user's desktop folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's desktop folder
|
||||
cd-desktop.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's desktop folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-desktop
|
||||
📂/home/markus/Desktop
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-docs.ps1
|
||||
```powershell
|
||||
cd-docs.ps1
|
||||
Change the working directory to the user's documents folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's documents folder
|
||||
cd-docs.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's documents folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-docs
|
||||
📂/home/markus/Documents
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-downloads.ps1
|
||||
```powershell
|
||||
cd-downloads.ps1
|
||||
Change the working directory to the user's downloads folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's downloads folder
|
||||
cd-downloads.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's downloads folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-downloads
|
||||
📂/home/markus/Downloads
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-dropbox.ps1
|
||||
```powershell
|
||||
cd-dropbox.ps1
|
||||
Change the working directory to the user's Dropbox folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's Dropbox folder
|
||||
cd-dropbox.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's Dropbox folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-dropbox
|
||||
📂/home/markus/Dropbox
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-home.ps1
|
||||
```powershell
|
||||
cd-home.ps1
|
||||
Change the working directory to the user's home directory
|
||||
```
|
||||
|
||||
Change the working directory to the user's home directory
|
||||
cd-home.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's home directory
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-home
|
||||
📂/home/markus
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-music.ps1
|
||||
```powershell
|
||||
cd-music.ps1
|
||||
Change the working directory to the user's music folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's music folder
|
||||
cd-music.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's music folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-music
|
||||
📂/home/markus/Music
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-onedrive.ps1
|
||||
```powershell
|
||||
cd-onedrive.ps1
|
||||
Change the working directory to the user's OneDrive folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's OneDrive folder
|
||||
cd-onedrive.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's OneDrive folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-onedrive
|
||||
📂/home/markus/OneDrive
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-pics.ps1
|
||||
```powershell
|
||||
cd-pics.ps1
|
||||
Change the working directory to the user's pictures folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's pictures folder
|
||||
cd-pics.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's pictures folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-pics
|
||||
📂/home/markus/Pictures
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-repos.ps1
|
||||
```powershell
|
||||
cd-repos.ps1
|
||||
Change the working directory to the user's Git repositories folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's Git repositories folder
|
||||
cd-repos.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's Git repositories folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-repos
|
||||
📂/home/markus/Repos
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-root.ps1
|
||||
```powershell
|
||||
cd-root.ps1
|
||||
Change the working directory to the root directory (C:\ on Windows)
|
||||
```
|
||||
|
||||
Change the working directory to the root directory (C:\ on Windows)
|
||||
cd-root.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the root directory (C:\ on Windows)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-root
|
||||
📂C:\
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-scripts.ps1
|
||||
```powershell
|
||||
cd-scripts.ps1
|
||||
Change the working directory to the PowerShell scripts folder
|
||||
```
|
||||
|
||||
Change the working directory to the PowerShell scripts folder
|
||||
cd-scripts.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the PowerShell scripts folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-scripts
|
||||
📂/home/markus/PowerShell/Scripts
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-ssh.ps1
|
||||
```powershell
|
||||
cd-ssh.ps1
|
||||
Change the working directory to the user's SSH folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's SSH folder
|
||||
cd-ssh.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's SSH folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-ssh
|
||||
📂/home/markus/.ssh
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-up.ps1
|
||||
```powershell
|
||||
cd-up.ps1
|
||||
Change the working directory to one level up
|
||||
```
|
||||
|
||||
Change the working directory to one level up
|
||||
cd-up.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to one level up
|
||||
## Example
|
||||
```powershell
|
||||
PS>.\cd-up
|
||||
(one level up)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-up2.ps1
|
||||
```powershell
|
||||
cd-up2.ps1
|
||||
Change the working directory to two directory levels up
|
||||
```
|
||||
|
||||
Change the working directory to two directory levels up
|
||||
cd-up2.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to two directory levels up
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-up2
|
||||
(two levels up)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-up3.ps1
|
||||
```powershell
|
||||
cd-up3.ps1
|
||||
Change the working directory to three directory levels up
|
||||
```
|
||||
|
||||
Change the working directory to three directory levels up
|
||||
cd-up3.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to three directory levels up
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-up3
|
||||
(three levels up)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-up4.ps1
|
||||
```powershell
|
||||
cd-up4.ps1
|
||||
Change the working directory to four directory levels up
|
||||
```
|
||||
|
||||
Change the working directory to four directory levels up
|
||||
cd-up4.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to four directory levels up
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-up4
|
||||
(four levels up)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: cd-videos.ps1
|
||||
```powershell
|
||||
cd-videos.ps1
|
||||
Change the working directory to the user's videos folder
|
||||
```
|
||||
|
||||
Change the working directory to the user's videos folder
|
||||
cd-videos.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Change the working directory to the user's videos folder
|
||||
## Example
|
||||
```powershell
|
||||
PS>./cd-videos
|
||||
📂/home/markus/Videos
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-cpu-temp.ps1
|
||||
```powershell
|
||||
check-cpu-temp.ps1
|
||||
Checks the CPU temperature
|
||||
```
|
||||
|
||||
Checks the CPU temperature
|
||||
check-cpu-temp.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Checks the CPU temperature
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-cpu-temp
|
||||
✔️ 30.3 °C CPU temperature - good
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-dns-resolution.ps1
|
||||
```powershell
|
||||
check-dns-resolution.ps1
|
||||
Checks the DNS resolution with frequently used domain names
|
||||
```
|
||||
|
||||
Checks the DNS resolution with frequently used domain names
|
||||
check-dns-resolution.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Checks the DNS resolution with frequently used domain names
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-dns-resolution
|
||||
✔️ 11.8 domains/sec (177 domains resolved in 15 sec)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-drive-space.ps1
|
||||
```powershell
|
||||
check-drive-space.ps1 [<drive>] [<min-level>]
|
||||
Checks a drive for free space left (20 GB by default)
|
||||
```
|
||||
|
||||
Checks a drive for free space left (20 GB by default)
|
||||
check-drive-space.ps1 [<drive>] [<min-level>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -39,6 +39,7 @@ Checks a drive for free space left (20 GB by default)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-drive-space C
|
||||
✔️ 172 GB left on drive C (61 of 233 GB used)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-file-system.ps1
|
||||
```powershell
|
||||
check-file-system.ps1 [<drive>]
|
||||
Checks the file system of a drive (needs admin rights)
|
||||
```
|
||||
|
||||
Checks the file system of a drive (needs admin rights)
|
||||
check-file-system.ps1 [<drive>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the file system of a drive (needs admin rights)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-file-system C
|
||||
✔️ file system on drive C is clean
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-health.ps1
|
||||
```powershell
|
||||
check-health.ps1
|
||||
Checks the health of the local computer
|
||||
```
|
||||
|
||||
Checks the health of the local computer
|
||||
check-health.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,12 @@ Checks the health of the local computer
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-health
|
||||
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
||||
✔️ 172 GB left on drive C (61 of 233 GB used)
|
||||
✔️ 30.3 °C CPU temperature - good
|
||||
✔️ 19.7 domains/s (177 domains resolved in 9 sec)
|
||||
✔️ 29 ms ping average (13 ms min, 110 ms max, 10 hosts)
|
||||
✔️ Windmill is healthy
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-ipv4-address.ps1
|
||||
```powershell
|
||||
check-ipv4-address.ps1 [<address>]
|
||||
Checks the given IPv4 address for validity
|
||||
```
|
||||
|
||||
Checks the given IPv4 address for validity
|
||||
check-ipv4-address.ps1 [<Address>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the given IPv4 address for validity
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-ipv6-address.ps1
|
||||
```powershell
|
||||
check-ipv6-address.ps1 [<address>]
|
||||
Checks the given IPv6 address for validity
|
||||
```
|
||||
|
||||
Checks the given IPv6 address for validity
|
||||
check-ipv6-address.ps1 [<Address>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the given IPv6 address for validity
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-ipv6-address fe80::200:5aee:feaa:20a2
|
||||
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: check-mac-address.ps1
|
||||
```powershell
|
||||
check-mac-address.ps1 [<MAC>]
|
||||
Checks the given MAC address for validity
|
||||
```
|
||||
|
||||
Checks the given MAC address for validity (MAC address like 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000).
|
||||
Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000.
|
||||
check-mac-address.ps1 [<MAC>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +30,7 @@ Checks the given MAC address for validity (MAC address like 00:00:00:00:00:00 or
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-mac-address 11:22:33:44:55:66
|
||||
✔️ MAC address 11:22:33:44:55:66 is valid
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
# PowerShell Script: check-ping.ps1
|
||||
```powershell
|
||||
check-ping.ps1 [<hosts>]
|
||||
Checks the ping latency from the local computer to selected Internet hosts
|
||||
```
|
||||
|
||||
Checks the ping latency from the local computer to selected Internet hosts
|
||||
(default is: 'amazon.com,apple.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com)
|
||||
Hosts by default are: amazon.com,apple.com,bing.com,cnn.com,dropbox.com,facebook.com,google.com,live.com,twitter.com,youtube.com
|
||||
check-ping.ps1 [<hosts>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -30,6 +30,7 @@ Checks the ping latency from the local computer to selected Internet hosts
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-ping
|
||||
✔️ 36 ms ping average (13 ms min, 109 ms max, 10 hosts)
|
||||
```
|
||||
|
||||
|
||||
|
44
Docs/check-smart-devices.md
Normal file
44
Docs/check-smart-devices.md
Normal file
@ -0,0 +1,44 @@
|
||||
# PowerShell Script: check-smart-devices.ps1
|
||||
```powershell
|
||||
Performs a selftest on your S.M.A.R.T. HDD/SSD devices.
|
||||
```
|
||||
|
||||
check-smart-devices.ps1 [<type>]
|
||||
Type is either short(default) or long.
|
||||
Requires smartctl (smartmontools package) and admin rights.
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/check-smart-devices.ps1 [[-type] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-type <String>
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value short
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
```
|
||||
|
||||
```
|
||||
[<CommonParameters>]
|
||||
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-smart-devices
|
||||
✔️ short selftest started on S.M.A.R.T. device /dev/sda
|
||||
```
|
||||
|
||||
|
||||
## Notes
|
||||
Author: Markus Fleschutz · License: CC0
|
||||
|
||||
## Related Links
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
*Generated by convert-ps2md.ps1 using the comment-based help of check-smart-devices.ps1*
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-subnet-mask.ps1
|
||||
```powershell
|
||||
check-subnet-mask.ps1 [<address>]
|
||||
Checks the given subnet mask for validity
|
||||
```
|
||||
|
||||
Checks the given subnet mask for validity
|
||||
check-subnet-mask.ps1 [<address>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the given subnet mask for validity
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-subnet-mask 255.255.255.0
|
||||
✔️ subnet mask 255.255.255.0 is valid
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-swap-space.ps1
|
||||
```powershell
|
||||
check-swap-space.ps1 [<min-level>]
|
||||
Checks the free swap space
|
||||
```
|
||||
|
||||
Checks the free swap space
|
||||
check-swap-space.ps1 [<min-level>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the free swap space
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-swap-space
|
||||
✔️ 1213 GB left for swap space (67 of 1280 GB used)
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,17 +1,18 @@
|
||||
# PowerShell Script: check-symlinks.ps1
|
||||
```powershell
|
||||
check-symlinks.ps1 [<DirTree>]
|
||||
Checks every symlink in a folder (including subfolders)
|
||||
```
|
||||
|
||||
Checks every symlink in a directory tree
|
||||
check-symlinks.ps1 [<folder>]
|
||||
Returns the number of broken symlinks as exit value.
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/check-symlinks.ps1 [[-DirTree] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/Scripts/check-symlinks.ps1 [[-folder] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-DirTree <String>
|
||||
-folder <String>
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -28,7 +29,8 @@ Checks every symlink in a directory tree
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-symlinks C:\MyApp
|
||||
PS>./check-symlinks .
|
||||
✔️ 0 out of 10 symlinks are broken in 📂/home/markus
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-weather.ps1
|
||||
```powershell
|
||||
check-weather.ps1 [<location>]
|
||||
Checks the weather for critical values
|
||||
```
|
||||
|
||||
Checks the weather for critical values
|
||||
check-weather.ps1 [<location>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-windows-system-files.ps1
|
||||
```powershell
|
||||
check-windows-system-files.ps1
|
||||
Checks the validity of the Windows system files (requires admin rights)
|
||||
```
|
||||
|
||||
Checks the validity of the Windows system files (requires admin rights)
|
||||
check-windows-system-files.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,7 @@ Checks the validity of the Windows system files (requires admin rights)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-windows-system-files
|
||||
✔️ checked Windows system files
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: check-xml-file.ps1
|
||||
```powershell
|
||||
check-xml-file [<file>]
|
||||
Checks the given XML file for validity
|
||||
```
|
||||
|
||||
Checks the given XML file for validity
|
||||
check-xml-file [<file>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,7 @@ Checks the given XML file for validity
|
||||
## Example
|
||||
```powershell
|
||||
PS>./check-xml-file myfile.xml
|
||||
✔️ XML file is valid
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: clean-repo.ps1
|
||||
```powershell
|
||||
clean-repo.ps1 [<RepoDir>]
|
||||
Cleans a Git repository from untracked files (including submodules)
|
||||
```
|
||||
|
||||
Cleans a Git repository from untracked files (including submodules, e.g. for a fresh build)
|
||||
clean-repo.ps1 [<RepoDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -29,6 +29,8 @@ Cleans a Git repository from untracked files (including submodules, e.g. for a f
|
||||
## Example
|
||||
```powershell
|
||||
PS>./clean-repo C:\MyRepo
|
||||
🧹 Cleaning Git repository 📂C:\MyRepo from untracked files...
|
||||
✔️ cleaned Git repository 📂C:\MyRepo in 0 sec
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: clean-repos.ps1
|
||||
```powershell
|
||||
clean-repos.ps1 [<ParentDir>]
|
||||
Cleans all Git repositories in a folder from untracked files (including submodules)
|
||||
```
|
||||
|
||||
Cleans all Git repositories under the current/given directory from untracked files (including submodules)
|
||||
clean-repos.ps1 [<ParentDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: clear-recycle-bin.ps1
|
||||
```powershell
|
||||
clear-recycle-bin.ps1
|
||||
Removes the content of the recycle bin folder permanently
|
||||
```
|
||||
|
||||
Removes the content of the recycle bin folder
|
||||
clear-recycle-bin.ps1
|
||||
NOTE: can not be undo!
|
||||
|
||||
## Syntax & Parameters
|
||||
@ -20,6 +20,7 @@ NOTE: can not be undo!
|
||||
## Example
|
||||
```powershell
|
||||
PS>./clear-recycle-bin
|
||||
✔️ cleared recycle bin
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,17 +1,17 @@
|
||||
# PowerShell Script: clone-repos.ps1
|
||||
```powershell
|
||||
clone-repos.ps1 [<ParentDir>]
|
||||
Clones well-known Git repositories into a folder
|
||||
```
|
||||
|
||||
Clones well-known Git repositories under the current/given directory
|
||||
clone-repos.ps1 [<folder>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/clone-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/Scripts/clone-repos.ps1 [[-folder] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-ParentDir <String>
|
||||
-folder <String>
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -28,7 +28,7 @@ Clones well-known Git repositories under the current/given directory
|
||||
|
||||
## Example
|
||||
```powershell
|
||||
PS>./clone-repos C:\MyRepos
|
||||
PS>./clone-repos C:\Users\Markus\Repos
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-calculator.ps1
|
||||
```powershell
|
||||
close-calculator.ps1
|
||||
Closes the calculator program gracefully
|
||||
```
|
||||
|
||||
Closes the calculator program gracefully
|
||||
close-calculator.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-chrome.ps1
|
||||
```powershell
|
||||
close-chrome.ps1
|
||||
Closes the Google Chrome Web browser
|
||||
```
|
||||
|
||||
Closes the Web browser Google Chrome gracefully
|
||||
close-chrome.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-cortana.ps1
|
||||
```powershell
|
||||
close-cortana.ps1
|
||||
Closes Microsoft's Cortana application
|
||||
```
|
||||
|
||||
Closes Cortana gracefully
|
||||
close-cortana.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-edge.ps1
|
||||
```powershell
|
||||
close-edge.ps1
|
||||
Closes Microsoft's Edge Web browser
|
||||
```
|
||||
|
||||
Closes the Web browser Microsoft Edge gracefully
|
||||
close-edge.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-file-explorer.ps1
|
||||
```powershell
|
||||
close-file-explorer.ps1
|
||||
Closes Microsoft's File Explorer
|
||||
```
|
||||
|
||||
Closes Microsoft File Explorer gracefully
|
||||
close-file-explorer.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-firefox.ps1
|
||||
```powershell
|
||||
close-firefox.ps1
|
||||
Closes Mozilla's Firefox Web browser
|
||||
```
|
||||
|
||||
Closes the Firefox Web browser gracefully
|
||||
close-firefox.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-netflix.ps1
|
||||
```powershell
|
||||
close-netflix.ps1
|
||||
Closes the Netflix application
|
||||
```
|
||||
|
||||
Closes the Netflix program gracefully
|
||||
close-netflix.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-onedrive.ps1
|
||||
```powershell
|
||||
close-onedrive.ps1
|
||||
Closes Microsoft's OneDrive folder
|
||||
```
|
||||
|
||||
Closes Microsoft OneDrive gracefully
|
||||
close-onedrive.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-program.ps1
|
||||
```powershell
|
||||
close-program.ps1 [<FullProgramName>] [<ProgramName>] [<ProgramAliasName>]
|
||||
Closes the processes of the given program gracefully
|
||||
```
|
||||
|
||||
Closes the processes of the given program gracefully
|
||||
close-program.ps1 [<FullProgramName>] [<ProgramName>] [<ProgramAliasName>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-system-settings.ps1
|
||||
```powershell
|
||||
close-system-settings.ps1
|
||||
Closes the System Settings window
|
||||
```
|
||||
|
||||
Closes the System Settings gracefully
|
||||
close-system-settings.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-thunderbird.ps1
|
||||
```powershell
|
||||
close-thunderbird.ps1
|
||||
Closes Mozilla's Thunderbird email client
|
||||
```
|
||||
|
||||
Closes the mail client Mozilla Thunderbird gracefully
|
||||
close-thunderbird.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-vlc.ps1
|
||||
```powershell
|
||||
close-vlc.ps1
|
||||
Closes the VLC media player application
|
||||
```
|
||||
|
||||
Closes the VLC media player gracefully
|
||||
close-vlc.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: close-windows-terminal.ps1
|
||||
```powershell
|
||||
close-windows-terminal.ps1
|
||||
Closes the Windows Terminal application
|
||||
```
|
||||
|
||||
Closes Windows Terminal gracefully
|
||||
close-windows-terminal.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: configure-git.ps1
|
||||
```powershell
|
||||
configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
||||
Configures the user settings for Git
|
||||
```
|
||||
|
||||
Sets up the Git user configuration
|
||||
configure-git.ps1 [<full-name>] [<email-address>] [<favorite-editor>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-csv2txt.ps1
|
||||
```powershell
|
||||
convert-csv2txt.ps1 [<csv-file>]
|
||||
Converts a .CSV file into a text file
|
||||
```
|
||||
|
||||
Converts a .CSV file into a text file
|
||||
convert-csv2txt.ps1 [<csv-file>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-mysql2csv.ps1
|
||||
```powershell
|
||||
convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||
Convert a MySQL database table to a .CSV file
|
||||
```
|
||||
|
||||
Convert a MySQL database table to a .CSV file
|
||||
convert-mysql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-ps2bat.ps1
|
||||
```powershell
|
||||
convert-ps2bat.ps1 [<pattern>]
|
||||
Converts a PowerShell script to .bat files
|
||||
```
|
||||
|
||||
Converts a PowerShell script to .bat files
|
||||
convert-ps2bat.ps1 [<pattern>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-ps2md.ps1
|
||||
```powershell
|
||||
convert-ps2md.ps1 [<filename>]
|
||||
Converts the comment-based help of a PowerShell script to Markdown
|
||||
```
|
||||
|
||||
Converts the comment-based help of a PowerShell script to Markdown
|
||||
convert-ps2md.ps1 [<filename>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-sql2csv.ps1
|
||||
```powershell
|
||||
convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||
Converts a SQL database table to a .CSV file
|
||||
```
|
||||
|
||||
Converts a SQL database table to a .CSV file
|
||||
convert-sql2csv.ps1 [<server>] [<database>] [<username>] [<password>] [<query>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: convert-txt2wav.ps1
|
||||
```powershell
|
||||
convert-txt2wav.ps1 [<text>] [<wav-file>]
|
||||
Converts text to a .WAV audio file
|
||||
```
|
||||
|
||||
Converts text to a .WAV audio file
|
||||
convert-txt2wav.ps1 [<text>] [<wav-file>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: copy-photos-sorted.ps1
|
||||
```powershell
|
||||
copy-photos-sorted.ps1 [<SourceDir>] [<TargetDir>]
|
||||
Copy image files sorted by year and month
|
||||
```
|
||||
|
||||
Copy image files from SourceDir to TargetDir sorted by year and month
|
||||
copy-photos-sorted.ps1 [<SourceDir>] [<TargetDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: decrypt-file.ps1
|
||||
```powershell
|
||||
decrypt-file.ps1 [<path>] [<password>]
|
||||
Decrypts the given file
|
||||
```
|
||||
|
||||
Decrypts the given file
|
||||
decrypt-file.ps1 [<path>] [<password>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: display-time.ps1
|
||||
```powershell
|
||||
display-time.ps1 [<seconds>]
|
||||
Displays the current time
|
||||
```
|
||||
|
||||
Displays the current time (for 10 seconds by default)
|
||||
display-time.ps1 [<seconds>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: download-dir.ps1
|
||||
```powershell
|
||||
download-dir.ps1 [<URL>]
|
||||
Downloads a folder (including subfolders) from the given URL
|
||||
```
|
||||
|
||||
Downloads a directory tree from the given URL
|
||||
download-dir.ps1 [<URL>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: download-file.ps1
|
||||
```powershell
|
||||
download-file.ps1 [<URL>]
|
||||
Downloads a file from the given URL
|
||||
```
|
||||
|
||||
Downloads a file from the given URL
|
||||
download-file.ps1 [<URL>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: edit.ps1
|
||||
```powershell
|
||||
edit.ps1 <filename>
|
||||
Opens the built-in text editor to edit the given file
|
||||
```
|
||||
|
||||
Opens the built-in text editor to edit the given file
|
||||
edit.ps1 <filename>
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: enable-crash-dumps.ps1
|
||||
```powershell
|
||||
enable-crash-dumps.ps1
|
||||
Enables the writing of crash dumps
|
||||
```
|
||||
|
||||
Enables the writing of crash dumps
|
||||
enable-crash-dumps.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: enable-god-mode.ps1
|
||||
```powershell
|
||||
enable-god-mode.ps1
|
||||
Enables the god mode
|
||||
```
|
||||
|
||||
Enables the god mode (adds a new icon to the desktop)
|
||||
enable-god-mode.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: encrypt-file.ps1
|
||||
```powershell
|
||||
encrypt-file.ps1 [<path>] [<password>]
|
||||
Encrypts a file
|
||||
```
|
||||
|
||||
Encrypts the given file
|
||||
encrypt-file.ps1 [<Path>] [<Password>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: enter-chat.ps1
|
||||
```powershell
|
||||
enter-chat.ps1
|
||||
Enters a chat using a common network shared file
|
||||
```
|
||||
|
||||
Enters a chat using a common network shared file
|
||||
enter-chat.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: fetch-repo.ps1
|
||||
```powershell
|
||||
fetch-repo.ps1 [<repo-dir>]
|
||||
Fetches updates for a local Git repository (including submodules)
|
||||
```
|
||||
|
||||
Fetches updates for a local Git repository (including submodules)
|
||||
fetch-repo.ps1 [<RepoDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -12,6 +12,7 @@ Fetches updates for a local Git repository (including submodules)
|
||||
|
||||
```
|
||||
-RepoDir <String>
|
||||
Specifies the path to the Git repository.
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -29,6 +30,8 @@ Fetches updates for a local Git repository (including submodules)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./fetch-repo
|
||||
🢃 Fetching updates for Git repository 📂PowerShell ...
|
||||
✔️ fetched updates for 📂PowerShell"
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: fetch-repos.ps1
|
||||
```powershell
|
||||
fetch-repos.ps1 [<ParentDir>]
|
||||
Fetches updates for all Git repositories in a folder (including submodules)
|
||||
```
|
||||
|
||||
Fetches updates for all Git repositories under the current/given directory (including submodules)
|
||||
fetch-repos.ps1 [<ParentDir>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: hibernate.ps1
|
||||
```powershell
|
||||
hibernate.ps1
|
||||
Enables hibernate mode for the local computer (needs admin rights)
|
||||
```
|
||||
|
||||
Enables hibernate mode for the local computer (needs admin rights)
|
||||
hibernate.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: inspect-exe.ps1
|
||||
```powershell
|
||||
inspect-exe.ps1 [<path-to-exe-file>]
|
||||
Prints basic information of an executable file
|
||||
```
|
||||
|
||||
Prints basic information of the given executable file
|
||||
inspect-exe.ps1 [<path-to-exe-file>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-github-cli.ps1
|
||||
```powershell
|
||||
install-github-cli.ps1
|
||||
Installs GitHub CLI
|
||||
```
|
||||
|
||||
Installs GitHub CLI
|
||||
install-github-cli.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-google-chrome.ps1
|
||||
```powershell
|
||||
install-google-chrome.ps1
|
||||
Installs the latest Google Chrome browser
|
||||
```
|
||||
|
||||
Installs the latest Google Chrome browser
|
||||
install-google-chrome.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: install-knot-resolver.ps1
|
||||
```powershell
|
||||
install-knot-resolver.ps1
|
||||
Installs Knot Resolver (needs admin rights)
|
||||
```
|
||||
|
||||
Installs the Knot Resolver (a DNS resolver daemon, needs admin rights)
|
||||
Knot Resolver is a DNS resolver daemon.
|
||||
install-knot-resolver.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: install-signal-cli.ps1
|
||||
```powershell
|
||||
install-signal-cli.ps1 [<version>]
|
||||
Installs signal-cli
|
||||
```
|
||||
|
||||
Installs signal-cli from github.com/AsamK/signal-cli. See the Web page for the correct version number
|
||||
install-signal-cli.ps1 [<version>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-ssh-client.ps1
|
||||
```powershell
|
||||
install-ssh-client.ps1
|
||||
Installs the SSH client (needs admin rights)
|
||||
```
|
||||
|
||||
Installs the SSH client (needs admin rights)
|
||||
install-ssh-client.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-ssh-server.ps1
|
||||
```powershell
|
||||
install-ssh-server.ps1
|
||||
Installs the SSH server (needs admin rights)
|
||||
```
|
||||
|
||||
Installs the SSH server (needs admin rights)
|
||||
install-ssh-server.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-updates.ps1
|
||||
```powershell
|
||||
install-updates.ps1
|
||||
Installs updates for the local machine (needs admin rights)
|
||||
```
|
||||
|
||||
Installs updates (needs admin rights)
|
||||
install-updates.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: install-wsl.ps1
|
||||
```powershell
|
||||
install-wsl.ps1
|
||||
Installs Windows Subsystem for Linux (needs admin rights)
|
||||
```
|
||||
|
||||
Installs Windows Subsystem for Linux (WSL) - needs admin rights
|
||||
install-wsl.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: introduce-powershell.ps1
|
||||
```powershell
|
||||
introduce-powershell.ps1
|
||||
Introduces PowerShell to new users
|
||||
```
|
||||
|
||||
Introduces PowerShell to new users
|
||||
introduce-powershell.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-aliases.ps1
|
||||
```powershell
|
||||
list-aliases.ps1
|
||||
Lists all PowerShell aliases
|
||||
```
|
||||
|
||||
Lists all PowerShell aliases
|
||||
list-aliases.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,14 @@ Lists all PowerShell aliases
|
||||
## Example
|
||||
```powershell
|
||||
PS>./list-aliases
|
||||
|
||||
|
||||
|
||||
CommandType Name Version Source
|
||||
----------- ---- ------- ------
|
||||
Alias CFS -> ConvertFrom-String 3.1.0.0 Microsoft.PowerShell.Utility
|
||||
Alias fhx -> Format-Hex 3.1.0.0 Microsoft.PowerShell.Utility
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-anagrams.ps1
|
||||
```powershell
|
||||
list-anagrams.ps1 [<word>] [<columns>]
|
||||
Lists all anagrams of the given word
|
||||
```
|
||||
|
||||
Lists all anagrams of the given word
|
||||
list-anagrams.ps1 [<word>] [<columns>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,13 +1,15 @@
|
||||
# PowerShell Script: list-branches.ps1
|
||||
```powershell
|
||||
list-branches.ps1 [<repo-dir>] [<pattern>]
|
||||
Lists all branches in a Git repository
|
||||
```
|
||||
|
||||
Lists all branches in the current/given Git repository
|
||||
list-branches.ps1 [<RepoDir>] [<SearchPattern>]
|
||||
<RepoDir> is the current working directory by default
|
||||
<SearchPattern> is "*" (anything) by default
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/list-branches.ps1 [[-RepoDir] <String>] [[-Pattern] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/Scripts/list-branches.ps1 [[-RepoDir] <String>] [[-SearchPattern] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
@ -21,7 +23,7 @@ Lists all branches in the current/given Git repository
|
||||
```
|
||||
|
||||
```
|
||||
-Pattern <String>
|
||||
-SearchPattern <String>
|
||||
|
||||
Required? false
|
||||
Position? 2
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-cheat-sheet.ps1
|
||||
```powershell
|
||||
list-cheat-sheet.ps1
|
||||
Lists the PowerShell cheat sheet
|
||||
```
|
||||
|
||||
Lists the PowerShell cheat sheet
|
||||
list-cheat-sheet.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: list-city-weather.ps1
|
||||
```powershell
|
||||
list-city-weather.ps1
|
||||
List the current weather of cities world-wide
|
||||
```
|
||||
|
||||
List the current weather of cities world-wide (west to east)
|
||||
list-city-weather.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-clipboard.ps1
|
||||
```powershell
|
||||
list-clipboard.ps1
|
||||
Lists the contents of the clipboard
|
||||
```
|
||||
|
||||
Lists the contents of the clipboard
|
||||
list-clipboard.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-cmdlets.ps1
|
||||
```powershell
|
||||
list-cmdlets.ps1
|
||||
Lists all PowerShell cmdlets
|
||||
```
|
||||
|
||||
Lists all PowerShell cmdlets
|
||||
list-cmdlets.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,14 @@ Lists all PowerShell cmdlets
|
||||
## Example
|
||||
```powershell
|
||||
PS>./list-cmdlets
|
||||
|
||||
|
||||
|
||||
CommandType Name Version Source
|
||||
----------- ---- ------- ------
|
||||
Function Add-BCDataCacheExtension 1.0.0.0 BranchCache
|
||||
Function Add-BitLockerKeyProtector 1.0.0.0 BitLocker
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-commits.ps1
|
||||
```powershell
|
||||
list-commits.ps1 [<RepoDir>] [<Format>]
|
||||
Lists all commits in a Git repository
|
||||
```
|
||||
|
||||
Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
||||
list-commits.ps1 [<RepoDir>] [<Format>]
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -12,6 +12,7 @@ Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
||||
|
||||
```
|
||||
-RepoDir <String>
|
||||
Specifies the path to the Git repository.
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -22,6 +23,7 @@ Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
||||
|
||||
```
|
||||
-Format <String>
|
||||
Specifies the output format: list|compact|normal|JSON
|
||||
|
||||
Required? false
|
||||
Position? 2
|
||||
@ -39,6 +41,14 @@ Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
||||
## Example
|
||||
```powershell
|
||||
PS>./list-commits
|
||||
|
||||
|
||||
|
||||
ID Date Committer Description
|
||||
-- ---- --------- -----------
|
||||
ccd0d3e Wed Sep 29 08:28:20 2021 +0200 Markus Fleschutz Fix typo
|
||||
291d785 Wed Sep 29 08:18:28 2021 +0200 Markus Fleschutz Update README.md
|
||||
...
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-console-colors.ps1
|
||||
```powershell
|
||||
list-console-colors.ps1
|
||||
Lists all console colors
|
||||
```
|
||||
|
||||
Lists all console colors
|
||||
list-console-colors.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-credits.ps1
|
||||
```powershell
|
||||
list-credits.ps1
|
||||
Shows the credits for the PowerShell Scripts
|
||||
```
|
||||
|
||||
Shows the credits for the PowerShell Scripts
|
||||
list-credits.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: list-dir-tree.ps1
|
||||
```powershell
|
||||
list-dir-tree.ps1 [<dir-tree>]
|
||||
Lists the full directory tree
|
||||
```
|
||||
|
||||
Lists the full directory tree
|
||||
list-dir-tree.ps1 [<DirTree>]
|
||||
<DirTree> is the path to the directory tree
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,17 +1,18 @@
|
||||
# PowerShell Script: list-dir.ps1
|
||||
```powershell
|
||||
list-dir.ps1 [<pattern>]
|
||||
Lists the directory content formatted in columns
|
||||
```
|
||||
|
||||
Lists the directory content formatted in columns
|
||||
list-dir.ps1 [<SearchPattern>]
|
||||
<SearchPattern> is "*" (anything) by default
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
/home/markus/Repos/PowerShell/Scripts/list-dir.ps1 [[-Pattern] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/Scripts/list-dir.ps1 [[-SearchPattern] <String>] [<CommonParameters>]
|
||||
```
|
||||
|
||||
```
|
||||
-Pattern <String>
|
||||
-SearchPattern <String>
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-drives.ps1
|
||||
```powershell
|
||||
list-drives.ps1
|
||||
Lists all local drives.
|
||||
```
|
||||
|
||||
Lists all drives connected to the computer
|
||||
list-drives.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
@ -19,6 +19,13 @@ Lists all drives connected to the computer
|
||||
## Example
|
||||
```powershell
|
||||
PS>./list-drives
|
||||
|
||||
|
||||
|
||||
Name Root Used (GB) Free (GB)
|
||||
---- ---- --------- ---------
|
||||
C C:\ 76,1 35,0
|
||||
D D:\ 6648,1 744,2
|
||||
```
|
||||
|
||||
|
||||
|
@ -1,9 +1,10 @@
|
||||
# PowerShell Script: list-earthquakes.ps1
|
||||
```powershell
|
||||
list-earthquakes.ps1
|
||||
Lists major earthquakes for the last 30 days
|
||||
```
|
||||
|
||||
Lists earthquakes with magnitude >= 6.0 for the last 30 days
|
||||
list-earthquakes.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
@ -1,9 +1,9 @@
|
||||
# PowerShell Script: list-emojis.ps1
|
||||
```powershell
|
||||
list-emojis.ps1
|
||||
Lists the Emojis of Unicode 13.0
|
||||
```
|
||||
|
||||
Lists the Emojis of Unicode 13.0
|
||||
list-emojis.ps1
|
||||
|
||||
## Syntax & Parameters
|
||||
```powershell
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user