mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-04 14:40:05 +02:00
Compare commits
433 Commits
Author | SHA1 | Date | |
---|---|---|---|
87c5d59442 | |||
da0f05e82d | |||
712dca92db | |||
2c4400f327 | |||
6fda26dc5d | |||
46235b0aa0 | |||
ac144d3f3d | |||
1238ebf8c6 | |||
c023128895 | |||
42fe21f747 | |||
9e1156e90e | |||
32927260bd | |||
a3331f5172 | |||
ba6f1594c8 | |||
33ef92d879 | |||
efe4a2c6b4 | |||
6d9350cb23 | |||
5b23315a12 | |||
af9230f474 | |||
cfb2ea1fa9 | |||
3186552960 | |||
1409e438c6 | |||
58d351c539 | |||
962d7d00b6 | |||
be9a93de82 | |||
8b2de68df7 | |||
5ce045ca3d | |||
3e948575ba | |||
3edd43899a | |||
82140ddc32 | |||
73a3b6b65c | |||
82156d8fe6 | |||
cb845c54d3 | |||
9cf0ecacb3 | |||
f1a20bc962 | |||
4c19a92220 | |||
c5432f1708 | |||
76ae519408 | |||
0cae40f435 | |||
1d560f756c | |||
78ceb4bd18 | |||
982debb892 | |||
86c15a6982 | |||
a5aa63615d | |||
e796bae7cb | |||
1a0daf2109 | |||
7841c95ad7 | |||
ece41fa2e9 | |||
64bcdee5e8 | |||
587732eb3f | |||
9d13880be5 | |||
88e0868a4c | |||
4298dd8d73 | |||
f9540908c2 | |||
067052251a | |||
e481bfbed4 | |||
8e7948cabe | |||
263a9017cd | |||
25b005741b | |||
500cc561d9 | |||
ced658f427 | |||
b4e09055d9 | |||
94fba89c8f | |||
dca5793418 | |||
2e941ce36e | |||
1081db300f | |||
7069c2c31b | |||
36f9723a1d | |||
754856e667 | |||
1aca3e811a | |||
9063f34652 | |||
98446c5cad | |||
28c533d906 | |||
9975e36aba | |||
15a764c5a5 | |||
8b3715935d | |||
36083d8eb3 | |||
7e774853fc | |||
0e47423514 | |||
58ad940288 | |||
6216c17011 | |||
2b6b3dc32e | |||
724da873d2 | |||
647206ee13 | |||
1ed0d1c6a0 | |||
94ae6256ea | |||
98e8d758a1 | |||
4af826c741 | |||
cf88f21ebc | |||
829c22d3fb | |||
de90e60b2e | |||
c70b993747 | |||
395dac8b8c | |||
6e6974ec08 | |||
63ffa48dc4 | |||
54844ed993 | |||
c1a010f016 | |||
ca3a9dd069 | |||
06bf9e3d8e | |||
e74c9f1010 | |||
db0169521b | |||
ebc5a65388 | |||
e811bcb410 | |||
d169de2298 | |||
fcbbf0fd23 | |||
9fd63dbb30 | |||
6b2abf3103 | |||
bdc4cb1002 | |||
390b5ffe71 | |||
3c530df89f | |||
2917a123ac | |||
8aeeb8b811 | |||
4f57fbe3b2 | |||
de784e4cdc | |||
c54e4b0184 | |||
89c7bd290a | |||
17f1c85af2 | |||
8136a01507 | |||
0ca0bcf2d7 | |||
30ebcd6d87 | |||
5970d07a8d | |||
f93ff94b3b | |||
2301e9a226 | |||
5fb74da197 | |||
a32ea8de6b | |||
e35144cc6b | |||
b59180604f | |||
1773df817c | |||
d29e7e566d | |||
9682acba86 | |||
e6e15387aa | |||
f957853a67 | |||
703dc74368 | |||
df28fd7105 | |||
2a0e6abb6f | |||
330acc8257 | |||
5d625316a5 | |||
7252e2a4c5 | |||
fab7a776fe | |||
62eef6a209 | |||
7c5a3c7353 | |||
fd1cf4ea6c | |||
28ee2a5a44 | |||
d47027e561 | |||
cc0fb6207b | |||
f316655358 | |||
e52d80980c | |||
e9f0f17180 | |||
6e27c12b46 | |||
186e209d09 | |||
430074a982 | |||
25ff52876c | |||
73d250a182 | |||
54635c32da | |||
53eb60baa3 | |||
6b9e8582a4 | |||
467332f0fe | |||
7a175c2a2e | |||
cd3ad88b65 | |||
cf34f7dae2 | |||
70ebba06ff | |||
e09c53bcc5 | |||
d72ffb9490 | |||
aff1f7acab | |||
c7d2f403a0 | |||
0ad1759cd5 | |||
1238f58800 | |||
a786175c4f | |||
1a7ef52e65 | |||
14d9e2de91 | |||
e16e7baac6 | |||
f0165acd8d | |||
312686d50f | |||
bb01ef8cf5 | |||
6419712ff2 | |||
b6e703d96e | |||
8a33a05610 | |||
73a3646ab7 | |||
c7cf0d2c44 | |||
0f4ff81b09 | |||
13695d0061 | |||
d3afc0335f | |||
07bd46d6d6 | |||
ce36877c69 | |||
7bc7da1b3b | |||
0cb4a67fd0 | |||
c53f608eba | |||
1bb6efbc76 | |||
e13ac69220 | |||
8deb881f99 | |||
01a00dd30f | |||
13dd90ec4b | |||
7eb4972f99 | |||
3ae015a752 | |||
5214a504db | |||
2666f952af | |||
dd7054cf48 | |||
2396704564 | |||
aa7edea695 | |||
7a2dfa72ec | |||
01af86446e | |||
3d30f79176 | |||
49b8331361 | |||
435837b1cd | |||
b777d25888 | |||
1186432bb0 | |||
e2c03310dd | |||
04b04602ca | |||
70b216df8d | |||
2e67161917 | |||
e307b5c887 | |||
68680bb618 | |||
14d18e5890 | |||
34b569cbc7 | |||
7a056d76e3 | |||
53381691df | |||
6659468d18 | |||
fc66df1797 | |||
6085205764 | |||
8b019cb80e | |||
e5513eea5c | |||
4c394592aa | |||
3a59acc2b5 | |||
8d659757cb | |||
8186d08928 | |||
01d9659976 | |||
83d8d645ee | |||
3429ed7d90 | |||
59569a41c1 | |||
2a009f311f | |||
bd3b301072 | |||
c8a11f61bc | |||
9255f28823 | |||
464e17c449 | |||
c13e3c3dbd | |||
21e8911239 | |||
37177e83a6 | |||
ace08b19c6 | |||
305077d5cd | |||
702506f9a1 | |||
43b15cd1ef | |||
0d06931b74 | |||
b64d32990e | |||
a66aa8a009 | |||
dc4ee3c83e | |||
fa086893aa | |||
d957e3aba2 | |||
49072fdbaa | |||
b2413adad6 | |||
d01b5969eb | |||
fd963889d2 | |||
c43e787025 | |||
ea0e38f364 | |||
92c550e17d | |||
7618c3548c | |||
7229b3d980 | |||
a8bafada38 | |||
7e6b42352e | |||
db8e7e1766 | |||
fdeead2b52 | |||
c54f644f26 | |||
fb7ff43546 | |||
cfa917eb78 | |||
33e419ff5b | |||
cee7a19571 | |||
d1a6b3ff87 | |||
2526be0ded | |||
8aa468feb7 | |||
f0272d1d37 | |||
2a1123485f | |||
dc7abd6506 | |||
c534dc15e2 | |||
4185bb8f50 | |||
fb0c4e8783 | |||
69bb7d8a3d | |||
87a63a0e29 | |||
3fcbbeb8b0 | |||
5c34a983fe | |||
ff9546b323 | |||
4f247ce328 | |||
f802f9ed9b | |||
36da57b4c5 | |||
1243fced11 | |||
b8d9a4dc19 | |||
ad73e693cb | |||
0d3c0ce08c | |||
4d3369babf | |||
8f7237196c | |||
b0148fcc53 | |||
bae442ee81 | |||
9a8ae08b77 | |||
ffccb6175a | |||
8abd390290 | |||
14bb69aef0 | |||
57bc358ec1 | |||
a41d122e28 | |||
48ef4c3fa1 | |||
4432c09a61 | |||
45bd64688e | |||
dc2f4fdfd1 | |||
47ec40d737 | |||
f9821a542b | |||
210b878771 | |||
bfc726a34a | |||
fcdbe96335 | |||
84b93ca085 | |||
fc3df9c907 | |||
423b7fe2ba | |||
ed34d94da4 | |||
0024a140bd | |||
ce6a5ca76f | |||
6a02ebf821 | |||
f8b3301c02 | |||
3cdf8fff36 | |||
f3c60953a9 | |||
af414c3606 | |||
65a0858f7a | |||
2e75436637 | |||
5aa652be29 | |||
ebd6e3f1bf | |||
1bfeb07d51 | |||
bc52eaf3f6 | |||
ea6e22b3d2 | |||
010f4937a1 | |||
57342553e8 | |||
836c038fd7 | |||
c7b20f56a6 | |||
e1ffab5509 | |||
654d1a18d0 | |||
369f0ef836 | |||
699fc874f1 | |||
d1174a0924 | |||
80702d4874 | |||
ef1c479e1d | |||
35a3cd1bf4 | |||
f7d8124455 | |||
bbe8885cf5 | |||
8275603fdf | |||
6d019cb983 | |||
52a502cc5a | |||
5adca7f5dd | |||
57c7be02c4 | |||
72b1203b26 | |||
eb0112d799 | |||
6fdcf8de48 | |||
03175642e1 | |||
c96f45fb42 | |||
6f00b0a6bf | |||
52945948d8 | |||
be41b2c749 | |||
75ef111a18 | |||
d796331f19 | |||
1c92a03ad5 | |||
31a95d7074 | |||
9e3fe1cd04 | |||
57be504089 | |||
6bd855a888 | |||
2599f9a6e5 | |||
ad41aa48b2 | |||
89f1847607 | |||
beec06fa96 | |||
2b18b6fb80 | |||
0fa9b26da2 | |||
bbb0a590cf | |||
b5ff7b0a6c | |||
3eb68560d8 | |||
b218b25be1 | |||
12e55dca97 | |||
3591f7c584 | |||
db12f45e0f | |||
119d37e4f3 | |||
8bf0a8e8f0 | |||
142f14bb44 | |||
3187d04df6 | |||
b39ccc6640 | |||
df2c229931 | |||
0173132b8c | |||
d06194ef3b | |||
c594e15920 | |||
0685c79a49 | |||
87ade208bf | |||
6f3c566b3c | |||
db9b380b49 | |||
7bc8edc9d3 | |||
161686879e | |||
3994d23478 | |||
65275c7ca5 | |||
5c8f29a255 | |||
e6d8052c35 | |||
a6ef0c2876 | |||
67a251c8de | |||
cccfc7b504 | |||
6da72badbd | |||
49a1cfdb94 | |||
8099749ae1 | |||
cd38485a52 | |||
f4f0c6bca7 | |||
a351bab66a | |||
69a578e496 | |||
f712ad06b1 | |||
6f31879f00 | |||
0f645dcaab | |||
2a30a45b41 | |||
7eb91355eb | |||
0259513e6c | |||
6f8f29de3c | |||
5dd0c7ce9f | |||
e52a77bba2 | |||
32347ab51d | |||
e447641434 | |||
b3630a67c0 | |||
41dba38568 | |||
680954a369 | |||
f5e3c66dc3 | |||
9695724b4d | |||
e783630176 | |||
a681c6ccc1 | |||
e83b865470 | |||
82c2e62400 | |||
a12c4a0773 | |||
db14c5b3de | |||
64f4430c7c | |||
1d1ad6c85a | |||
1640c9349d | |||
c08c36b456 | |||
f70946156f | |||
5d43285930 | |||
4363159c9e | |||
0812b4b2a7 | |||
b6fe047973 | |||
cbf0c4ce14 | |||
659807f16c | |||
34534e184d |
434
README.md
434
README.md
@ -1,94 +1,97 @@
|
||||
Mega Collection of PowerShell Scripts
|
||||
=====================================
|
||||
|
||||
**Contains 500+ free and stand-alone PowerShell scripts for Linux, Mac OS and Windows. Useful on the command-line, for remote control via SSH, for automation (e.g. [AutoHotkey](https://www.autohotkey.com/) or [Jenkins](https://www.jenkins.io/)), for context menus, for voice commands (e.g. [talk2windows](https://github.com/fleschutz/talk2windows)), automatically on startup/login/logoff/daily/shutdown/etc., or simply to learn PowerShell. All scripts are located in the 📂[scripts](scripts/) subfolder.**
|
||||
**Contains 500+ free and stand-alone PowerShell scripts for Linux, Mac OS, and Windows. Useful on the command-line (CLI), for remote control via SSH, for automation (on startup/login/logoff/daily/hourly/shutdown or via AutoHotkey/Jenkins/etc.), for context menus, for voice commands (see [talk2windows](https://github.com/fleschutz/talk2windows)), or simply to learn PowerShell. All scripts are located in the 📂[scripts](scripts/) subfolder and support Unicode - a modern console like *Windows Terminal* is recommended.**
|
||||
|
||||
**[Download](https://github.com/fleschutz/PowerShell/releases) | [FAQ](docs/FAQ.md)** | **Note:** the scripts support Unicode - a modern console is recommended (e.g. *Windows Terminal*)
|
||||
**[Download](https://github.com/fleschutz/PowerShell/releases) | [PowerShell FAQ](docs/FAQ.md) | [PowerShell Cheat Sheet](docs/cheat-sheet.md) | [PowerShell Documentation](https://docs.microsoft.com/en-us/powershell)**
|
||||
|
||||
🔊 Scripts for Audio & Voice
|
||||
-----------------------------
|
||||
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
|
||||
| [list-voices.ps1](scripts/list-voices.ps1) | Lists the installed text-to-speech voices. [Read more »](docs/list-voices.md) |
|
||||
| [play-beep-sound.ps1](scripts/play-beep-sound.ps1) | Plays a short beep sound. [Read more »](docs/play-beep-sound.md) |
|
||||
| [play-files.ps1](scripts/play-files.ps1) | Plays the given audio files. [Read more »](docs/play-files.md) |
|
||||
| [play-happy-birthday.ps1](scripts/play-happy-birthday.ps1) | Plays the Happy Birthday song. [Read more »](docs/play-happy-birthday.md) |
|
||||
| [play-imperial-march.ps1](scripts/play-imperial-march.ps1) | Plays the Imperial March (Star Wars). [Read more »](docs/play-imperial-march.md) |
|
||||
| [play-jingle-bells.ps1](scripts/play-jingle-bells.ps1) | Plays Jingle Bells. [Read more »](docs/play-jingle-bells.md) |
|
||||
| [play-mission-impossible.ps1](scripts/play-mission-impossible.ps1) | Plays the Mission Impossible theme. [Read more »](docs/play-mission-impossible.md)|
|
||||
| [play-m3u.ps1](scripts/play-m3u.ps1) | Plays the given M3U playlist. [Read more »](docs/play-m3u.md) |
|
||||
| [play-mp3.ps1](scripts/play-mp3.ps1) | Plays the given MP3 sound file. [Read more »](docs/play-mp3.md) |
|
||||
| [play-super-mario.ps1](scripts/play-super-mario.ps1) | Plays the Super Mario intro. [Read more »](docs/play-super-mario.md) |
|
||||
| [play-tetris-melody.ps1](scripts/play-tetris-melody.ps1) | Plays the Tetris melody. [Read more »](docs/play-tetris-melody.md) |
|
||||
| [speak-checklist.ps1](scripts/speak-checklist.ps1) | Speaks the given checklist by text-to-speech. [Read more »](docs/speak-checklist.md) |
|
||||
| [speak-countdown.ps1](scripts/speak-countdown.ps1) | Speaks a countdown by text-to-speech. [Read more »](docs/speak-countdown.md) |
|
||||
| [speak-english.ps1](scripts/speak-english.ps1) | Speaks text with an English text-to-speech voice. [Read more »](docs/speak-english.md) |
|
||||
| [speak-epub.ps1](scripts/speak-epub.ps1) | Speaks the content of the given Epub file by text-to-speech. [Read more »](docs/speak-epub.md) |
|
||||
| [speak-file.ps1](scripts/speak-file.ps1) | Speaks the content of the given text file by text-to-speech. [Read more »](docs/speak-file.md) |
|
||||
| [speak-french.ps1](scripts/speak-french.ps1) | Speaks text with a French text-to-speech voice. [Read more »](docs/speak-french.md) |
|
||||
| [speak-german.ps1](scripts/speak-german.ps1) | Speaks text with a German text-to-speech voice. [Read more »](docs/speak-german.md) |
|
||||
| [speak-italian.ps1](scripts/speak-italian.ps1) | Speaks text with an Italian text-to-speech voice. [Read more »](docs/speak-italian.md) |
|
||||
| [speak-spanish.ps1](scripts/speak-spanish.ps1) | Speaks text with a Spanish text-to-speech voice. [Read more »](docs/speak-spanish.md) |
|
||||
| [speak-test.ps1](scripts/speak-test.ps1) | Performs a speak test by text-to-speech. [Read more »](docs/speak-test.md) |
|
||||
| [speak-text.ps1](scripts/speak-text.ps1) | Speaks the given text by text-to-speech. [Read more »](docs/speak-text.md) |
|
||||
| [tell-joke.ps1](scripts/tell-joke.ps1) | Tells a random joke by text-to-speech. [Read more »](docs/tell-joke.md) |
|
||||
| [tell-quote.ps1](scripts/tell-quote.ps1) | Tells a random quote by text-to-speech. [Read more »](docs/tell-quote.md) |
|
||||
| [turn-volume-down.ps1](scripts/turn-volume-down.ps1) | Turns the audio volume down. [Read more »](docs/turn-volume-down.md) |
|
||||
| [turn-volume-fully-up.ps1](scripts/turn-volume-fully-up.ps1) | Turns the audio fully up. [Read more »](docs/turn-volume-fully-up.md) |
|
||||
| [turn-volume-off.ps1](scripts/turn-volume-off.ps1) | Turns audio off. [Read more »](docs/turn-volume-off-audio.md) |
|
||||
| [turn-volume-on.ps1](scripts/turn-volume-on.ps1) | Turns audio on. [Read more »](docs/turn-volume-on.md) |
|
||||
| [turn-volume-up.ps1](scripts/turn-volume-up.ps1) | Turns the audio volume up. [Read more »](docs/turn-volume-up.md) |
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ----------------------------------------------------------------------------------------- |
|
||||
| [list-voices.ps1](scripts/list-voices.ps1) | Lists the installed text-to-speech voices. [Read more »](docs/list-voices.md) |
|
||||
| [play-beep-sound.ps1](scripts/play-beep-sound.ps1) | Plays a short beep sound. [More »](docs/play-beep-sound.md) |
|
||||
| [play-files.ps1](scripts/play-files.ps1) | Plays the given audio files. [More »](docs/play-files.md) |
|
||||
| [play-happy-birthday.ps1](scripts/play-happy-birthday.ps1) | Plays the Happy Birthday song. [More »](docs/play-happy-birthday.md) |
|
||||
| [play-imperial-march.ps1](scripts/play-imperial-march.ps1) | Plays the Imperial March (Star Wars). [More »](docs/play-imperial-march.md) |
|
||||
| [play-jingle-bells.ps1](scripts/play-jingle-bells.ps1) | Plays Jingle Bells. [More »](docs/play-jingle-bells.md) |
|
||||
| [play-mission-impossible.ps1](scripts/play-mission-impossible.ps1) | Plays the Mission Impossible theme. [More »](docs/play-mission-impossible.md)|
|
||||
| [play-m3u.ps1](scripts/play-m3u.ps1) | Plays the given M3U playlist. [More »](docs/play-m3u.md) |
|
||||
| [play-mp3.ps1](scripts/play-mp3.ps1) | Plays the given MP3 sound file. [More »](docs/play-mp3.md) |
|
||||
| [play-super-mario.ps1](scripts/play-super-mario.ps1) | Plays the Super Mario intro. [More »](docs/play-super-mario.md) |
|
||||
| [play-tetris-melody.ps1](scripts/play-tetris-melody.ps1) | Plays the Tetris melody. [More »](docs/play-tetris-melody.md) |
|
||||
| [speak-checklist.ps1](scripts/speak-checklist.ps1) | Speaks the given checklist by text-to-speech. [More »](docs/speak-checklist.md) |
|
||||
| [speak-countdown.ps1](scripts/speak-countdown.ps1) | Speaks a countdown by text-to-speech. [More »](docs/speak-countdown.md) |
|
||||
| [speak-english.ps1](scripts/speak-english.ps1) | Speaks text with an English text-to-speech voice. [More »](docs/speak-english.md) |
|
||||
| [speak-epub.ps1](scripts/speak-epub.ps1) | Speaks the content of the given Epub file by text-to-speech. [More »](docs/speak-epub.md) |
|
||||
| [speak-file.ps1](scripts/speak-file.ps1) | Speaks the content of the given text file by text-to-speech. [More »](docs/speak-file.md) |
|
||||
| [speak-french.ps1](scripts/speak-french.ps1) | Speaks text with a French text-to-speech voice. [More »](docs/speak-french.md) |
|
||||
| [speak-german.ps1](scripts/speak-german.ps1) | Speaks text with a German text-to-speech voice. [More »](docs/speak-german.md) |
|
||||
| [speak-italian.ps1](scripts/speak-italian.ps1) | Speaks text with an Italian text-to-speech voice. [More »](docs/speak-italian.md) |
|
||||
| [speak-spanish.ps1](scripts/speak-spanish.ps1) | Speaks text with a Spanish text-to-speech voice. [More »](docs/speak-spanish.md) |
|
||||
| [speak-test.ps1](scripts/speak-test.ps1) | Performs a speak test by text-to-speech. [More »](docs/speak-test.md) |
|
||||
| [speak-text.ps1](scripts/speak-text.ps1) | Speaks the given text by text-to-speech. [More »](docs/speak-text.md) |
|
||||
| [spell-word.ps1](scripts/spell-word.ps1) | Spells the given word by text-to-speech. [More »](docs/spell-word.md) |
|
||||
| [tell-joke.ps1](scripts/tell-joke.ps1) | Tells a random joke by text-to-speech. [More »](docs/tell-joke.md) |
|
||||
| [tell-quote.ps1](scripts/tell-quote.ps1) | Tells a random quote by text-to-speech. [More »](docs/tell-quote.md) |
|
||||
| [turn-volume-down.ps1](scripts/turn-volume-down.ps1) | Turns the audio volume down. [More »](docs/turn-volume-down.md) |
|
||||
| [turn-volume-fully-up.ps1](scripts/turn-volume-fully-up.ps1) | Turns the audio fully up. [More »](docs/turn-volume-fully-up.md) |
|
||||
| [turn-volume-off.ps1](scripts/turn-volume-off.ps1) | Turns audio off. [More »](docs/turn-volume-off-audio.md) |
|
||||
| [turn-volume-on.ps1](scripts/turn-volume-on.ps1) | Turns audio on. [More »](docs/turn-volume-on.md) |
|
||||
| [turn-volume-up.ps1](scripts/turn-volume-up.ps1) | Turns the audio volume up. [More »](docs/turn-volume-up.md) |
|
||||
|
||||
|
||||
⚙️ Scripts to Manage Computers
|
||||
-------------------------------
|
||||
⚙️ Scripts for Computer Management
|
||||
----------------------------------
|
||||
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||
| [add-firewall-rules.ps1](scripts/add-firewall-rules.ps1) | Adds firewall rules for executables, needs admin rights. [Read more »](docs/add-firewall-rules.md) |
|
||||
| [check-cpu.ps1](scripts/check-cpu.ps1)| Checks the CPU temperature. [Read more »](docs/check-cpu.md) |
|
||||
| [check-dns.ps1](scripts/check-dns.ps1) | Checks the DNS resolution. [Read more »](docs/check-dns.md) |
|
||||
| [check-drive-space.ps1](scripts/check-drive-space.ps1) | Checks a drive for free space left. [Read more »](docs/check-drive-space.md) |
|
||||
| [check-file-system.ps1](scripts/check-file-system.ps1) | Checks the file system of a drive (needs admin rights). [Read more »](docs/check-file-system.md)|
|
||||
| [check-health.ps1](scripts/check-health.ps1) | Checks the system health. [Read more »](docs/check-health.md) |
|
||||
| [check-ping.ps1](scripts/check-ping.ps1) | Checks the ping latency to the internet. [Read more »](docs/check-ping.md) |
|
||||
| [check-swap-space.ps1](scripts/check-swap-space.ps1) | Checks the swap space for free space left. [Read more »](docs/check-swap-space.md) |
|
||||
| [check-windows-system-files.ps1](scripts/check-windows-system-files.ps1) | Checks Windows system files (needs admin rights). [Read more »](docs/check-windows-system-files.md) |
|
||||
| [enable-crash-dumps.ps1](scripts/enable-crash-dumps.ps1) | Enables the writing of crash dumps. [Read more »](docs/enable-crash-dumps.md) |
|
||||
| [hibernate.ps1](scripts/hibernate.ps1) | Hibernates the local computer immediately. [Read more »](docs/hibernate.md) |
|
||||
| [install-github-cli.ps1](scripts/install-github-cli.ps1) | Installs GitHub CLI. [Read more »](docs/install-github-cli.md) |
|
||||
| [install-chrome-browser.ps1](scripts/install-chrome-browser.ps1) | Installs the Google Chrome browser. [Read more »](docs/install-chrome-browser.md) |
|
||||
| [install-firefox.ps1](scripts/install-firefox.ps1) | Installs the Firefox browser. [Read more »](docs/install-firefox.md) |
|
||||
| [install-knot-resolver.ps1](scripts/install-knot-resolver.ps1) | Installs the Knot Resolver (needs admin rights). [Read more »](docs/install-knot-resolver.md)|
|
||||
| [install-ssh-client.ps1](scripts/install-ssh-client.ps1) | Installs a SSH client (needs admin rights). [Read more »](docs/install-ssh-client.md) |
|
||||
| [install-ssh-server.ps1](scripts/install-ssh-server.ps1) | Installs a SSH server (needs admin rights). [Read more »](docs/install-ssh-server.md) |
|
||||
| [install-signal-cli.ps1](scripts/install-signal-cli.ps1) | Installs the CLI edition of the Signal messenger. [Read more »](docs/install-signal-cli.md)|
|
||||
| [install-updates.ps1](scripts/install-updates.ps1) | Installs updates (need admin rights). [Read more »](docs/install-updates.md) |
|
||||
| [install-wsl.ps1](scripts/install-wsl.ps1) | Installs Windows Subsystem for Linux (WSL), needs admin rights. [Read more »](docs/install-wsl.md)|
|
||||
| [list-apps.ps1](scripts/list-apps.ps1) | Lists the installed applications. [Read more »](docs/list-installed-apps.md) |
|
||||
| [list-cli-tools.ps1](scripts/list-cli-tools.ps1) | Lists installed command-line interface (CLI) tools. [Read more »](docs/list-cli-tools.md) |
|
||||
| [list-dns-servers.ps1](scripts/list-dns-servers.ps1) | Lists public DNS servers. [Read more »](docs/list-dns-servers.md) |
|
||||
| [list-drives.ps1](scripts/list-drives.ps1) | Lists all drives. [Read more »](docs/list-drives.md) |
|
||||
| [list-network-shares.ps1](scripts/list-network-shares.ps1) | Lists all network shares of the local computer. [Read more »](docs/list-network-shares.md) |
|
||||
| [list-installed-software.ps1](scripts/list-installed-software.ps1) | Lists the installed software. [Read more »](docs/list-installed-software.md) |
|
||||
| [list-printers.ps1](scripts/list-printers.ps1) | Lists all printer known to the computer. [Read more »](docs/list-printers.md) |
|
||||
| [list-print-jobs.ps1](scripts/list-print-jobs.ps1) | Lists all jobs of all printers. [Read more »](docs/list-print-jobs.md) |
|
||||
| [list-processes.ps1](scripts/list-processes.ps1) | Lists the local computer processes. [Read more »](docs/list-processes.md) |
|
||||
| [list-services.ps1](scripts/list-services.ps1) | Lists the services on the local computer. [Read more »](docs/list-services.md) |
|
||||
| [list-system-info.ps1](scripts/list-system-info.ps1) | Lists system information on the local computer. [Read more »](docs/list-system-info.md) |
|
||||
| [list-tasks.ps1](scripts/list-tasks.ps1) | Lists all Windows scheduler tasks. [Read more »](docs/list-tasks.md) |
|
||||
| [list-timezone.ps1](scripts/list-timezone.ps1) | Lists the current time zone details. [Read more »](docs/list-timezone.md) |
|
||||
| [list-timezones.ps1](scripts/list-timezones.ps1) | Lists all time zones available. [Read more »](docs/list-timezones.md) |
|
||||
| [list-user-groups.ps1](scripts/list-user-groups.ps1) | Lists the user groups on the local computer. [Read more »](docs/list-user-groups.md) |
|
||||
| [poweroff.ps1](scripts/poweroff.ps1) | Halts the local computer (needs admin rights). [Read more »](docs/poweroff.md) |
|
||||
| [query-smart-data.ps1](scripts/query-smart-data.ps1) | Queries the S.M.A.R.T. data of your HDD/SSD's. [Read more »](docs/query-smart-data.md) |
|
||||
| [reboot.ps1](scripts/reboot.ps1) | Reboots the local computer (needs admin rights). [Read more »](docs/reboot.md) |
|
||||
| [remove-print-jobs.ps1](scripts/remove-print-jobs.ps1) | Removes all jobs from all printers. [Read more »](docs/remove-print-jobs.md) |
|
||||
| [restart-network-adapters.ps1](scripts/restart-network-adapters.ps1) | Restarts all local network adapters. [Read more »](docs/restart-network-adapters.md)|
|
||||
| [upgrade-ubuntu.ps1](scripts/upgrade-ubuntu.ps1) | Upgrades Ubuntu Linux to the latest (LTS) release. [Read more »](docs/upgrade-ubuntu.md) |
|
||||
| [wake-up.ps1](scripts/wake-up.ps1) | Wakes up a remote computer using Wake-on-LAN. [Read more »](docs/wakeup.md) |
|
||||
| [windefender.ps1](scripts/windefender.ps1) | Turn Windows Defender on/off/check real time monitoring. [Read more »](docs/windefender.md) |
|
||||
| [check-cpu.ps1](scripts/check-cpu.ps1)| Checks the CPU temperature. [More »](docs/check-cpu.md) |
|
||||
| [check-dns.ps1](scripts/check-dns.ps1) | Checks the DNS resolution. [More »](docs/check-dns.md) |
|
||||
| [check-drive-space.ps1](scripts/check-drive-space.ps1) | Checks a drive for free space left. [More »](docs/check-drive-space.md) |
|
||||
| [check-file-system.ps1](scripts/check-file-system.ps1) | Checks the file system of a drive (needs admin rights). [More »](docs/check-file-system.md)|
|
||||
| [check-health.ps1](scripts/check-health.ps1) | Checks the system health. [More »](docs/check-health.md) |
|
||||
| [check-ping.ps1](scripts/check-ping.ps1) | Checks the ping latency to the internet. [More »](docs/check-ping.md) |
|
||||
| [check-swap-space.ps1](scripts/check-swap-space.ps1) | Checks the swap space for free space left. [More »](docs/check-swap-space.md) |
|
||||
| [check-windows-system-files.ps1](scripts/check-windows-system-files.ps1) | Checks Windows system files (needs admin rights). [More »](docs/check-windows-system-files.md) |
|
||||
| [enable-crash-dumps.ps1](scripts/enable-crash-dumps.ps1) | Enables the writing of crash dumps. [More »](docs/enable-crash-dumps.md) |
|
||||
| [hibernate.ps1](scripts/hibernate.ps1) | Hibernates the local computer immediately. [More »](docs/hibernate.md) |
|
||||
| [install-github-cli.ps1](scripts/install-github-cli.ps1) | Installs GitHub CLI. [More »](docs/install-github-cli.md) |
|
||||
| [install-chrome-browser.ps1](scripts/install-chrome-browser.ps1) | Installs the Google Chrome browser. [More »](docs/install-chrome-browser.md) |
|
||||
| [install-firefox.ps1](scripts/install-firefox.ps1) | Installs the Firefox browser. [More »](docs/install-firefox.md) |
|
||||
| [install-knot-resolver.ps1](scripts/install-knot-resolver.ps1) | Installs the Knot Resolver (needs admin rights). [More »](docs/install-knot-resolver.md)|
|
||||
| [install-salesforce-cli.ps1](scripts/install-salesforce-cli.ps1) | Installs the Salesforce CLI (sfdx). [More »](docs/install-salesforce-cli.md) |
|
||||
| [install-ssh-client.ps1](scripts/install-ssh-client.ps1) | Installs a SSH client (needs admin rights). [More »](docs/install-ssh-client.md) |
|
||||
| [install-ssh-server.ps1](scripts/install-ssh-server.ps1) | Installs a SSH server (needs admin rights). [More »](docs/install-ssh-server.md) |
|
||||
| [install-signal-cli.ps1](scripts/install-signal-cli.ps1) | Installs the CLI edition of the Signal messenger. [More »](docs/install-signal-cli.md)|
|
||||
| [install-updates.ps1](scripts/install-updates.ps1) | Installs updates (need admin rights). [More »](docs/install-updates.md) |
|
||||
| [install-wsl.ps1](scripts/install-wsl.ps1) | Installs Windows Subsystem for Linux (WSL), needs admin rights. [More »](docs/install-wsl.md)|
|
||||
| [list-apps.ps1](scripts/list-apps.ps1) | Lists the installed applications. [More »](docs/list-installed-apps.md) |
|
||||
| [list-cli-tools.ps1](scripts/list-cli-tools.ps1) | Lists installed command-line interface (CLI) tools. [More »](docs/list-cli-tools.md) |
|
||||
| [list-dns-servers.ps1](scripts/list-dns-servers.ps1) | Lists public DNS servers. [More »](docs/list-dns-servers.md) |
|
||||
| [list-drives.ps1](scripts/list-drives.ps1) | Lists all drives. [More »](docs/list-drives.md) |
|
||||
| [list-network-shares.ps1](scripts/list-network-shares.ps1) | Lists all network shares of the local computer. [More »](docs/list-network-shares.md) |
|
||||
| [list-installed-software.ps1](scripts/list-installed-software.ps1) | Lists the installed software. [More »](docs/list-installed-software.md) |
|
||||
| [list-printers.ps1](scripts/list-printers.ps1) | Lists all printer known to the computer. [More »](docs/list-printers.md) |
|
||||
| [list-print-jobs.ps1](scripts/list-print-jobs.ps1) | Lists all jobs of all printers. [More »](docs/list-print-jobs.md) |
|
||||
| [list-processes.ps1](scripts/list-processes.ps1) | Lists the local computer processes. [More »](docs/list-processes.md) |
|
||||
| [list-services.ps1](scripts/list-services.ps1) | Lists the services on the local computer. [More »](docs/list-services.md) |
|
||||
| [list-system-info.ps1](scripts/list-system-info.ps1) | Lists system information on the local computer. [More »](docs/list-system-info.md) |
|
||||
| [list-tasks.ps1](scripts/list-tasks.ps1) | Lists all Windows scheduler tasks. [More »](docs/list-tasks.md) |
|
||||
| [list-timezone.ps1](scripts/list-timezone.ps1) | Lists the current time zone details. [More »](docs/list-timezone.md) |
|
||||
| [list-timezones.ps1](scripts/list-timezones.ps1) | Lists all time zones available. [More »](docs/list-timezones.md) |
|
||||
| [list-user-groups.ps1](scripts/list-user-groups.ps1) | Lists the user groups on the local computer. [More »](docs/list-user-groups.md) |
|
||||
| [new-power-plan.ps1](scripts/new-power-plan.ps1) | Creates a custom power plan based on the active one. [More »](docs/new-power-plan.md) |
|
||||
| [poweroff.ps1](scripts/poweroff.ps1) | Halts the local computer (needs admin rights). [More »](docs/poweroff.md) |
|
||||
| [query-smart-data.ps1](scripts/query-smart-data.ps1) | Queries the S.M.A.R.T. data of your HDD/SSD's. [More »](docs/query-smart-data.md) |
|
||||
| [reboot.ps1](scripts/reboot.ps1) | Reboots the local computer (needs admin rights). [More »](docs/reboot.md) |
|
||||
| [remove-print-jobs.ps1](scripts/remove-print-jobs.ps1) | Removes all jobs from all printers. [More »](docs/remove-print-jobs.md) |
|
||||
| [restart-network-adapters.ps1](scripts/restart-network-adapters.ps1) | Restarts all local network adapters. [More »](docs/restart-network-adapters.md)|
|
||||
| [upgrade-ubuntu.ps1](scripts/upgrade-ubuntu.ps1) | Upgrades Ubuntu Linux to the latest (LTS) release. [More »](docs/upgrade-ubuntu.md) |
|
||||
| [wake-up-host.ps1](scripts/wake-up-host.ps1) | Wakes up a computer using Wake-on-LAN. [More »](docs/wake-up-host.md) |
|
||||
| [windefender.ps1](scripts/windefender.ps1) | Turn Windows Defender on/off/check real time monitoring. [More »](docs/windefender.md) |
|
||||
|
||||
|
||||
💻 Scripts for the Desktop
|
||||
@ -96,25 +99,25 @@ Mega Collection of PowerShell Scripts
|
||||
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||
| [close-calculator.ps1](scripts/close-calculator.ps1) | Closes the calculator application. [Read more...](docs/close-calculator.md) |
|
||||
| [close-cortana.ps1](scripts/close-cortana.ps1) | Closes Cortana. [Read more...](docs/close-cortana.md) |
|
||||
| [close-chrome.ps1](scripts/close-chrome.ps1) | Closes the Google Chrome browser. [Read more...](docs/close-chrome.md) |
|
||||
| [close-program.ps1](scripts/close-program.ps1) | Closes the given program gracefully. [Read more...](docs/close-program.md) |
|
||||
| [close-edge.ps1](scripts/close-edge.ps1) | Closes the Edge browser. [Read more...](docs/close-edge.md) |
|
||||
| [close-file-explorer.ps1](scripts/close-file-explorer.ps1)| Closes Microsoft File Explorer. [Read more...](docs/close-file-explorer.md) |
|
||||
| [close-firefox.ps1](scripts/close-firefox.ps1) | Closes the Firefox browser. [Read more...](docs/close-edge.md) |
|
||||
| [close-microsoft-store.ps1](scripts/close-microsoft-store.ps1)| Closes the Microsoft Store app. [Read more...](docs/close-microsoft-store.md) |
|
||||
| [close-netflix.ps1](scripts/close-netflix.ps1) | Closes the Netflix app. [Read more...](docs/close-netflix.md) |
|
||||
| [close-onedrive.ps1](scripts/close-onedrive.ps1) | Closes Microsoft OneDrive. [Read more...](docs/close-onedrive.md) |
|
||||
| [close-serenade.ps1](scripts/close-serenade.ps1) | Closes the Serenade application. [Read more...](docs/close-serenade.md) |
|
||||
| [close-snipping-tool.ps1](scripts/close-snipping-tool.ps1)| Closes the Snipping Tool application. [Read more...](docs/close-snipping-tool.md) |
|
||||
| [close-spotify.ps1](scripts/close-spotify.ps1) | Closes Spotify. [Read more...](docs/close-spotify.md) |
|
||||
| [close-system-settings.ps1](scripts/close-system-settings.ps1) | Closes the System Settings window. [Read more...](docs/close-system-settings.md) |
|
||||
| [close-task-manager.ps1](scripts/close-task-manager.ps1) | Closes the Task Manager. [Read more...](docs/close-task-manager.md) |
|
||||
| [close-thunderbird.ps1](scripts/close-thunderbird.ps1) | Closes Mozilla Thunderbird. [Read more...](docs/close-thunderbird.md) |
|
||||
| [close-vlc.ps1](scripts/close-vlc.ps1) | Closes the VLC media player application. [Read more...](docs/close-vlc.md) |
|
||||
| [close-windows-terminal.ps1](scripts/close-windows-terminal.ps1) | Closes the Windows Terminal application. [Read more...](docs/close-windows-terminal.md) |
|
||||
| [enable-god-mode.ps1](scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop). [Read more...](docs/enable-god-mode.md) |
|
||||
| [close-calculator.ps1](scripts/close-calculator.ps1) | Closes the calculator application. [Read more »](docs/close-calculator.md) |
|
||||
| [close-cortana.ps1](scripts/close-cortana.ps1) | Closes Cortana. [More »](docs/close-cortana.md) |
|
||||
| [close-chrome.ps1](scripts/close-chrome.ps1) | Closes the Google Chrome browser. [More »](docs/close-chrome.md) |
|
||||
| [close-program.ps1](scripts/close-program.ps1) | Closes the given program gracefully. [More »](docs/close-program.md) |
|
||||
| [close-edge.ps1](scripts/close-edge.ps1) | Closes the Edge browser. [More »](docs/close-edge.md) |
|
||||
| [close-file-explorer.ps1](scripts/close-file-explorer.ps1)| Closes Microsoft File Explorer. [More »](docs/close-file-explorer.md) |
|
||||
| [close-firefox.ps1](scripts/close-firefox.ps1) | Closes the Firefox browser. [More »](docs/close-edge.md) |
|
||||
| [close-microsoft-store.ps1](scripts/close-microsoft-store.ps1)| Closes the Microsoft Store app. [More »](docs/close-microsoft-store.md) |
|
||||
| [close-netflix.ps1](scripts/close-netflix.ps1) | Closes the Netflix app. [More »](docs/close-netflix.md) |
|
||||
| [close-onedrive.ps1](scripts/close-onedrive.ps1) | Closes Microsoft OneDrive. [More »](docs/close-onedrive.md) |
|
||||
| [close-serenade.ps1](scripts/close-serenade.ps1) | Closes the Serenade application. [More »](docs/close-serenade.md) |
|
||||
| [close-snipping-tool.ps1](scripts/close-snipping-tool.ps1)| Closes the Snipping Tool application. [More »](docs/close-snipping-tool.md) |
|
||||
| [close-spotify.ps1](scripts/close-spotify.ps1) | Closes Spotify. [More »](docs/close-spotify.md) |
|
||||
| [close-system-settings.ps1](scripts/close-system-settings.ps1) | Closes the System Settings window. [More »](docs/close-system-settings.md) |
|
||||
| [close-task-manager.ps1](scripts/close-task-manager.ps1) | Closes the Task Manager. [More »](docs/close-task-manager.md) |
|
||||
| [close-thunderbird.ps1](scripts/close-thunderbird.ps1) | Closes Mozilla Thunderbird. [More »](docs/close-thunderbird.md) |
|
||||
| [close-vlc.ps1](scripts/close-vlc.ps1) | Closes the VLC media player application. [More »](docs/close-vlc.md) |
|
||||
| [close-windows-terminal.ps1](scripts/close-windows-terminal.ps1) | Closes the Windows Terminal application. [More »](docs/close-windows-terminal.md) |
|
||||
| [enable-god-mode.ps1](scripts/enable-god-mode.ps1) | Enables the god mode (adds a new icon to the desktop). [More »](docs/enable-god-mode.md) |
|
||||
| [install-chrome.ps1](scripts/install-chrome.ps1) | Installs the Google Chrome browser. [Read more...](docs/install-chrome-browser.md) |
|
||||
| [install-firefox.ps1](scripts/install-firefox.ps1) | Installs the Firefox browser. [Read more...](docs/install-firefox.md) |
|
||||
| [list-clipboard.ps1](scripts/list-clipboard.ps1) | Lists the contents of the clipboard. [Read more...](docs/list-clipboard.md) |
|
||||
@ -167,12 +170,12 @@ Mega Collection of PowerShell Scripts
|
||||
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
||||
| [cd-autostart.ps1](scripts/cd-autostart.ps1) | Set the working directory to the user's autostart folder. [Read more...](docs/cd-autostart.md) |
|
||||
| [cd-desktop.ps1](scripts/cd-desktop.ps1) | Set the working directory to the user's desktop folder. [Read more...](docs/cd-desktop.md) |
|
||||
| [cd-docs.ps1](scripts/cd-docs.ps1) | Set the working directory to the user's documents folder. [Read more...](docs/cd-docs.md) |
|
||||
| [cd-downloads.ps1](scripts/cd-downloads.ps1) | Set the working directory to the user's downloads folder. [Read more...](docs/cd-downloads.md) |
|
||||
| [cd-dropbox.ps1](scripts/cd-dropbox.ps1) | Set the working directory to the user's Dropbox folder. [Read more...](docs/cd-dropbox.md) |
|
||||
| [cd-home.ps1](scripts/cd-home.ps1) | Set the working directory to the user's home folder. [Read more...](docs/cd-home.md) |
|
||||
| [cd-autostart.ps1](scripts/cd-autostart.ps1) | Set the working directory to the user's autostart folder. [Read more »](docs/cd-autostart.md) |
|
||||
| [cd-desktop.ps1](scripts/cd-desktop.ps1) | Set the working directory to the user's desktop folder. [More »](docs/cd-desktop.md) |
|
||||
| [cd-docs.ps1](scripts/cd-docs.ps1) | Set the working directory to the user's documents folder. [More »](docs/cd-docs.md) |
|
||||
| [cd-downloads.ps1](scripts/cd-downloads.ps1) | Set the working directory to the user's downloads folder. [More »](docs/cd-downloads.md) |
|
||||
| [cd-dropbox.ps1](scripts/cd-dropbox.ps1) | Set the working directory to the user's Dropbox folder. [More »](docs/cd-dropbox.md) |
|
||||
| [cd-home.ps1](scripts/cd-home.ps1) | Set the working directory to the user's home folder. [More »](docs/cd-home.md) |
|
||||
| [cd-music.ps1](scripts/cd-music.ps1) | Set the working directory to the user's music folder. [Read more...](docs/cd-music.md) |
|
||||
| [cd-onedrive.ps1](scripts/cd-onedrive.ps1) | Set the working directory to the user's OneDrive folder. [Read more...](docs/cd-onedrive.md) |
|
||||
| [cd-pics.ps1](scripts/cd-pics.ps1) | Set the working directory to the user's pictures folder. [Read more...](docs/cd-pics.md) |
|
||||
@ -226,12 +229,12 @@ Mega Collection of PowerShell Scripts
|
||||
| Script | Description |
|
||||
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
|
||||
| [convert-csv2txt.ps1](scripts/convert-csv2txt.ps1) | Converts a .CSV file to a text file. [Read more »](docs/convert-csv2txt.md) |
|
||||
| [convert-mysql2csv.ps1](scripts/convert-mysql2csv.ps1) | Converts a MySQL database table to a .CSV file. [Read more »](docs/convert-mysql2csv.md) |
|
||||
| [convert-ps2bat.ps1](scripts/convert-ps2bat.ps1) | Converts a PowerShell script to a Batch script. [Read more »](docs/convert-ps2bat.md) |
|
||||
| [convert-ps2md.ps1](scripts/convert-ps2md.ps1) | Converts the comment-based help of a PowerShell script to Markdown. [Read more »](docs/convert-ps2md.md) |
|
||||
| [convert-sql2csv.ps1](scripts/convert-sql2csv.ps1) | Converts a SQL database table to a .CSV file. [Read more »](docs/convert-sql2csv.md) |
|
||||
| [convert-txt2wav.ps1](scripts/convert-txt2wav.ps1) | Converts text to a .WAV audio file. [Read more »](docs/convert-txt2wav.md) |
|
||||
| [export-to-manuals.ps1](scripts/export-to-manuals.ps1) | Exports all scripts as manuals. [Read more »](docs/export-to-manuals.md) |
|
||||
| [convert-mysql2csv.ps1](scripts/convert-mysql2csv.ps1) | Converts a MySQL database table to a .CSV file. [More »](docs/convert-mysql2csv.md) |
|
||||
| [convert-ps2bat.ps1](scripts/convert-ps2bat.ps1) | Converts a PowerShell script to a Batch script. [More »](docs/convert-ps2bat.md) |
|
||||
| [convert-ps2md.ps1](scripts/convert-ps2md.ps1) | Converts the comment-based help of a PowerShell script to Markdown. [More »](docs/convert-ps2md.md) |
|
||||
| [convert-sql2csv.ps1](scripts/convert-sql2csv.ps1) | Converts a SQL database table to a .CSV file. [More »](docs/convert-sql2csv.md) |
|
||||
| [convert-txt2wav.ps1](scripts/convert-txt2wav.ps1) | Converts text to a .WAV audio file. [More »](docs/convert-txt2wav.md) |
|
||||
| [export-to-manuals.ps1](scripts/export-to-manuals.ps1) | Exports all scripts as manuals. [More »](docs/export-to-manuals.md) |
|
||||
|
||||
|
||||
📝 Scripts for Git
|
||||
@ -240,121 +243,122 @@ Mega Collection of PowerShell Scripts
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
|
||||
| [build-repo.ps1](scripts/build-repo.ps1) | Builds a Git repository. [Read more »](docs/build-repo.md) |
|
||||
| [build-repos.ps1](scripts/build-repos.ps1) | Builds all Git repositories in a folder. [Read more »](docs/build-repos.md) |
|
||||
| [check-repo.ps1](scripts/check-repo.ps1) | Checks a Git repository. [Read more »](docs/check-repo.md) |
|
||||
| [clean-repo.ps1](scripts/clean-repo.ps1) | Cleans a Git repository from untracked files. [Read more »](docs/clean-repo.md) |
|
||||
| [clean-repos.ps1](scripts/clean-repos.ps1) | Cleans all Git repositories in a folder from untracked files. [Read more »](docs/clean-repos.md) |
|
||||
| [clone-repos.ps1](scripts/clone-repos.ps1) | Clones well-known Git repositories. [Read more »](docs/clone-repos.md) |
|
||||
| [configure-git.ps1](scripts/configure-git.ps1) | Sets up the Git user configuration. [Read more »](docs/configure-git.md) |
|
||||
| [fetch-repo.ps1](scripts/fetch-repo.ps1) | Fetches updates for a Git repository. [Read more »](docs/fetch-repo.md) |
|
||||
| [fetch-repos.ps1](scripts/fetch-repos.ps1) | Fetches updates for all Git repositories in a folder. [Read more »](docs/fetch-repos.md) |
|
||||
| [list-branches.ps1](scripts/list-branches.ps1) | Lists all branches in a Git repository. [Read more »](docs/list-branches.md) |
|
||||
| [list-commit-stats.ps1](scripts/list-commit-stats.ps1) | Lists a Git commit statistics. [Read more »](docs/list-commit-stats.md) |
|
||||
| [list-commits.ps1](scripts/list-commits.ps1) | Lists all commits in a Git repository. [Read more »](docs/list-commits.md) |
|
||||
| [list-latest-tag.ps1](scripts/list-latest-tag.ps1) | Lists the latest tag on the current branch in a Git repository. [Read more »](docs/list-latest-tag.md) |
|
||||
| [list-latest-tags.ps1](scripts/list-latest-tags.ps1) | Lists the latests tags in all Git repositories under a directory. [Read more »](docs/list-latest-tags.md) |
|
||||
| [list-repos.ps1](scripts/list-repos.ps1) | Lists all Git repositories in a folder. [Read more »](docs/list-repos.md) |
|
||||
| [list-submodules.ps1](scripts/list-submodules.ps1) | Lists all submodules in a Git repository. [Read more »](docs/list-submodules.md) |
|
||||
| [list-tags.ps1](scripts/list-tags.ps1) | Lists all tags in a Git repository. [Read more »](docs/list-tags.md) |
|
||||
| [new-branch.ps1](scripts/new-branch.ps1) | Creates a new branch in a Git repository. [Read more »](docs/new-branch.md) |
|
||||
| [new-tag.ps1](scripts/new-tag.ps1) | Creates a new tag in a Git repository. [Read more »](docs/new-tag.md) |
|
||||
| [pick-commit.ps1](scripts/pick-commit.ps1) | Cherry-picks a Git commit into multiple branches. [Read more »](docs/pick-commit.md) |
|
||||
| [pull-repo.ps1](scripts/pull-repo.ps1) | Pulls updates for a Git repository. [Read more »](docs/pull-repo.md) |
|
||||
| [pull-repos.ps1](scripts/pull-repos.ps1) | Pulls updates for all Git repositories in a folder. [Read more »](docs/pull-repos.md) |
|
||||
| [remove-tag.ps1](scripts/remove-tag.ps1) | Removes a tag in a Git repository. [Read more »](docs/remove-tag.md) |
|
||||
| [switch-branch.ps1](scripts/switch-branch.ps1) | Switches the branch in a Git repository. [Read more »](docs/switch-branch.md) |
|
||||
| [sync-repo.ps1](scripts/sync-repo.ps1) | Synchronizes a Git repository by pull & push. [Read more »](docs/sync-repo.md) |
|
||||
| [write-changelog.ps1](scripts/write-changelog.ps1) | Writes a changelog from Git commits. [Read more »](docs/write-changelog.md) |
|
||||
| [build-repos.ps1](scripts/build-repos.ps1) | Builds all Git repositories in a folder. [More »](docs/build-repos.md) |
|
||||
| [check-repo.ps1](scripts/check-repo.ps1) | Checks a Git repository. [More »](docs/check-repo.md) |
|
||||
| [clean-repo.ps1](scripts/clean-repo.ps1) | Cleans a Git repository from untracked files. [More »](docs/clean-repo.md) |
|
||||
| [clean-repos.ps1](scripts/clean-repos.ps1) | Cleans all Git repositories in a folder from untracked files. [More »](docs/clean-repos.md) |
|
||||
| [clone-repos.ps1](scripts/clone-repos.ps1) | Clones well-known Git repositories. [More »](docs/clone-repos.md) |
|
||||
| [configure-git.ps1](scripts/configure-git.ps1) | Sets up the Git user configuration. [More »](docs/configure-git.md) |
|
||||
| [fetch-repo.ps1](scripts/fetch-repo.ps1) | Fetches updates for a Git repository. [More »](docs/fetch-repo.md) |
|
||||
| [fetch-repos.ps1](scripts/fetch-repos.ps1) | Fetches updates for all Git repositories in a folder. [More »](docs/fetch-repos.md) |
|
||||
| [list-branches.ps1](scripts/list-branches.ps1) | Lists all branches in a Git repository. [More »](docs/list-branches.md) |
|
||||
| [list-commit-stats.ps1](scripts/list-commit-stats.ps1) | Lists a Git commit statistics. [More »](docs/list-commit-stats.md) |
|
||||
| [list-commits.ps1](scripts/list-commits.ps1) | Lists all commits in a Git repository. [More »](docs/list-commits.md) |
|
||||
| [list-latest-tag.ps1](scripts/list-latest-tag.ps1) | Lists the latest tag on the current branch in a Git repository. [More »](docs/list-latest-tag.md) |
|
||||
| [list-latest-tags.ps1](scripts/list-latest-tags.ps1) | Lists the latests tags in all Git repositories under a directory. [More »](docs/list-latest-tags.md) |
|
||||
| [list-repos.ps1](scripts/list-repos.ps1) | Lists all Git repositories in a folder. [More »](docs/list-repos.md) |
|
||||
| [list-submodules.ps1](scripts/list-submodules.ps1) | Lists all submodules in a Git repository. [More »](docs/list-submodules.md) |
|
||||
| [list-tags.ps1](scripts/list-tags.ps1) | Lists all tags in a Git repository. [More »](docs/list-tags.md) |
|
||||
| [new-branch.ps1](scripts/new-branch.ps1) | Creates a new branch in a Git repository. [More »](docs/new-branch.md) |
|
||||
| [new-tag.ps1](scripts/new-tag.ps1) | Creates a new tag in a Git repository. [More »](docs/new-tag.md) |
|
||||
| [pick-commit.ps1](scripts/pick-commit.ps1) | Cherry-picks a Git commit into multiple branches. [More »](docs/pick-commit.md) |
|
||||
| [pull-repo.ps1](scripts/pull-repo.ps1) | Pulls updates into a Git repository. [More »](docs/pull-repo.md) |
|
||||
| [pull-repos.ps1](scripts/pull-repos.ps1) | Pulls updates into all Git repositories in a folder. [More »](docs/pull-repos.md) |
|
||||
| [remove-tag.ps1](scripts/remove-tag.ps1) | Removes a tag in a Git repository. [More »](docs/remove-tag.md) |
|
||||
| [switch-branch.ps1](scripts/switch-branch.ps1) | Switches the branch in a Git repository. [More »](docs/switch-branch.md) |
|
||||
| [sync-repo.ps1](scripts/sync-repo.ps1) | Synchronizes a Git repository by pull & push. [More »](docs/sync-repo.md) |
|
||||
| [write-changelog.ps1](scripts/write-changelog.ps1) | Writes a changelog from Git commits. [More »](docs/write-changelog.md) |
|
||||
|
||||
🔎 Scripts for PowerShell
|
||||
------------------------
|
||||
|
||||
| Script | Description |
|
||||
| ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ |
|
||||
| [daily-tasks.sh](scripts/daily-tasks.sh) | Execute PowerShell scripts automatically as daily tasks (Linux only). [Read more...](docs/daily-tasks.sh.md) |
|
||||
| [introduce-powershell.ps1](scripts/introduce-powershell.ps1) | Introduces PowerShell to new users. [Read more...](docs/introduce-powershell.md) |
|
||||
| [list-aliases.ps1](scripts/list-aliases.ps1) | Lists all PowerShell aliases. [Read more...](docs/list-aliases.md) |
|
||||
| [list-automatic-variables.ps1](scripts/list-automatic-variables.ps1) | Lists the automatic variables of PowerShell. [Read more...](docs/list-automatic-variables.md)|
|
||||
| [list-cheat-sheet.ps1](scripts/list-cheat-sheet.ps1) | Lists the PowerShell cheat sheet. [Read more...](docs/list-cheat-sheet.md) |
|
||||
| [list-cmdlets.ps1](scripts/list-cmdlets.ps1) | Lists the PowerShell cmdlets. [Read more...](docs/list-cmdlets.md) |
|
||||
| [list-console-colors.ps1](scripts/list-console-colors.ps1) | Lists all console colors. [Read more...](docs/list-console-colors.md) |
|
||||
| [list-modules.ps1](scripts/list-modules.ps1) | Lists the PowerShell modules. [Read more...](docs/list-modules.md) |
|
||||
| [list-profiles.ps1](scripts/list-profiles.ps1) | Lists your PowerShell profiles. [Read more...](docs/list-profiles.md) |
|
||||
| [list-scripts.ps1](scripts/list-scripts.ps1) | Lists all PowerShell scripts in this repository. [Read more...](docs/list-scripts.md) |
|
||||
| [new-script.ps1](scripts/new-script.ps1) | Creates a new PowerShell script. [Read more...](docs/new-script.md) |
|
||||
| [set-profile.ps1](scripts/set-profile.ps1) | Updates your PowerShell user profile. [Read more...](docs/set-profile.md) |
|
||||
| [daily-tasks.sh](scripts/daily-tasks.sh) | Execute PowerShell scripts automatically as daily tasks (Linux only). [Read more »](docs/daily-tasks.sh.md) |
|
||||
| [introduce-powershell.ps1](scripts/introduce-powershell.ps1) | Introduces PowerShell to new users. [More »](docs/introduce-powershell.md) |
|
||||
| [list-aliases.ps1](scripts/list-aliases.ps1) | Lists all PowerShell aliases. [More »](docs/list-aliases.md) |
|
||||
| [list-automatic-variables.ps1](scripts/list-automatic-variables.ps1) | Lists the automatic variables of PowerShell. [More »](docs/list-automatic-variables.md)|
|
||||
| [list-cheat-sheet.ps1](scripts/list-cheat-sheet.ps1) | Lists the PowerShell cheat sheet. [More »](docs/list-cheat-sheet.md) |
|
||||
| [list-cmdlets.ps1](scripts/list-cmdlets.ps1) | Lists the PowerShell cmdlets. [More »](docs/list-cmdlets.md) |
|
||||
| [list-console-colors.ps1](scripts/list-console-colors.ps1) | Lists all console colors. [More »](docs/list-console-colors.md) |
|
||||
| [list-modules.ps1](scripts/list-modules.ps1) | Lists the PowerShell modules. [More »](docs/list-modules.md) |
|
||||
| [list-profiles.ps1](scripts/list-profiles.ps1) | Lists your PowerShell profiles. [More »](docs/list-profiles.md) |
|
||||
| [list-scripts.ps1](scripts/list-scripts.ps1) | Lists all PowerShell scripts in this repository. [More »](docs/list-scripts.md) |
|
||||
| [new-script.ps1](scripts/new-script.ps1) | Creates a new PowerShell script. [More »](docs/new-script.md) |
|
||||
| [set-profile.ps1](scripts/set-profile.ps1) | Updates your PowerShell user profile. [More »](docs/set-profile.md) |
|
||||
|
||||
🛒 Various PowerShell Scripts
|
||||
------------------------------
|
||||
|
||||
| Script | Description |
|
||||
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
|
||||
| [add-memo.ps1](scripts/add-memo.ps1) | Adds the given memo text to $HOME/Memos.csv. [Read more...](docs/add-memo.md) |
|
||||
| [check-ipv4-address.ps1](scripts/check-ipv4-address.ps1)| Checks the given IPv4 address for validity. [Read more...](docs/check-ipv4-address.md) |
|
||||
| [check-ipv6-address.ps1](scripts/check-ipv6-address.ps1)| Checks the given IPv6 address for validity. [Read more...](docs/check-ipv6-address.md) |
|
||||
| [check-mac-address.ps1](scripts/check-mac-address.ps1)| Checks the given MAC address for validity. [Read more...](docs/check-mac-address.md) |
|
||||
| [check-subnet-mask.ps1](scripts/check-subnet-mask.ps1)| Checks the given subnet mask for validity. [Read more...](docs/check-subnet-mask.md) |
|
||||
| [check-weather.ps1](scripts/check-weather.ps1) | Checks the current weather for critical values. [Read more...](docs/check-weather.md) |
|
||||
| [display-time.ps1](scripts/display-time.ps1) | Displays the current time for 10 seconds by default. [Read more...](docs/display-time.md) |
|
||||
| [list-anagrams.ps1](scripts/list-anagrams.ps1) | Lists all anagrams of the given word. [Read more...](docs/list-anagrams.md) |
|
||||
| [list-city-weather.ps1](scripts/list-city-weather.ps1)| Lists the current weather of cities worldwide (west to east). [Read more...](docs/list-city-weather.md) |
|
||||
| [list-countries.ps1](scripts/list-countries.ps1) | Lists details of all countries. [Read more...](docs/list-countries.md) |
|
||||
| [list-credits.ps1](scripts/list-credits.ps1) | Shows the credits. [Read more...](docs/list-credits.md) |
|
||||
| [list-crypto-rates.ps1](scripts/list-crypto-rates.ps1)| Lists the current crypto exchange rates. [Read more...](docs/list-crypto-rates.md) |
|
||||
| [list-environment-variables.ps1](scripts/list-environment-variables.ps1)| Lists all environment variables. [Read more...](docs/list-environment-variables.md)|
|
||||
| [list-emojis.ps1](scripts/list-emojis.ps1) | Lists the emojis of Unicode 13.0. [Read more...](docs/list-emojis.md) |
|
||||
| [list-fritzbox-calls.ps1](scripts/list-fritzbox-calls.ps1)| Lists the FRITZ!Box calls. [Read more...](docs/list-fritzbox-calls.md) |
|
||||
| [list-fritzbox-devices.ps1](scripts/list-fritzbox-devices.ps1)| Lists FRITZ!Box's known devices. [Read more...](docs/list-fritzbox-devices.md) |
|
||||
| [list-earthquakes.ps1](scripts/list-earthquakes.ps1) | Lists earthquakes with magnitude >= 6.0 for the last 30 days. [Read more...](docs/list-earthquakes.md) |
|
||||
| [list-exchange-rates.ps1](scripts/list-exchange-rates.ps1)| Lists the current exchange rates for the given currency. [Read more...](docs/list-exchange-rates.md) |
|
||||
| [list-memos.ps1](scripts/list-memos.ps1) | Lists the memos at $HOME/Memos.csv. [Read more...](docs/list-memos.md) |
|
||||
| [list-mysql-tables.ps1](scripts/list-mysql-tables.ps1)| Lists the MySQL server tables. [Read more...](docs/list-mysql-tables.md) |
|
||||
| [list-news.ps1](scripts/list-news.ps1) | Lists the latest news. [Read more...](docs/list-news.md) |
|
||||
| [list-os-releases.ps1](scripts/list-os-releases.ps1) | Lists operating system releases and download URL. [Read more...](docs/list-os-releases.md) |
|
||||
| [list-os-updates.ps1](scripts/list-os-updates.ps1) | Lists operating system updates. [Read more...](docs/list-os-updates.md) |
|
||||
| [list-passwords.ps1](scripts/list-passwords.ps1) | Prints a list of random passwords. [Read more...](docs/list-passwords.md) |
|
||||
| [list-pins.ps1](scripts/list-pins.ps1) | Prints a list of random PIN's. [Read more...](docs/list-pins.md) |
|
||||
| [list-sql-tables.ps1](scripts/list-sql-tables.ps1) | Lists the SQL server tables. [Read more...](docs/list-sql-tables.md) |
|
||||
| [list-tiobe-index.ps1](scripts/list-tiobe-index.ps1) | Lists the TIOBE index of top programming languages. [Read more...](docs/list-tiobe-index.md) |
|
||||
| [list-weather.ps1](scripts/list-weather.ps1) | Lists the hourly weather. [Read more...](docs/list-weather.md) |
|
||||
| [locate-city.ps1](scripts/locate-city.ps1) | Prints the geographic location of the given city. [Read more...](docs/locate-city.md) |
|
||||
| [locate-ipaddress.ps1](scripts/locate-ipaddress.ps1) | Prints the geographic location of the given IP address. [Read more...](docs/locate-ipaddress.md) |
|
||||
| [locate-zip-code.ps1](scripts/locate-zip-code.ps1) | Prints the geographic location of the given zip-code. [Read more...](docs/locate-zip-code.md) |
|
||||
| [moon.ps1](scripts/moon.ps1) | Prints the current moon phase. [Read more...](docs/moon.md) |
|
||||
| [new-qrcode.ps1](scripts/new-qrcode.ps1) | Generates a new QR code image file. [Read more...](docs/new-qrcode.md) |
|
||||
| [reboot-fritzbox.ps1](scripts/reboot-fritzbox.ps1) | Reboots the FRITZ!box device. [Read more...](docs/reboot-fritzbox.md) |
|
||||
| [scan-ports.ps1](scripts/scan-ports.ps1) | Scans the network for open/closed ports. [Read more...](docs/scan-ports.md) |
|
||||
| [send-email.ps1](scripts/send-email.ps1) | Sends an email message. [Read more...](docs/send-email.md) |
|
||||
| [send-tcp.ps1](scripts/send-udp.ps1) | Sends a TCP message to the given IP address and port. [Read more...](docs/send-tcp.md) |
|
||||
| [send-udp.ps1](scripts/send-udp.ps1) | Sends a UDP datagram message to the given IP address and port. [Read more...](docs/send-udp.md) |
|
||||
| [set-timer.ps1](scripts/set-timer.ps1) | Sets a timer for a countdown. [Read more...](docs/set-timer.md) |
|
||||
| [simulate-presence.ps1](scripts/simulate-presence.ps1)| Simulates the human presence against burglars. [Read more...](docs/simulate-presence.md) |
|
||||
| [start-calibre-server.ps1](scripts/start-calibre-server.ps1)| Starts a local Calibre server. [Read more...](docs/start-calibre-server.md) |
|
||||
| [start-ipfs-server.ps1](scripts/start-ipfs-server.ps1)| Starts a local IPFS server. [Read more...](docs/start-ipfs-server.md) |
|
||||
| [switch-shelly1.ps1](scripts/switch-shelly1.ps1) | Switches a Shelly1 device in the local network. [Read more...](docs/switch-shelly1.md) |
|
||||
| [translate-file.ps1](scripts/translate-file.ps1) | Translates the given text file into other languages. [Read more...](docs/translate-file.md) |
|
||||
| [translate-files.ps1](scripts/translate-files.ps1) | Translates the given text files into any supported language. [Read more...](docs/translate-files.md) |
|
||||
| [translate-text.ps1](scripts/translate-text.ps1) | Translates the given text in English into other languages. [Read more...](docs/translate-text.md) |
|
||||
| [weather.ps1](scripts/weather.ps1) | Prints the current weather forecast. [Read more...](docs/weather.md) |
|
||||
| [weather-report.ps1](scripts/weather-report.ps1) | Prints the local weather report. [Read more...](docs/weather-report.md) |
|
||||
| [what-is.ps1](scripts/what-is.ps1) | Prints a description of the given abbreviation. [Read more...](docs/what-is.md) |
|
||||
| [write-animated.ps1](scripts/write-animated.ps1) | Writes animated text. [Read more...](docs/write-animated.md) |
|
||||
| [write-big.ps1](scripts/write-big.ps1) | Writes the given text in big letters. [Read more...](docs/write-big.md) |
|
||||
| [write-blue.ps1](scripts/write-blue.ps1) | Writes the given text in a blue foreground color. [Read more...](docs/write-blue.md) |
|
||||
| [write-braille.ps1](scripts/write-braille.ps1) | Writes the given text in Braille. [Read more...](docs/write-braille.md) |
|
||||
| [write-calendar.ps1](scripts/write-calendar.ps1) | Writes the calendar (month of year). [Read more...](docs/write-calendar.md) |
|
||||
| [write-green.ps1](scripts/write-green.ps1) | Writes the given text in a green foreground color. [Read more...](docs/write-green.md) |
|
||||
| [write-joke.ps1](scripts/write-joke.ps1) | Writes a random Juck Norris joke. [Read more...](docs/write-joke.md) |
|
||||
| [write-lowercase.ps1](scripts/write-lowercase.ps1) | Writes the given text in lowercase letters. [Read more...](docs/write-lowercase.md) |
|
||||
| [write-marquee.ps1](scripts/write-marquee.ps1) | Writes the given text as marquee. [Read more...](docs/write-marquee.md) |
|
||||
| [write-morse-code.ps1](scripts/write-morse-code.ps1) | Writes the given text in Morse code. [Read more...](docs/write-morse-code.md) |
|
||||
| [write-motd.ps1](scripts/write-motd.ps1) | Writes the message of the day (MOTD). [Read more...](docs/write-motd.md) |
|
||||
| [write-quote.ps1](scripts/write-quote.ps1) | Writes a random quote. [Read more...](docs/write-quote.md) |
|
||||
| [write-red.ps1](scripts/write-red.ps1) | Writes the given text in a red foreground color. [Read more...](docs/write-red.md) |
|
||||
| [write-rot13.ps1](scripts/write-rot13.ps1) | Encodes or decodes the given text with ROT13. [Read more...](docs/write-rot13.md) |
|
||||
| [write-typewriter.ps1](scripts/write-typewriter.ps1) | Writes the given text with the typewriter effect. [Read more...](docs/write-typewriter.md) |
|
||||
| [write-uppercase.ps1](scripts/write-uppercase.ps1) | Writes the given text in uppercase letters. [Read more...](docs/write-uppercase.md) |
|
||||
| [write-vertical.ps1](scripts/write-vertical.ps1) | Writes the given text in vertical direction. [Read more...](docs/write-vertical.md) |
|
||||
| Script | Description |
|
||||
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
|
||||
| [add-memo.ps1](scripts/add-memo.ps1) | Adds the given memo text to $HOME/Memos.csv. [Read more »](docs/add-memo.md) |
|
||||
| [check-ipv4-address.ps1](scripts/check-ipv4-address.ps1) | Checks the given IPv4 address for validity. [More »](docs/check-ipv4-address.md) |
|
||||
| [check-ipv6-address.ps1](scripts/check-ipv6-address.ps1) | Checks the given IPv6 address for validity. [More »](docs/check-ipv6-address.md) |
|
||||
| [check-mac-address.ps1](scripts/check-mac-address.ps1) | Checks the given MAC address for validity. [More »](docs/check-mac-address.md) |
|
||||
| [check-subnet-mask.ps1](scripts/check-subnet-mask.ps1) | Checks the given subnet mask for validity. [More »](docs/check-subnet-mask.md) |
|
||||
| [check-weather.ps1](scripts/check-weather.ps1) | Checks the current weather for critical values. [More »](docs/check-weather.md) |
|
||||
| [display-time.ps1](scripts/display-time.ps1) | Displays the current time for 10 seconds by default. [Read more...](docs/display-time.md) |
|
||||
| [list-anagrams.ps1](scripts/list-anagrams.ps1) | Lists all anagrams of the given word. [Read more...](docs/list-anagrams.md) |
|
||||
| [list-city-weather.ps1](scripts/list-city-weather.ps1) | Lists the current weather of cities worldwide (west to east). [Read more...](docs/list-city-weather.md) |
|
||||
| [list-countries.ps1](scripts/list-countries.ps1) | Lists details of all countries. [Read more...](docs/list-countries.md) |
|
||||
| [list-credits.ps1](scripts/list-credits.ps1) | Shows the credits. [Read more...](docs/list-credits.md) |
|
||||
| [list-crypto-rates.ps1](scripts/list-crypto-rates.ps1) | Lists the current crypto exchange rates. [Read more...](docs/list-crypto-rates.md) |
|
||||
| [list-environment-variables.ps1](scripts/list-environment-variables.ps1) | Lists all environment variables. [Read more...](docs/list-environment-variables.md) |
|
||||
| [list-emojis.ps1](scripts/list-emojis.ps1) | Lists the emojis of Unicode 13.0. [Read more...](docs/list-emojis.md) |
|
||||
| [list-fritzbox-calls.ps1](scripts/list-fritzbox-calls.ps1) | Lists the FRITZ!Box calls. [Read more...](docs/list-fritzbox-calls.md) |
|
||||
| [list-fritzbox-devices.ps1](scripts/list-fritzbox-devices.ps1) | Lists FRITZ!Box's known devices. [Read more...](docs/list-fritzbox-devices.md) |
|
||||
| [list-earthquakes.ps1](scripts/list-earthquakes.ps1) | Lists earthquakes with magnitude >= 6.0 for the last 30 days. [Read more...](docs/list-earthquakes.md) |
|
||||
| [list-exchange-rates.ps1](scripts/list-exchange-rates.ps1) | Lists the current exchange rates for the given currency. [Read more...](docs/list-exchange-rates.md) |
|
||||
| [list-memos.ps1](scripts/list-memos.ps1) | Lists the memos at $HOME/Memos.csv. [Read more...](docs/list-memos.md) |
|
||||
| [list-mysql-tables.ps1](scripts/list-mysql-tables.ps1) | Lists the MySQL server tables. [Read more...](docs/list-mysql-tables.md) |
|
||||
| [list-news.ps1](scripts/list-news.ps1) | Lists the latest news. [Read more...](docs/list-news.md) |
|
||||
| [list-os-releases.ps1](scripts/list-os-releases.ps1) | Lists operating system releases and download URL. [Read more...](docs/list-os-releases.md) |
|
||||
| [list-os-updates.ps1](scripts/list-os-updates.ps1) | Lists operating system updates. [Read more...](docs/list-os-updates.md) |
|
||||
| [list-passwords.ps1](scripts/list-passwords.ps1) | Prints a list of random passwords. [Read more...](docs/list-passwords.md) |
|
||||
| [list-pins.ps1](scripts/list-pins.ps1) | Prints a list of random PIN's. [Read more...](docs/list-pins.md) |
|
||||
| [list-sql-tables.ps1](scripts/list-sql-tables.ps1) | Lists the SQL server tables. [Read more...](docs/list-sql-tables.md) |
|
||||
| [list-tiobe-index.ps1](scripts/list-tiobe-index.ps1) | Lists the TIOBE index of top programming languages. [Read more...](docs/list-tiobe-index.md) |
|
||||
| [list-weather.ps1](scripts/list-weather.ps1) | Lists the hourly weather. [Read more...](docs/list-weather.md) |
|
||||
| [locate-city.ps1](scripts/locate-city.ps1) | Prints the geographic location of the given city. [Read more...](docs/locate-city.md) |
|
||||
| [locate-ipaddress.ps1](scripts/locate-ipaddress.ps1) | Prints the geographic location of the given IP address. [Read more...](docs/locate-ipaddress.md) |
|
||||
| [locate-zip-code.ps1](scripts/locate-zip-code.ps1) | Prints the geographic location of the given zip-code. [Read more...](docs/locate-zip-code.md) |
|
||||
| [moon.ps1](scripts/moon.ps1) | Prints the current moon phase. [Read more...](docs/moon.md) |
|
||||
| [new-qrcode.ps1](scripts/new-qrcode.ps1) | Generates a new QR code image file. [Read more...](docs/new-qrcode.md) |
|
||||
| [reboot-fritzbox.ps1](scripts/reboot-fritzbox.ps1) | Reboots the FRITZ!box device. [Read more...](docs/reboot-fritzbox.md) |
|
||||
| [scan-ports.ps1](scripts/scan-ports.ps1) | Scans the network for open/closed ports. [Read more...](docs/scan-ports.md) |
|
||||
| [send-email.ps1](scripts/send-email.ps1) | Sends an email message. [Read more...](docs/send-email.md) |
|
||||
| [send-tcp.ps1](scripts/send-udp.ps1) | Sends a TCP message to the given IP address and port. [Read more...](docs/send-tcp.md) |
|
||||
| [send-udp.ps1](scripts/send-udp.ps1) | Sends a UDP datagram message to the given IP address and port. [Read more...](docs/send-udp.md) |
|
||||
| [set-timer.ps1](scripts/set-timer.ps1) | Sets a timer for a countdown. [Read more...](docs/set-timer.md) |
|
||||
| [simulate-presence.ps1](scripts/simulate-presence.ps1) | Simulates the human presence against burglars. [Read more...](docs/simulate-presence.md) |
|
||||
| [start-calibre-server.ps1](scripts/start-calibre-server.ps1) | Starts a local Calibre server. [Read more...](docs/start-calibre-server.md) |
|
||||
| [start-ipfs-server.ps1](scripts/start-ipfs-server.ps1) | Starts a local IPFS server. [Read more...](docs/start-ipfs-server.md) |
|
||||
| [switch-shelly1.ps1](scripts/switch-shelly1.ps1) | Switches a Shelly1 device in the local network. [Read more...](docs/switch-shelly1.md) |
|
||||
| [translate-file.ps1](scripts/translate-file.ps1) | Translates the given text file into other languages. [Read more...](docs/translate-file.md) |
|
||||
| [translate-files.ps1](scripts/translate-files.ps1) | Translates the given text files into any supported language. [Read more...](docs/translate-files.md) |
|
||||
| [translate-text.ps1](scripts/translate-text.ps1) | Translates the given text in English into other languages. [Read more...](docs/translate-text.md) |
|
||||
| [weather.ps1](scripts/weather.ps1) | Prints the current weather forecast. [Read more...](docs/weather.md) |
|
||||
| [weather-report.ps1](scripts/weather-report.ps1) | Prints the local weather report. [Read more...](docs/weather-report.md) |
|
||||
| [what-is.ps1](scripts/what-is.ps1) | Prints a description of the given abbreviation. [Read more...](docs/what-is.md) |
|
||||
| [write-animated.ps1](scripts/write-animated.ps1) | Writes animated text. [Read more...](docs/write-animated.md) |
|
||||
| [write-big.ps1](scripts/write-big.ps1) | Writes the given text in big letters. [Read more...](docs/write-big.md) |
|
||||
| [write-blue.ps1](scripts/write-blue.ps1) | Writes the given text in a blue foreground color. [Read more...](docs/write-blue.md) |
|
||||
| [write-braille.ps1](scripts/write-braille.ps1) | Writes the given text in Braille. [Read more...](docs/write-braille.md) |
|
||||
| [write-calendar.ps1](scripts/write-calendar.ps1) | Writes the calendar (month of year). [Read more...](docs/write-calendar.md) |
|
||||
| [write-green.ps1](scripts/write-green.ps1) | Writes the given text in a green foreground color. [Read more...](docs/write-green.md) |
|
||||
| [write-joke.ps1](scripts/write-joke.ps1) | Writes a random Juck Norris joke. [Read more...](docs/write-joke.md) |
|
||||
| [write-lowercase.ps1](scripts/write-lowercase.ps1) | Writes the given text in lowercase letters. [Read more...](docs/write-lowercase.md) |
|
||||
| [write-marquee.ps1](scripts/write-marquee.ps1) | Writes the given text as marquee. [Read more...](docs/write-marquee.md) |
|
||||
| [write-morse-code.ps1](scripts/write-morse-code.ps1) | Writes the given text in Morse code. [Read more...](docs/write-morse-code.md) |
|
||||
| [write-motd.ps1](scripts/write-motd.ps1) | Writes the message of the day (MOTD). [Read more...](docs/write-motd.md) |
|
||||
| [write-quote.ps1](scripts/write-quote.ps1) | Writes a random quote. [Read more...](docs/write-quote.md) |
|
||||
| [write-red.ps1](scripts/write-red.ps1) | Writes the given text in a red foreground color. [Read more...](docs/write-red.md) |
|
||||
| [write-rot13.ps1](scripts/write-rot13.ps1) | Encodes or decodes the given text with ROT13. [Read more...](docs/write-rot13.md) |
|
||||
| [write-typewriter.ps1](scripts/write-typewriter.ps1) | Writes the given text with the typewriter effect. [More »](docs/write-typewriter.md) |
|
||||
| [write-uppercase.ps1](scripts/write-uppercase.ps1) | Writes the given text in uppercase letters. [More »](docs/write-uppercase.md) |
|
||||
| [write-vertical.ps1](scripts/write-vertical.ps1) | Writes the given text in vertical direction. [More »](docs/write-vertical.md) |
|
||||
| [show-notification-motivation-quote.ps1](scripts/show-notification-motivation-quote.ps1) | Show notification with random cat picture and motivation quote. [More »](docs/show-notification-motivation-quote.md) |
|
||||
|
||||
📧 Feedback
|
||||
------------
|
||||
|
18
data/Jenkinsfile
vendored
18
data/Jenkinsfile
vendored
@ -1,18 +0,0 @@
|
||||
pipeline { // requires Jenkins plugin 'PowerShell'
|
||||
agent any // job may run on any Jenkins node
|
||||
stages {
|
||||
stage ('Cleanup') {
|
||||
steps {
|
||||
echo "Pulled from ${env.GIT_URL}, branch ${env.GIT_BRANCH}, commit {$env.GIT_COMMIT} ..."
|
||||
sh 'git clean -xdf'
|
||||
sh 'git status'
|
||||
}
|
||||
}
|
||||
stage ('Health Check') {
|
||||
steps {
|
||||
echo "Starting build #${env.BUILD_NUMBER} on ${env.NODE_NAME} node ..."
|
||||
powershell './scripts/check-health.ps1'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -4,11 +4,11 @@ APPLICATION, CATEGORY, APPID,
|
||||
"CrystalDiskInfo", "HDD/SSD utility", "XP8K4RGX25G3GM",
|
||||
"CMake", "build utility", "Kitware.CMake",
|
||||
"Dopamine", "audio player", "Digimezzo.Dopamine.2",
|
||||
"Dropbox", "file sync", "Dropbox.Dropbox",
|
||||
"Dropbox", "file sync", "9NK4T08DHQ80",
|
||||
"Git Extensions", "Git client", "GitExtensionsTeam.GitExtensions",
|
||||
"Git for Windows", "source code management", "Git.Git",
|
||||
"Google Chrome", "web browser", "Google.Chrome",
|
||||
"Greenshot", "screenshot utility", "Greenshot.Greenshot",
|
||||
"Greenshot", "screenshot utility", "9N8Z6RQX8LV8",
|
||||
"grepWin", "search tool", "StefansTools.grepWin",
|
||||
"inSSIDer", "Wifi tool", "MetaGeek.inSSIDer",
|
||||
"IrfanView", "image viewer", "9PJZ3BTL5PV6",
|
||||
@ -18,7 +18,7 @@ APPLICATION, CATEGORY, APPID,
|
||||
"LibreOffice", "office suite", "TheDocumentFoundation.LibreOffice",
|
||||
"Microsoft Teams", "messenger", "XP8BT8DW290MPQ",
|
||||
"Mozilla Firefox", "web browser", "9NZVDKPMR9RD",
|
||||
"Mozilla Thunderbird", "email client", "Mozilla.Thunderbird",
|
||||
"Mozilla Thunderbird", "email client", "9PM5VM1S3VMQ",
|
||||
"Mp3tag", "MP3 tag editor", "9NN77TCQ1NC8",
|
||||
"Nearby Share", "file sync", "Google.NearbyShare",
|
||||
"Netflix", "video player", "9WZDNCRFJ3TJ",
|
||||
@ -36,4 +36,4 @@ APPLICATION, CATEGORY, APPID,
|
||||
"VLC", "video player", "XPDM1ZW6815MQM",
|
||||
"Windows Terminal", "console terminal", "9N0DX20HK701",
|
||||
"WhatsApp", "messenger", "9NKSQGP7F2NH",
|
||||
"Zoom", "video conference software", "Zoom.Zoom",
|
||||
"Zoom Workplace", "video conference software", "XP99J3KP4XZ4VV",
|
||||
|
|
7
data/checklists/handwashing.md
Normal file
7
data/checklists/handwashing.md
Normal file
@ -0,0 +1,7 @@
|
||||
The Handwashing Checklist
|
||||
=========================
|
||||
- [ ] Wet your hands with clean, running water (warm or cold), turn off the tap, and apply soap.
|
||||
- [ ] Lather your hands by rubbing them together with the soap. Lather the backs of your hands, between your fingers, and under your nails.
|
||||
- [ ] Scrub your hands for at least 20 seconds.
|
||||
- [ ] Rinse your hands well under clean, running water.
|
||||
- [ ] Dry your hands using a clean towel or air dry them.
|
@ -1,6 +0,0 @@
|
||||
HEAD Handwashing
|
||||
Wet your hands with clean, running water (warm or cold), turn off the tap, and apply soap.
|
||||
Lather your hands by rubbing them together with the soap. Lather the backs of your hands, between your fingers, and under your nails.
|
||||
Scrub your hands for at least 20 seconds.
|
||||
Rinse your hands well under clean, running water.
|
||||
Dry your hands using a clean towel or air dry them.
|
81
data/checklists/travel_packing.md
Normal file
81
data/checklists/travel_packing.md
Normal file
@ -0,0 +1,81 @@
|
||||
# The Travel Packing Checklist
|
||||
|
||||
## At first the absolute necessities:
|
||||
|
||||
- [ ] Passport: Your gateway to international travel.
|
||||
|
||||
- [ ] Wallet: For your cash, cards, and identification.
|
||||
- [ ] Cash: Have some local currency on hand for immediate expenses.
|
||||
- [ ] Credit/Debit Cards: For larger transactions and emergencies.
|
||||
- [ ] Phone: Your communication lifeline and entertainment hub.
|
||||
- [ ] Phone Charger: Don't let your battery die on you.
|
||||
- [ ] Travel Itinerary: Keep your schedule organized.
|
||||
- [ ] Sunglasses: Protect your eyes and look stylish.
|
||||
- [ ] Keys: For your home, car, or luggage locks.
|
||||
- [ ] Clothing: Dress for Success and Comfort
|
||||
|
||||
## Pack a versatile wardrobe for any occasion:
|
||||
|
||||
- [ ] Tops: T-shirts for casual days, dress shirts for formal events, and sweaters/jackets for warmth.
|
||||
|
||||
- [ ] Bottoms: Jeans for everyday wear, trousers for dressier occasions, and shorts for warmer climates.
|
||||
- [ ] Swimwear: If you're headed to the beach or pool.
|
||||
- [ ] Undergarments: Don't forget your underwear and socks!
|
||||
- [ ] Footwear: Casual shoes, formal shoes, sandals, and running shoes for various activities.
|
||||
- [ ] Accessories: The Finishing Touches
|
||||
|
||||
## Complete your look with these essentials:
|
||||
|
||||
- [ ] Belt: To hold up your pants and add a touch of style.
|
||||
|
||||
- [ ] Watch: To keep track of time and accessorize.
|
||||
- [ ] Hat/Cap: For sun protection or a fashion statement.
|
||||
- [ ] Tie: If you have formal events planned.
|
||||
- [ ] Cufflinks: For a sophisticated touch with dress shirts.
|
||||
- [ ] Toiletries: Stay Fresh and Clean
|
||||
|
||||
## Maintain your personal hygiene on the go:
|
||||
|
||||
- [ ] Toothbrush/Toothpaste: For a bright smile.
|
||||
|
||||
- [ ] Deodorant: Stay smelling fresh.
|
||||
- [ ] Shampoo/Conditioner: Keep your hair clean and healthy.
|
||||
- [ ] Soap: For a refreshing shower or bath.
|
||||
- [ ] Shaving Kit: If you prefer a clean-shaven look.
|
||||
- [ ] Nail Clipper: For grooming on the go.
|
||||
- [ ] Health and Wellness: Stay Prepared
|
||||
|
||||
Prioritize your well-being with these essentials:
|
||||
|
||||
- [ ] Prescription Medications: Don't forget any vital prescriptions.
|
||||
|
||||
- [ ] Pain Relievers: For unexpected headaches or aches.
|
||||
- [ ] Vitamins/Supplements: Maintain your health on the road.
|
||||
- [ ] First Aid Kit: For minor cuts, scrapes, or injuries.
|
||||
- [ ] Tech Gadgets: Stay Connected and Entertained
|
||||
|
||||
Bring along your tech essentials:
|
||||
|
||||
- [ ] Laptop/Charger: For work or entertainment.
|
||||
|
||||
- [ ] Tablet/Charger: For reading, browsing, or watching videos.
|
||||
- [ ] Earphones/Headphones: For music, podcasts, or privacy.
|
||||
- [ ] Power Bank: Keep your devices charged on the go.
|
||||
- [ ] Documents: Important Paperwork
|
||||
|
||||
Ensure you have all necessary documents:
|
||||
|
||||
- [ ] Travel Insurance: For peace of mind in case of unforeseen events.
|
||||
|
||||
- [ ] Tickets (Flight/Train/Bus): Don't forget your travel documents.
|
||||
- [ ] Hotel Reservations: Keep your accommodation details handy.
|
||||
- [ ] Emergency Contacts: In case you need to reach out to someone.
|
||||
- [ ] Miscellaneous: The Extras
|
||||
|
||||
These items can enhance your travel experience:
|
||||
|
||||
- [ ] Books/Magazines: For entertainment during downtime.
|
||||
- [ ] Snacks: Keep your hunger at bay between meals.
|
||||
- [ ] Reusable Water Bottle: Stay hydrated and reduce waste.
|
||||
- [ ] Travel Pillow: For comfort during long journeys.
|
||||
- [ ] Umbrella: Be prepared for unexpected rain.
|
File diff suppressed because it is too large
Load Diff
@ -241,8 +241,8 @@ LPO,"La Silla Paranal Observatory"
|
||||
LSM,Local Staff Members
|
||||
LSP,"La Silla Paranal Subcommittee"
|
||||
LTAO,Laser Tomography Adaptive Optics
|
||||
LTC,Coordinated Lunar Time
|
||||
LVSM,Large Visible Sensor Module
|
||||
M#,"Mirror #"
|
||||
M,"million/1,000,000"
|
||||
MACAO,Multiple Application Curvature Adaptive Optic
|
||||
MACCON,Motion controller manufacturer
|
||||
@ -275,6 +275,7 @@ MPG,Max-Planck-Gesellschaft
|
||||
MPIA,Max Planck Institute for Astronomy
|
||||
MPIfR,Max-Planck Institute for Radioastronomy (Germany)
|
||||
MS,Member State(s)
|
||||
MTC,Coordinated Mars Time
|
||||
MTM,"MT Mechatronics (European company of high technology, engineering and maintenance services)"
|
||||
MUSE,Multi Unit Spectroscopic Explorer (VLT)
|
||||
NACO,NAOS-CONICA (VLT)
|
||||
@ -296,6 +297,7 @@ NINS,National Institutes of Natural Sciences
|
||||
NIRPS,(NNT) Near Infra Red Planet Searcher
|
||||
NOVA,The Netherlands Research School for Astronomy (Nederlandse Onderzoekschool voor Astronomie)
|
||||
NRAO,National Radio Astronomy Observatory
|
||||
NRQZ,(U.S.) National Radio Quiet Zone
|
||||
NSF,National Science Foundation
|
||||
NTT,New Technology Telescope
|
||||
NUVA,Network for UltraViolet Astrophysics
|
||||
@ -388,6 +390,7 @@ SSWG,Science Strategy Working Group
|
||||
SSS,Surrey Space Centre
|
||||
ST-ECF,Space Telescope European Coordination Facility
|
||||
STC,Scientific Technical Committee
|
||||
STEVE,Strong Thermal Emission Velocity Enhancement (an atmospheric optical phenomenon)
|
||||
STFC,Science and Technology Facilities Council (UK)
|
||||
STRAP,Tip-tilt sensors (VLTI)
|
||||
STScI,Space Telescope Science Institute (USA)
|
||||
|
|
@ -1,5 +1,7 @@
|
||||
TERM,MEANING
|
||||
3P,"Perceive, Process, Perform"
|
||||
5ANNC,Five Letter Alpha Numeric Code
|
||||
5LNC,Five Letter Naming Code
|
||||
5P,"Plan, Plane, Pilot, Passengers, Programming"
|
||||
7500,"Transponder code for Aircraft hijacking (ICAO)"
|
||||
7600,"Transponder code for Radio failure (lost communications, ICAO)"
|
||||
@ -41,7 +43,7 @@ ACARS,Aircraft Communications Addressing and Reporting System
|
||||
ACAS,Airborne Collision Avoidance System
|
||||
ACC,Area Control Center
|
||||
ACE,Airport airside Capacity Enhancement
|
||||
ACI,Airports Council International
|
||||
ACI,"Airports Council International, Area of Common Interest"
|
||||
ACP,Accept
|
||||
AD,Air Defence
|
||||
ADAC,Abu Dhabi Airports
|
||||
@ -122,12 +124,12 @@ AOCC,Atlantic Operations Control Center
|
||||
AODR,Authorizing Official Designated Representative
|
||||
AOM,Airplane Operating Manual
|
||||
AOPA,Aircraft Owners and Pilots Association
|
||||
AOR,Area of Responsibility
|
||||
AoR,Area of Responsibility
|
||||
AP,Acquisition Plan
|
||||
APB,Acquisition Program Baselines
|
||||
APIS,Aircraft Parking and Information System
|
||||
APM,Approach Path Monitor
|
||||
APP,Approach
|
||||
APP,"Approach Area, Approach ATS Unit"
|
||||
APS,Airport Planning Standard
|
||||
APTS,Automated Personnel Tracking System
|
||||
APU,Auxiliary Power Unit
|
||||
@ -137,6 +139,7 @@ AR,Aspect Ratio
|
||||
ARAC,Army Radar Approach Control (AAF)
|
||||
ARFOR,Area Forecast
|
||||
ARINC,Aeronautical Radio, Inc. (USA)
|
||||
ARNS,Aeronautical Radio Navigation Service
|
||||
ARLNO,Airline Office
|
||||
ARP,Airport Reference Point
|
||||
ARTCC,Air Route Traffic Control Centre
|
||||
@ -156,6 +159,8 @@ ATIS,Automatic Terminal Information Service
|
||||
ATM,"Air Traffic Management, Air Traffic Manager"
|
||||
ATO,Air Traffic Organization
|
||||
ATPL,Airline Transport Pilot License
|
||||
ATS,Air Traffic Services
|
||||
ATZ,Air Traffic Zone
|
||||
AURO,Autorotation (by helicopters)
|
||||
AWACS,Airborne Warning And Control System
|
||||
BC,Back Course
|
||||
@ -184,6 +189,7 @@ CAT,"Category of Aircraft, Clear Air Turbulence"
|
||||
CATC,Civil Air Traffic Control
|
||||
CAVOK,Clouds And Visibility OK
|
||||
C/S,Callsign
|
||||
CBA,Cross-Border Area
|
||||
CBT,Computer-based Training
|
||||
CC,Commander
|
||||
CCBC,Community College Baltimore County
|
||||
@ -192,6 +198,7 @@ CCTLR,Chief Controller
|
||||
CDA,Continuous Descent Approach
|
||||
CDI,Course Deviation Indicator
|
||||
CDM,Collaborative Decision Making
|
||||
CDR,Conditional Route
|
||||
CDTI,Cockpit Display of Traffic Information
|
||||
CDU,Cockpit Display Unit
|
||||
CEATS,Central European Air Traffic Services
|
||||
@ -220,10 +227,11 @@ CPL,Commercial Pilot License
|
||||
CRC,Control and Reporting Centre
|
||||
CRDA,Converging Runway Display Aid
|
||||
CREDOS,Crosswind Reduced Separations for Departure Operations
|
||||
CTA,"Controlled Area, Controlled Time of Arrival"
|
||||
CTA,"Control Area, Controlled Time of Arrival"
|
||||
CTAF,Common Traffic Advisory Frequency
|
||||
CTOT,Calculated Take-Off Time
|
||||
CTR,Control Zone or Controlled Traffic Region
|
||||
CTZ,Control Zone
|
||||
CV,Vice Commander
|
||||
CVFR,Controlled Visual Flight Rule (flight)
|
||||
CVSM,Conventional Vertical Separation Minimum
|
||||
@ -238,9 +246,11 @@ DCIA,Dependent Converging Instrument Approach
|
||||
DECIDE,"Detect, Estimate, Choose, Identify, Do, and Evaluate"
|
||||
DEL,Delivery
|
||||
DER,Departure End of Runway
|
||||
DFL,Division Flight Level
|
||||
DFS,Deutsche Flugsicherung (ATC in Germany)
|
||||
DGAC,Direction Générale de l'Aviation Civile
|
||||
DLA,Defense Logistics Agency
|
||||
DME,Distance Measuring Equipment
|
||||
DP,Departure Procedure
|
||||
DSNA,Direction des Services de la Navigation Aérienne
|
||||
DTI,Direction Technique Innovation
|
||||
@ -252,14 +262,18 @@ ECAC,European Civil Aviation Conference
|
||||
eCTOL,Electric Conventional Take-off and Landing
|
||||
ECP,Entry Control Point
|
||||
EFM,Gesellschaft für Enteisen und Flugzeugschleppen
|
||||
EFPS,Electronic Flight Progress Strips
|
||||
EICAS,Engine Instrument Crew Alerting System
|
||||
ELEV,Field Elevation
|
||||
ELT,Emergency Locator Transmitter
|
||||
ENR,En-Route
|
||||
EOL,Engine-off landing
|
||||
ERAU,Embry-Riddle Aeronautical University (Daytona Beach, Florida)
|
||||
ERPM,Engine Rotations per Minute
|
||||
eSTOL,Electric Short Take-off and Landing
|
||||
ETA,"Estimated Time of Arrival, East Transition Area"
|
||||
ETL,Effective Translational Lift (for helicopters)
|
||||
ETO,Estimated Time Over Significant Point
|
||||
ETOPS,Extended-range Twin-engine Operational Performance Standards
|
||||
ETVS,Electronic Terminal Voice Switch
|
||||
eVTOL,Electric Vertical Take-off and Landing
|
||||
@ -267,6 +281,7 @@ FAA,U.S. Federal Aviation Administration
|
||||
FAR,"Fuel Air Ratio, Federal Aviation Regulations"
|
||||
FAS,Final Approach Segment
|
||||
FAS,Final Approach Speed
|
||||
FASF,French Air and Space Force
|
||||
FAST,Future Aviation Safety Team
|
||||
FAT,Factory Acceptance Test (see also SAT and RAT)
|
||||
FAT,Final Approach Track
|
||||
@ -298,6 +313,7 @@ FOD,Foreign Object Debris
|
||||
FOV,Field of View
|
||||
FWC,Flight Warning Computer
|
||||
GA,"General Aviation, Go Around (VFR)"
|
||||
GAF,German Air Force
|
||||
GND,Ground
|
||||
GP,Glide Path
|
||||
GPS,Global Positioning System
|
||||
@ -312,6 +328,7 @@ IANS,Institute of Air Navigation Services, a division of Eurocontrol
|
||||
IAS,Indicated airspeed
|
||||
IATA,"International Air Transport Association, HQ in Montreal, Canada"
|
||||
ICA,Initial Climb Area
|
||||
ICARD,International Codes and Route Designators
|
||||
IFE,In-flight Emergency
|
||||
IFR,Instrument Flight Rules
|
||||
IG,Image Generator
|
||||
@ -320,6 +337,7 @@ IGLR,Integrated Ground Lighting and Radar
|
||||
ILS,Instrument Landing System
|
||||
ISA,International Standard Atmosphere
|
||||
IMC,Instrument Meteorological Conditions
|
||||
JATO,Jet Assisted Take Off
|
||||
JTAC,Joint Terminal Attack Control
|
||||
KAT,Kaufbeuren ATM Training (DFS subcompany)
|
||||
KCAS,Calibrated AirSpeed in Knots
|
||||
@ -347,6 +365,7 @@ MCP,Maximum Continuous Power
|
||||
MGTOW,Maximum Gross Take-off Weight
|
||||
MLW,Maximum Landing Weight
|
||||
MMR,Multi-Mode Receiver
|
||||
MRTT,Multi-Role Tanker Transport
|
||||
MSA,Minimum Safe Altitude
|
||||
MSL,Median Sea Level
|
||||
MSTA,Minimum Safe Turning Altitude
|
||||
@ -356,23 +375,29 @@ NATOPS,Naval Aviation Training and Operating Procedures Standardization
|
||||
NATS,National Air Traffic Services (UK)
|
||||
NAVAIDS,Navigational Aids
|
||||
NCOIC,Non-Commissioned Officer in Charge
|
||||
NDB,Non-Directional Beacon
|
||||
NIMA,National Imagery Mapping Agency
|
||||
NLFS,Night Low Flying System
|
||||
NM,Nautical Mile
|
||||
NORDO,No Radio
|
||||
NOTAM,Notice to Airmen or Notice to Air Missions
|
||||
NRS,Navigation Reference System
|
||||
NUAIR,Northeast UAS Airspace Integration Research (a New York based nonprofit organization)
|
||||
OCS,Obstacle Clearance Surfaces
|
||||
OCTA,Outside Control Areas
|
||||
OEI,One Engine Inoperative
|
||||
ODP,Obstacle Departure Procedure
|
||||
OGE,Out of Ground Effect
|
||||
OID,Operational Instrument Departure
|
||||
OFZ,Obstacle Free Zone
|
||||
OJT,On the Job Training
|
||||
OODA,"Observation, Orientation, Decision, and Action"
|
||||
ORCAM,Originating Region Code Assignment Method
|
||||
OSC,On Scene Commander
|
||||
OWE,Operational Weight Empty
|
||||
PA,Pressure Altitude
|
||||
PADS,Parallax Aircraft Docking System
|
||||
PANSA,Polish Air Navigation Services Agency
|
||||
PAPA,"Parallax Aircraft Parking Aid (docking system)"
|
||||
PAPI,Precision Approach Path Indicator
|
||||
PAR,Precision Approach Radar
|
||||
@ -393,6 +418,7 @@ RADNET,Radar Network
|
||||
RAIM,Receiver Autonomous Integrity Monitoring (GPS)
|
||||
RAPCON,Radar Approach Control
|
||||
RAT,Reliability Acceptance Test (see also FAT and SAT)
|
||||
RATO,Rocket Assisted Take Off
|
||||
RAM,Royal Air Maroc
|
||||
RAP,Recognised Air Picture
|
||||
RASP,Recognised Air and Surveillance Picture
|
||||
@ -419,15 +445,19 @@ RNAV,Area Navigation
|
||||
RNP,Required Navigation Performance
|
||||
ROC,Rate Of Climb
|
||||
ROC,Required Obstacle Clearance
|
||||
ROKAF,Republic of Korea Air Force
|
||||
RPS,Radar Position Symbol
|
||||
RRPM,Rotor Rotations per Minute
|
||||
RSA,Runway Safety Area
|
||||
RSAF,Republic of Singapore Air Force
|
||||
RSAF,"Republic of Singapore Air Force, Royal Saudi Air Force"
|
||||
RSC,Runway Surface Condition
|
||||
RSI,Remote Status Indicator
|
||||
RSO,Range Safety Officer
|
||||
RSRS,Reduced Same Runway Separation
|
||||
RSU,Runway Supervisory Unit
|
||||
RTAF,Royal Thai Air Force
|
||||
RTCA,Radio Technical Commission for Aeronautics
|
||||
RTF,Radio Telephony
|
||||
RVR,Runway Visual Range
|
||||
RVSM,Reduced Vertical Separation Minimum
|
||||
RWR,Radar Warning Receiver
|
||||
@ -436,6 +466,7 @@ SADL,Situational Awareness Data Link
|
||||
SAF,Sustainable Aviation Fuel
|
||||
SAR,"Search and Rescue, Synthetic Aperture Radar"
|
||||
SARPS,Standards and Recommended Practices (ICAO)
|
||||
SASF,Spanish Air and Space Force
|
||||
SAT,Site Acceptance Test (see also FAT and RAT)
|
||||
SATCO,Senior Air Traffic Control Officer
|
||||
SATCOM,Satellite Communication
|
||||
@ -448,6 +479,7 @@ SELCAL,Selective Calling System
|
||||
SES,Single European Sky
|
||||
SESAME,Single European Sky ATM Master Plan
|
||||
SESAR,Single European Sky ATM Research
|
||||
SFC,Surface
|
||||
SFL,Sequencing Flashing Light
|
||||
SFO,Simulated Flameout Operation
|
||||
SI,Selective Interrogation
|
||||
@ -527,14 +559,17 @@ TOP,Take-Off Power
|
||||
TOR,"Terms of Reference, or Tornado aircraft"
|
||||
TORA,Takeoff Run Available
|
||||
TOWSIM,Tower Simulator
|
||||
TRA,Temporary Reserved Area
|
||||
TRACON,Terminal Radar Approach Control
|
||||
TRH,Thrust Reduction Height
|
||||
TSA,Temporary Segregated Area
|
||||
TSAT,Target Startup Approval Time
|
||||
TSO,Technical Standard Order
|
||||
TSTC,Texas State Technical College
|
||||
TT,True Track
|
||||
TVOR,Terminal VOR
|
||||
TWEB,Transcribed Weather Broadcast (USA for ATIS)
|
||||
TWR,Control Tower or Thrust to Weight Ratio
|
||||
TWR,Aerodrome Control Tower or Thrust to Weight Ratio
|
||||
TWY,Taxiway
|
||||
TXC,Taxiway Centreline Lights
|
||||
TXE,Taxiway Edge Lights
|
||||
@ -552,6 +587,7 @@ UHF,Ultra High Frequency (300MHz to 3 GHz)
|
||||
UIR,Upper Flight Information Region
|
||||
UKCAA,United Kingdom Civil Aviation Authority
|
||||
UMASS,University of Massachusetts
|
||||
UNL,Unlimited
|
||||
URET,User Request Evaluation Tool
|
||||
USAF,United States Air Force
|
||||
UTA,Upper Traffic Area
|
||||
@ -605,3 +641,4 @@ WTC,Wake Turbulence Category
|
||||
WTWS,Wake Turbulence Warning System
|
||||
WX,Weather
|
||||
WXR,Weather Radar Transceiver
|
||||
ZELL,Zero Length Launch
|
||||
|
Can't render this file because it has a wrong number of fields in line 141.
|
@ -8,8 +8,7 @@ AACC,American Association for Clinical Chemistry
|
||||
AADC,Amino Acid DeCarboxylase
|
||||
AADC,Aromatic L-Amino acid DeCarboxylase
|
||||
AAS,Atomic Absorption Spectroscopy
|
||||
AB,Acid Base
|
||||
AB,Acid Bath
|
||||
AB,"Acid Base, Acid Bath"
|
||||
ABCC,Advanced Biomedical Computing Center
|
||||
ABCC,American Board of Clinical Chemistry
|
||||
ABS,"Absorb, Acrylonitrile Butadiene Styrene"
|
||||
@ -317,17 +316,14 @@ G,Gibbs Free Energy
|
||||
G,"Giga prefix (109)"
|
||||
G,"Glycine g,gram"
|
||||
G,Guanosine
|
||||
Ga,Gallium
|
||||
Ga,Gauge
|
||||
Ga,Gallium or Gauge
|
||||
GaF,"Gallium(I)-fluorid"
|
||||
GABA,Gamma-AminoButyric Acid
|
||||
GAD,Glutamate Decarboxylase
|
||||
GAG,Glycosaminoglycan
|
||||
GBB,Gas Blow Back
|
||||
GC,Geiger Counter
|
||||
GCC,Global Carbon Cycle
|
||||
GCC,Global Climate Change
|
||||
GCC,Glucocorticoid
|
||||
GCC,Guanylyl Cyclase C
|
||||
GCC,"Global Carbon Cycle, Global Climate Change, Glucocorticoid, or: Guanylyl Cyclase C"
|
||||
GCMS,Gas Chromatographic Mass Spectrometer
|
||||
Gd,Gadolinium
|
||||
GDP,Guanosine DiPhosphate
|
||||
@ -734,8 +730,7 @@ OV,Organic Vapor
|
||||
OVA,Organic Vapor Analyser
|
||||
OVA,OVAlbumin
|
||||
OWC,Oil-Water Contact
|
||||
OX,Oxidation
|
||||
OX,oxygen
|
||||
OX,"Oxidation, Oxygen"
|
||||
OXA,OXanilic Acid
|
||||
OXT,OXyTocin
|
||||
OXY,Oxygen
|
||||
@ -743,17 +738,14 @@ p+,Proton
|
||||
P,Peta prefix (1015)
|
||||
P,Phosphorus
|
||||
p,pico prefix (10-12)
|
||||
P,Pressure
|
||||
P,Proton
|
||||
P,"Pressure, Proton"
|
||||
Pa,Pascal
|
||||
PA,Phosphatidic Acid
|
||||
Pa,Protactinium
|
||||
PA,Proton Affinity
|
||||
PAA,PolyAcrylic Acid
|
||||
PABA,ParaAminoBenzoic Acid
|
||||
PAC,Pharmaceutically Active Compound
|
||||
PAC,Polycyclic Aromatic Content
|
||||
PAC,Powdered Activated Carbon
|
||||
PAC,"Pharmaceutically Active Compound, Polycyclic Aromatic Content, Powdered Activated Carbon"
|
||||
PAEK,PolyArylEtherKetone
|
||||
PAGE,PolyAcrylamide Gel Electrophoresis
|
||||
PAH,Polycyclic Aromatic Hydrocarbon
|
||||
@ -768,19 +760,15 @@ PBI,PolyBenzImidazole
|
||||
PBN,PolyButylene Naphthalate
|
||||
PBS,Phosphate Buffered Saline
|
||||
PBT,PolyButylene Terephthalate
|
||||
PC,PolyCarbonate
|
||||
PC,Pyruvate Carboxylase
|
||||
PC,"PolyCarbonate, Pyruvate Carboxylase"
|
||||
PCA,Pyrrolidone Carboxylic Acid
|
||||
PCC,Pyridine Chloro Chromate
|
||||
PCE,Tetrachloroethylene
|
||||
PCR,Polymerase Chain Reaction
|
||||
PCV,Pressure Control Valve
|
||||
Pd,Palladium
|
||||
PD,Positive Displacement
|
||||
PD,Potential Difference
|
||||
PE,PhycoErythrin
|
||||
PE,Polyethylene
|
||||
PE,Potential Energy
|
||||
PD,"Positive Displacement, Potential Difference"
|
||||
PE,"PhycoErythrin, Polyethylene, Potential Energy"
|
||||
PEA,PolyEster Amine
|
||||
PEEK,PolyEtherEtherKetone
|
||||
PEG,PolyEthylene Glycol
|
||||
@ -806,17 +794,14 @@ PHB,PolyHydroxyButyrate
|
||||
PHC,Petroleum HydroCarbon
|
||||
PHMB,PolyHexaMethyleneBiguanide
|
||||
PHT,PHThalate
|
||||
PI,Phosphate Ion
|
||||
PI,PolyImide
|
||||
PI,"Phosphate Ion, PolyImide"
|
||||
PIB,PolyIsoButylene
|
||||
pK,measurement of the dissociation constant
|
||||
PLA,Polymerized Lactic Acid
|
||||
PLC,PhosphoLipase-C
|
||||
PM,Particulate Matter
|
||||
PM,Photo Multiplier
|
||||
PM,"Particulate Matter, Photo Multiplier"
|
||||
pm,picometer
|
||||
PM,Plasma Membrane
|
||||
PM,Powder Metallurgy
|
||||
PM,"Plasma Membrane, Powder Metallurgy"
|
||||
Pm,Promethium
|
||||
PM10,Particulates smaller than 10 μm.
|
||||
PM3,Parameterized Model number 3
|
||||
@ -833,15 +818,12 @@ pOH,measurement of OH- ions in aqueous solution
|
||||
POL,"Petroleum, Oils, and Lubricants"
|
||||
POP,Persistent Organic Pollutant
|
||||
PORC,Porcelain
|
||||
PPA,PhenylPropanolAmine
|
||||
PPA,PolyPhthalAmide
|
||||
PPA,"PhenylPropanolAmine, PolyPhthalAmide"
|
||||
ppb,Parts per billion
|
||||
ppm,Parts per million
|
||||
PPO,PolyPhenylene Oxide
|
||||
PPS,PolyPhenylene Sulfide
|
||||
PPT,Parts Per Trillion
|
||||
PPT,PolyPyrimidine Tract
|
||||
PPT,Precipitate
|
||||
PPT,"Parts Per Trillion, PolyPyrimidine Tract, Precipitate"
|
||||
Pr,Praseodymium
|
||||
PRV,Pressure Relief Valve
|
||||
PSI,Pounds per Square Inch
|
||||
@ -850,8 +832,7 @@ Pt,Platinum
|
||||
PTFE,PolyTetraFluoroEthylene
|
||||
Pu,Plutonium
|
||||
PU,PolyUrethane
|
||||
PV,Parity Violation
|
||||
PV,Pressure Volume
|
||||
PV,"Parity Violation, Pressure Volume"
|
||||
PVC,PolyVinyl Chloride
|
||||
PVT,"Pressure, Volume, Temperature"
|
||||
PXY,Para-XYlene
|
||||
@ -859,11 +840,9 @@ Q,Heat energy
|
||||
QA,Quinolinic Acid
|
||||
QC,Quality Control
|
||||
QCD,Quantum ChromoDynamics
|
||||
QED,Quantum ElectroDynamics
|
||||
QED,Quod Erat Demonstradum (Latin for “which was to be demonstrated”)
|
||||
QED,"Quantum ElectroDynamics, Quod Erat Demonstradum (Latin for “which was to be demonstrated”)"
|
||||
QM,Quantum Mechanics
|
||||
QS,Quantum State
|
||||
QS,Quantum Sufficit (Latin for “as much as needed”)
|
||||
QS,"Quantum State, Quantum Sufficit (Latin for “as much as needed”)"
|
||||
qt,quart
|
||||
QW,Quit Whining
|
||||
QY,Quantum Yield
|
||||
@ -888,8 +867,7 @@ RBD,"Refined, Bleached and Deodorized"
|
||||
RCS,Reactive Chemical Species
|
||||
RDA,Recommended Daily Allowance
|
||||
RDT,Recombinant DNA Technology
|
||||
RDX,cyclotrimethylenetrinitramine
|
||||
RDX,Research Department Explosive
|
||||
RDX,"cyclotrimethylenetrinitramine, Research Department Explosive"
|
||||
RE,Rare Earth
|
||||
Re,Rhenium
|
||||
REACH,"Registration, Evaluation, Authorization, and restriction of CHemical substances"
|
||||
@ -899,8 +877,7 @@ rem,"Radiation Equivalent, Man"
|
||||
REM,Rare Earth Metal
|
||||
REQ,Required
|
||||
RER,Respiratory Exchange Ratio
|
||||
RF,Radio Frequency
|
||||
RF,Resonance Frequency
|
||||
RF,"Radio Frequency, Resonance Frequency"
|
||||
Rf,Rutherfordium
|
||||
RFIC,Reagent-Free Ion Chromatography
|
||||
RFM,Relative Formula Mass
|
||||
@ -927,9 +904,7 @@ ROS,Reactive Oxygen Species
|
||||
ROWPU,Reverse Osmosis Water Purification Unit
|
||||
RPT,Repeat
|
||||
RSC,Royal Society of Chemistry
|
||||
RT,Energy (Rydberg Constant x Temperature)
|
||||
RT,Reverse Transcriptase
|
||||
RT,Room Temperature
|
||||
RT,"Energy (Rydberg Constant x Temperature), Reverse Transcriptase, Room Temperature"
|
||||
RTM,Read The Manual
|
||||
RTP,Room Temperature and Pressure
|
||||
RTSC,Room Temperature Super Conductor
|
||||
@ -977,18 +952,16 @@ Se,Selenium
|
||||
Sec,Seconds
|
||||
SEP,Separate
|
||||
SEU,Slightly Enriched Uranium
|
||||
SF,Safety Factor
|
||||
SF,Significant Figures
|
||||
SF,"Safety Factor, Significant Figures"
|
||||
SFC,Supercritical Fluid Chromatography
|
||||
SFPM,Suspended Fine Particulate Matter
|
||||
Sg,Seaborgium
|
||||
SG,Specific Gravity
|
||||
SG,Spheroidal Graphite
|
||||
SG,"Specific Gravity, Spheroidal Graphite"
|
||||
SH,Thiol functional group
|
||||
SHC,Synthetic HydroCarbon
|
||||
SHE,Standard Hydrogen Electrode
|
||||
SHF,Super High Frequency
|
||||
SI units,Système international d’unités (International System of Units)
|
||||
SI,"Système international d’unités (International System of Units)"
|
||||
Si,Silicon
|
||||
SL,Sea Level
|
||||
SL,Short Lived
|
||||
@ -1028,8 +1001,7 @@ TAC,Teiacetyl Cellulose
|
||||
TAG,TriAcylGlyceride
|
||||
tan,tangent
|
||||
TAN,Total Acid Number
|
||||
TAS,Total Alkali versus Silica
|
||||
TAS,Total Analysis System
|
||||
TAS,"Total Alkali versus Silica, Total Analysis System"
|
||||
TAT,TriAcetone TriPeroxide
|
||||
Tb,Terbium
|
||||
TBA,"2,4,6-TriBromoAnisole"
|
||||
@ -1038,22 +1010,15 @@ TBC,4-TertButylCatechol
|
||||
TBHQ,TertButylHydroQuinone
|
||||
TBP,True Boiling Point
|
||||
TBT,TriButylTin
|
||||
Tc,Critical Temperature
|
||||
Tc,Technitium
|
||||
TC,Temperature Compensated
|
||||
TC,Temperature Controlled
|
||||
TC,Theoretical Chemistry
|
||||
Tc,"Critical Temperature, Technitium"
|
||||
TC,"Temperature Compensated, Temperature Controlled, Theoretical Chemistry"
|
||||
TCA,TauroCholic Acid
|
||||
TCA,TCA cycle (citric acid cycle)
|
||||
TCA,TriChloroAcetic Acid
|
||||
TCE,TriChloroEthane
|
||||
TCF,ThiolCarbon Fiber
|
||||
TCM,TetraChloromethane
|
||||
TCP,"1,2,3-TriChloropropane"
|
||||
TCP,Thermal Conversion Process
|
||||
TCP,Tocopherol
|
||||
TCP,TriCalcium Phosphate
|
||||
TCP,TriChloroPhenol
|
||||
TCP,"1,2,3-TriChloropropane, Thermal Conversion Process, Tocopherol, TriCalcium Phosphate, TriChloroPhenol"
|
||||
TCS,Toxic Chemical System
|
||||
TCT,ToCoTrienol
|
||||
TCV,Temperature Control Valve
|
||||
@ -1100,8 +1065,7 @@ TOC,Total Organic Carbon
|
||||
TOI,Table Of Isotopes
|
||||
TON,Table Of Nuclides
|
||||
TOX,Toxic
|
||||
TP,Transition Point
|
||||
TP,Triple Point
|
||||
TP,"Transition Point, Triple Point"
|
||||
TPE,ThermoPlastic Elastomer
|
||||
TPM,Total Particulate Matter
|
||||
TR,Table Row
|
||||
@ -1125,16 +1089,13 @@ TTX,Tetrodotoxin
|
||||
TU,Thermally Unbound
|
||||
TWMC,Time Weighted Mean Concentration
|
||||
TWV,Total Water Vapor
|
||||
U,Internal Energy
|
||||
U,Undetectable
|
||||
U,Uranium
|
||||
U,"Internal Energy, Undetectable, Uranium"
|
||||
UAFM,Uranyl Acetate Fluorescence Method
|
||||
UCK,Universal Chemical Key
|
||||
UG,"Undisturbed Gas UHC,Unburned HydroCarbons"
|
||||
UHF,Ultra High Frequency
|
||||
UHMW,Ultra High Molecular Weight
|
||||
UHP,Ultra High Pressure
|
||||
UHP,Ultra High Purity
|
||||
UHP,"Ultra High Pressure, Ultra High Purity"
|
||||
UHT,Ultra High Temperature
|
||||
UHV,Ultra High Vacuum
|
||||
ULG,Universal Liquid Gas
|
||||
@ -1162,38 +1123,27 @@ UVL,UltraViolet Lamp
|
||||
UVR,UltraViolet Reactive
|
||||
UXS,Glucuronic Acid DeCarboxylase
|
||||
UYQ,Uranium Yield Quantity
|
||||
V,Vacuum
|
||||
V,Valene
|
||||
V,Vanadium
|
||||
V,"Vacuum, Valene, Vanadium, Volt, Volume"
|
||||
v,velocity
|
||||
V,Volt
|
||||
V,Volume
|
||||
VA,Nitrogen group
|
||||
VA,Volume Analyzer
|
||||
VAC,Vacuum
|
||||
VAC,Vacuum Assisted Closure
|
||||
VB,Vacuum Break
|
||||
VB,Valence Band
|
||||
VA,"Nitrogen group, Volume Analyzer"
|
||||
VAC,"Vacuum, Vacuum Assisted Closure"
|
||||
VB,"Vacuum Break, Valence Band"
|
||||
VBJ,Vacuum Bell Jar
|
||||
VBT,Valence Bond Theory
|
||||
VC,Vapor Cloud
|
||||
VC,Vinyl Chloride
|
||||
VC,Viscous Coupled
|
||||
VC,"Vapor Cloud, Vinyl Chloride, Viscous Coupled"
|
||||
VCE,Vapor Cloud Explosion
|
||||
VCM,Vinyl Chloride Monomer
|
||||
Vd,Volume distribution
|
||||
VDB,VanDyke Brown test
|
||||
VDF,Van der Waals force
|
||||
VDW,Van der Waals radius
|
||||
VEQ,EQuilibrium Volume
|
||||
VEQ,EQuivalence point Volume
|
||||
VEQ,"EQuilibrium Volume, EQuivalence point Volume"
|
||||
VFn,Vertical Face number (n is a number)
|
||||
VH,Vapor Hazard
|
||||
VHH,Volatile Halogenated Hydrocarbon
|
||||
VHI,Vapor Hazard Index
|
||||
VHN,Vickers Hardness Number
|
||||
VHP,Vaporized Hydrogen Peroxide
|
||||
VHP,Very High Pressure
|
||||
VHP,"Vaporized Hydrogen Peroxide, Very High Pressure"
|
||||
VHT,Very High Temperature
|
||||
VHY,Very High Yield
|
||||
VI,Viscosity Index
|
||||
@ -1204,8 +1154,7 @@ VO,Vacuum Oven
|
||||
VOA,Volatile Organic Analysis
|
||||
VOC,Volatile Organic Compound
|
||||
VOL,Volume
|
||||
VP,Vapor Point
|
||||
VP,Vapor Pressure
|
||||
VP,"Vapor Point, Vapor Pressure"
|
||||
VPE,Virtual Potential Energy
|
||||
VR,Very Rapid
|
||||
VS,Very Saturated
|
||||
@ -1215,28 +1164,17 @@ VSS,Volatile Suspended Solid
|
||||
VTC,Variable Temperature Cutoff
|
||||
VTP,"Volume, Temperature, Pressure"
|
||||
VU,Volume Units
|
||||
VV,Vacuum Vessel
|
||||
VV,Valence-Valence
|
||||
VV,"Vacuum Vessel, Valence-Valence"
|
||||
VW,Varies Widely
|
||||
W,Tryptofan
|
||||
W,Tungsten
|
||||
W,Watt
|
||||
W,wavelength
|
||||
W,Weight
|
||||
W,width
|
||||
W,Work
|
||||
W,"Tryptofan, Tungsten, Watt, wavelength, Weight, width, Work"
|
||||
W5,Which Was What We Wanted
|
||||
WA,Weak Acid
|
||||
WAC,Weak Acid Cation
|
||||
WB,Water Based
|
||||
WB,Weak Base
|
||||
WB,Weak Bond
|
||||
WB,"Water Based, Weak Base, Weak Bond"
|
||||
WBA,Weak Base Anion
|
||||
WC,Water Cosolvent
|
||||
WCS,Worst Case Scenario
|
||||
WD,Water Dispersant
|
||||
WD,Water Displacement
|
||||
WD,Wet/Dry
|
||||
WD,"Water Dispersant, Water Displacement, Wet/Dry"
|
||||
WIAP,Water In All Phases
|
||||
WIN,Water Insoluble Nitrogen
|
||||
WNA,World Nuclear Association
|
||||
@ -1244,8 +1182,7 @@ WO,Weak Oxidizer
|
||||
WP,White Phosphorus
|
||||
WPS,Water Phase Salt
|
||||
WR,Water Repellent
|
||||
WS,Wash Solution
|
||||
WS,Water Soluble
|
||||
WS,"Wash Solution, Water Soluble"
|
||||
WSNZ,Water Soluble Zinc
|
||||
WSPI,"Water-Soluble Phosphorous, Inorganic"
|
||||
WSPO,"Water-Soluble Phosphorous, Organic"
|
||||
@ -1262,8 +1199,7 @@ WWIX,Waste Water Ion eXchange
|
||||
WYOL,Write Your Own Lab
|
||||
WYOLA,Write Your Own Lab Assignment
|
||||
WYU,What You Use
|
||||
X,Halogen
|
||||
X,unknown
|
||||
X,"Halogen, unknown"
|
||||
XAG,Silver Troy Ounce
|
||||
XAN,XANthine
|
||||
XAU,Gold Troy Ounce
|
||||
@ -1275,10 +1211,8 @@ XPD,Palladium Troy Ounce
|
||||
XPT,Platinum Troy Ounce
|
||||
XUM,X-ray Ultra-Microscope
|
||||
XYD,XYliDine
|
||||
Y,Tyrosine
|
||||
Y,"Tyrosine, Yotta prefix (1024), Yttrium"
|
||||
y,yocto prefix (10-24)
|
||||
Y,Yotta prefix (1024)
|
||||
Y,Yttrium
|
||||
YA,Yield Analysis
|
||||
YAG,Yttrium Aluminum Garnet
|
||||
YAP,Yield Analysis Pattern
|
||||
@ -1290,13 +1224,8 @@ Yd,Yard
|
||||
YIC,Yttrium Lithium Fluoride
|
||||
Yr,Year
|
||||
YZN,Yellow ZiNc dichromate
|
||||
Z,Atomic Number
|
||||
Z,azimuth
|
||||
Z,Impedance
|
||||
Z,proton number
|
||||
Z,"Atomic Number, azimuth, Impedance, proton number, zero, Zetta prefix (1021)"
|
||||
z,zepto prefix (10-21)
|
||||
Z,zero
|
||||
Z,Zetta prefix (1021)
|
||||
ZB,Zinc Blende
|
||||
ZC,Zero Calibration
|
||||
ZC,Zinc Composite
|
||||
|
|
@ -243,6 +243,7 @@ ASSP,application-specific standard product
|
||||
AST,automated storage tiering
|
||||
ASTM,American Society for Testing and Materials
|
||||
ASUG,Americas' SAP Users' Group
|
||||
ASWF,Academy Software Foundation
|
||||
ATA,Advanced Technology Attachment
|
||||
ATA,American Telemedicine Association
|
||||
ATA,analog telephone adapter
|
||||
@ -468,6 +469,7 @@ CDR,call detail record
|
||||
CDR,Computed Dental Radiography
|
||||
CDSL,Consumer Digital Subscriber Line
|
||||
CDSS,clinical decision support system
|
||||
CDU,Coolant Distribution Unit
|
||||
CdTe,cadmium telluride
|
||||
CEBP,communications-enabled business processes
|
||||
CELL,Cell processor
|
||||
@ -537,9 +539,7 @@ CKO,chief knowledge officer
|
||||
CL,cluster log
|
||||
CLASS,Capacity Loading and Operation Sequence Scheduling
|
||||
CLEC,competitive local exchange carrier
|
||||
CLI,command line interface
|
||||
CLI,Command Line Interpreter
|
||||
CLI,Common Language Infrastructure
|
||||
CLI,"Command Line Interface, Command Line Interpreter, Common Language Infrastructure"
|
||||
CLM,Council For Logistics Management
|
||||
CLO,chief learning officer
|
||||
CLOB,Character Large OBject
|
||||
@ -548,7 +548,8 @@ CLR,Common Language Runtime
|
||||
CM,configuration management
|
||||
CM,content management
|
||||
CM,Contract Manufacturer
|
||||
CMA,content management application
|
||||
CMA,Content Management Application
|
||||
CMD,Command Prompt
|
||||
CMDB,configuration management database
|
||||
CMDM,Collaborative Master Data Management
|
||||
CMIO,Chief Medical Information Officer
|
||||
@ -675,7 +676,9 @@ CWE,Common Weakness Enumeration
|
||||
CWF,common working file
|
||||
CWNP,Certified Wireless Networking Professional
|
||||
CX,consumer experience
|
||||
CXF,Credential Exchange Format
|
||||
CXO,chief experience officer
|
||||
CXP,Credential Exchange Protocol
|
||||
D-AMPS,Digital-Advanced Mobile Phone Service
|
||||
D-VHS,Digital Video Home System
|
||||
D2D,Disk to Disk
|
||||
@ -1005,6 +1008,7 @@ EOL,"End of Life, End of Line"
|
||||
EOM,End of Message
|
||||
EOP,Microsoft Exchange Online Protection
|
||||
EOQ,Economic Order Quantity
|
||||
EOT,End of Transmission
|
||||
EPA,Microsoft Exchange Server Profile Analyzer
|
||||
EPC,Evolved Packet Core
|
||||
EPD,electronic paper display
|
||||
@ -1033,7 +1037,7 @@ ESA,Enterprise Services Architecture
|
||||
ESB,enterprise service bus
|
||||
ESCD,Extended System Configuration Data
|
||||
ESCON,Enterprise Systems Connection
|
||||
ESD,electrostatic discharge
|
||||
ESD,ElectroStatic Discharge
|
||||
ESDI,Enhanced Small Device Interface
|
||||
ESDRAM,Enhanced Synchronous DRAM
|
||||
ESE,Environmentally Sustainable Electronics
|
||||
@ -1111,6 +1115,7 @@ FHA,Federal Health Architecture
|
||||
FHIE,Federal Health Information Exchange
|
||||
FI,Fast Infoset
|
||||
FICON,Fiber Connectivity
|
||||
FIDO,Fast Identity Online Alliance
|
||||
FIFO,"First In, First Out"
|
||||
FILO,"First In, Last Out"
|
||||
FIM,federated identity management
|
||||
@ -1282,7 +1287,7 @@ gTLD,generic top-level domain name
|
||||
GTM,strategy go-to-market strategy
|
||||
GUA,graphical password or graphical user authentication
|
||||
GUI,Graphical User Interface
|
||||
GUID,global unique identifier
|
||||
GUID,Globally Unique Identifier (see also UUID)
|
||||
GUM,Global Update Manager
|
||||
GWAC,governmentwide acquisition contract
|
||||
GXA,Global XML Web Services Architecture
|
||||
@ -1293,7 +1298,7 @@ HA,high availability
|
||||
HaaS,Hardware as a Service
|
||||
HAL,hardware abstraction layer
|
||||
HALO,High Altitude Long Operation
|
||||
HANA,SAP HANA
|
||||
HAMR,Heat-Assisted Magnetic Recording
|
||||
HASA,Highly Accelerated Stress Audit
|
||||
HAVA,Help America Vote Act of 2002
|
||||
HAVi,Home Audio Visual
|
||||
@ -1325,6 +1330,7 @@ HHR,hybrid health record
|
||||
HHS,Health and Human Services
|
||||
HID,Human Interface Device
|
||||
HIE,health information exchange
|
||||
HIMR,Heat-Assisted Interlaced Magnetic Recording
|
||||
HIMSS,Healthcare Information and Management Systems Society
|
||||
HIPAA,Health Insurance Portability and Accountability Act
|
||||
HIPPI,High-Performance Parallel Interface
|
||||
@ -1391,6 +1397,7 @@ IBP,integrated business planning
|
||||
IC,integrated circuit
|
||||
IC-BPMS,integration-centric business process management suite
|
||||
ICANN,Internet Corporation for Assigned Names and Numbers
|
||||
ICD,Interface Control Document
|
||||
ICE,"In-Circuit Emulator, Information and Content Exchange"
|
||||
IcM,incident management
|
||||
ICMP,Internet Control Message Protocol
|
||||
@ -1474,8 +1481,7 @@ IRQ,interrupt request
|
||||
IRR,internal rate of return
|
||||
IRTF,Internet Research Task Force
|
||||
IRU,Indefeasible Right of Use
|
||||
IS,Information System
|
||||
IS,information system or information services
|
||||
IS,Information System or Information Services
|
||||
IS-IS,Intermediate System-to-Intermediate System protocol
|
||||
ISA,Industry Standard Architecture
|
||||
ISAM,Indexed Sequential Access Method
|
||||
@ -1863,7 +1869,8 @@ NURBS,nonuniform rational B-spline
|
||||
NUS,network unified storage
|
||||
NVGRE,Network Virtualization using Generic Routing Encapsulation
|
||||
NVLAP,National Voluntary Laboratory Accreditation Program
|
||||
NVMe,non-volatile memory express
|
||||
NVM,Non-Volatile Memory
|
||||
NVMe,Non-Volatile Memory Express
|
||||
NVS,nonvolatile storage
|
||||
NWR,NOAA Weather Radio
|
||||
O2O,Online to Offline
|
||||
@ -1981,7 +1988,7 @@ PCB,printed circuit board
|
||||
PCE,Path Computation Element
|
||||
PCEP,Path Computation Element Protocol
|
||||
PCI,Peripheral Component Interconnect
|
||||
PCI-X,Peripheral Component Interconnect Extended
|
||||
PCIe,Peripheral Component Interconnect Express
|
||||
PCL,Printer Control Language
|
||||
PCM,phase-change memory
|
||||
PCM,pulse code modulation
|
||||
@ -2604,7 +2611,7 @@ USSD,Unstructured Supplementary Service Data
|
||||
UTF,Unicode Transformation Format
|
||||
UTM,unified threat management
|
||||
UUCP,UNIX-to-UNIX Copy Protocol
|
||||
UUID,Universal Unique Identifier
|
||||
UUID,Universally Unique Identifier (see also GUID)
|
||||
UX,user experience
|
||||
UXGA,Ultra Extended Graphics Array
|
||||
V2P,virtual to physical
|
||||
|
|
@ -20,6 +20,7 @@ ATR,Ability to Repay
|
||||
CBN,Central Bank of Nigeria
|
||||
CD,Certificate of Deposit
|
||||
DDA,Demand Deposit Account
|
||||
DM,"Deutsche Mark (currency in Germany 1948-2001)"
|
||||
DTI,Debt-to-Income
|
||||
EAD,Exposure At Default
|
||||
EBITDA,Earnings Before Interest, Taxes, Depreciation and Amortisation
|
||||
|
Can't render this file because it has a wrong number of fields in line 26.
|
@ -340,17 +340,18 @@ AOSTH,Adventures of Sonic the Hedgehog
|
||||
AOTS,"Attack of the Show!"
|
||||
AOU,American Ornithologists' Union
|
||||
AP,"Advanced Placement,Air Publication,Andhra Pradesh (Indian state code),Armed Forces Pacific (postal symbol),Associated Press,Auto Pilot"
|
||||
APAC,Asia Pacific
|
||||
APB,All Points Bulletin (police jargon)
|
||||
APC,Armoured Personnel Carrier,Armour Piercing Capped (ammunition)
|
||||
APCNR,Armour-Piercing,Composite Non-Rigid (ammunition)
|
||||
APCR,Armour-Piercing,Composite Rigid (ammunition)
|
||||
APDS,Armour-Piercing,Discarding-Sabot (ammunition)
|
||||
APC,"Armoured Personnel Carrier, Armour Piercing Capped (ammunition)"
|
||||
APCNR,"Armour-Piercing,Composite Non-Rigid (ammunition)"
|
||||
APCR,"Armour-Piercing,Composite Rigid (ammunition)"
|
||||
APDS,"Armour-Piercing,Discarding-Sabot (ammunition)"
|
||||
APEC,Asia Pacific Economic Cooperation
|
||||
APEDS,AMSAA Performance Estimates Data System
|
||||
APEX,Applied Physics Express
|
||||
APFSDS,Armour-Piercing,Fin-Stabilised,Discarding Sabot (ammunition)
|
||||
APFSDS,"Armour-Piercing,Fin-Stabilised,Discarding Sabot (ammunition)"
|
||||
APHA,American Public Health Association
|
||||
APHE,Armour-Piercing,High Explosive (ammunition)
|
||||
APHE,"Armour-Piercing, High Explosive (ammunition)"
|
||||
APHIS,Animal and Plant Health Inspection Service
|
||||
APL,"Acute Promyeloid Leukaemia,Anti-Personnel Landmine,Applied Physics Laboratory (Johns Hopkins University)"
|
||||
APOD,Aerial Port (Airport) Of Debarkation
|
||||
@ -370,13 +371,13 @@ ARC,Arc-second Raster Chart,Appalachian Regional Commission
|
||||
ARCA,Automobile Racing Club of America
|
||||
ARCENT,United States Army Central Command
|
||||
ARDA,Advanced Research and Development Activity (became DTO 2006)
|
||||
ARE,UK Admiralty Research Establishment (-1991),United Arab Emirates (ISO 3166 trigram)
|
||||
ARE,"UK Admiralty Research Establishment (-1991),United Arab Emirates (ISO 3166 trigram)"
|
||||
ARF,ASEAN Regional Forum
|
||||
ARG,Argentina (ISO 3166 trigram)
|
||||
ARH,Armed Reconnaissance Helicopter
|
||||
ARI,Acute Respiratory Infection,U.S. Army Research Institute for the Behavioral and Social Sciences
|
||||
ARL,UK Admiralty Research Laboratory (1921-1977),U.S. Army Research Laboratory,UIUC Aviation Research Laboratory
|
||||
ARM,Anti-Radiation Missile,Adjustable-rate mortgage,Armenia (ISO 3166 trigram)
|
||||
ARI,"Acute Respiratory Infection,U.S. Army Research Institute for the Behavioral and Social Sciences"
|
||||
ARL,"UK Admiralty Research Laboratory (1921-1977),U.S. Army Research Laboratory,UIUC Aviation Research Laboratory"
|
||||
ARM,"Anti-Radiation Missile,Adjustable-rate mortgage,Armenia (ISO 3166 trigram)"
|
||||
ARNet,Acquisition Reform Network
|
||||
ARP,Applied Research Programme
|
||||
ARPA,Advanced Research Projects Agency
|
||||
@ -385,7 +386,7 @@ ARRF,Allied Rapid Reaction Force
|
||||
ARRL,American Radio Relay League
|
||||
ARSC,Arctic Region Supercomputing Center
|
||||
ARSPACE,U.S. Army Space Command
|
||||
ART,Adaptive Resonance Theory,Anti-Retroviral Therapy
|
||||
ART,"Adaptive Resonance Theory, Anti-Retroviral Therapy"
|
||||
ARTCC,Air Route Traffic Control Center
|
||||
ARWG,Army Research Working Group
|
||||
AS,ActionScript
|
||||
@ -916,7 +917,7 @@ CPX,Command Post eXercise
|
||||
CQ,"Carrier Qualification,Central Queensland,Charge of Quarters,Congressional Quarterly,Constellation Airlines (IATA airline designator)"
|
||||
CQD,"Close Quarters Drill (Morse distress code preceding SOS: CQ 'calling all stations',D 'Distress'; often incorrectly interpreted as 'Come Quick,Distress')"
|
||||
Cr,Chromium
|
||||
CR,"Costa Rica (ISO 3166 digram)"
|
||||
CR,Costa Rica (ISO 3166 digram)
|
||||
CRAM,Combined Radiometric Correction Model
|
||||
CRD,Capstone Requirements Document
|
||||
CREB,Cyclic AMP-response Element Binding (protein)
|
||||
@ -931,6 +932,7 @@ CRT,"Cardiac Resynchronization Therapy,Cathode Ray Tube,Chinese Remainder Theore
|
||||
CRTC,Canadian Radio-television and Telecommunications Commission
|
||||
Cs,Caesium
|
||||
CSA,"Canadian Soccer Association,Canadian Space Agency,Canadian Standards Association,Child Support Agency,Command Staff Advisor,Community-supported agriculture,Confederate States of America,Corps Storage Area,Czech Airlines,C/S/A,CINC,Service,and Agency"
|
||||
CSAM,Child Sexual Abuse Material
|
||||
CSC,"Closed Spacelike Curve (relativity),Compact system camera,Computer Sciences Corporation,Computer Security Centre,CSCC Canadian Society of Clinical Chemists"
|
||||
CSERIAC,(U.S. DoD) Crew Systems Ergonomics Information Analysis Center
|
||||
CSG,Corps Support Group
|
||||
@ -1075,7 +1077,6 @@ DHA,DocosaHexaenoic Acid
|
||||
DHHS,(U.S.) Department of Health and Human Services
|
||||
DHL,Dalsey,Hillblom,and Lynn (courier service)
|
||||
DHRA,(U.S.) DoD Human Resources Activity
|
||||
DHS,U.S. Department of Homeland Security
|
||||
DHSS,UK Department of Health and Social Security
|
||||
DHTFYSS,U.S. Don't Have Time For You Silly S****
|
||||
DHY,Dahomey (ISO 3166 trigram; became BEN for Benin in 1977)
|
||||
@ -1420,9 +1421,8 @@ ERTS,Earth Resources Technology Satellite (became Landsat)
|
||||
ERV,Endogenous RetroVirus
|
||||
Es,Einsteinium,Exasecond
|
||||
ES,"Electronic warfare Support,Exasiemens,Spain (ISO 3166 digram; from the country's native name of España)"
|
||||
ESA,Electro-Spark Alloying,Endangered Species Act,European Space Agency
|
||||
ESC,Embryonic Stem Cell,Electronic Stability Control
|
||||
ESD,ElectroStatic Discharge
|
||||
ESA,"Electro-Spark Alloying, Endangered Species Act, European Space Agency"
|
||||
ESC,"Embryonic Stem Cell, Electronic Stability Control"
|
||||
ESDP,European Security and Defence Policy
|
||||
ESE,East South-East
|
||||
ESH,Western Sahara (ISO 3166 trigram)
|
||||
@ -1433,7 +1433,7 @@ ESOL,English for Speakers of Other Languages
|
||||
ESP,Electronic Stability Program,Extra-sensory perception,Spain (ISO 3166 trigram)
|
||||
ESPGHAN,European Society for Paediatric Gastroenterology,Hepatology and Nutrition
|
||||
ESPN,Entertainment and Sports Programming Network
|
||||
EST,Eastern Standard Time (UTC−5 hours),Estonia (ISO 3166 trigram)
|
||||
EST,"Eastern Standard Time (UTC−5 hours), Estonia (ISO 3166 trigram)"
|
||||
ESU,Emergency Services Unit
|
||||
ESV,Engineer Support Vehicle
|
||||
ET,Ethiopia (ISO 3166 digram)
|
||||
@ -1442,17 +1442,17 @@ ETF,Emergency Task Force (a special police unit,also jocularly said to stand for
|
||||
ETH,Ethiopia (ISO 3166 trigram)
|
||||
ETI,Extra-Terrestrial Intelligence
|
||||
ETLA,Extended TLA
|
||||
ETM,Electronic Technical Manual,Enhanced Thematic Mapper
|
||||
ETM,"Electronic Technical Manual, Enhanced Thematic Mapper"
|
||||
ETT,Embedded Training Team
|
||||
EU,European Union
|
||||
Eu,Europium
|
||||
EUCOM,(U.S.) European Command
|
||||
EUUSA,European Union and United States of America
|
||||
EV,Exavolt
|
||||
EVA,Earned Value Analysis,Economic value added,Ethylene-Vinyl Acetate,Extra-Vehicular Activity
|
||||
EVA,"Earned Value Analysis, Economic value added, Ethylene-Vinyl Acetate, Extra-Vehicular Activity"
|
||||
EVIL,Electronic viewfinder (with) interchangeable lens (a type of digital camera)
|
||||
EW,Electronic Warfare,Exawatt
|
||||
EWSD,Elektronisches Wählsystem Digital (German,"Electronic Digital Switching System")
|
||||
EWSD,"Elektronisches Wählsystem Digital (German,'Electronic Digital Switching System')"
|
||||
EWTN,Eternal Word Television Network
|
||||
Exatesla,Extra Terrestrial
|
||||
EXREP,Expeditious Repair (SM&R code)
|
||||
@ -2294,7 +2294,7 @@ IRQ,Iraq (ISO 3166 trigram)
|
||||
IRS,U.S. Internal Revenue Service
|
||||
IRSN,Institut de radioprotection et de sûreté nucléaire (French,"Institute for Radiation Protection and Nuclear Safety")
|
||||
IRST,Infra-red Search and Track
|
||||
IS,Iceland (ISO 3166 digram)
|
||||
IS,"Islamic State, or: Iceland (ISO 3166 digram)"
|
||||
ISA,Individual Savings Account,Industry Standard Architecture,Instruction Set Architecture,International Seabed Authority
|
||||
ISAAA,International Service for the Acquisition of Agri-biotech Applications
|
||||
ISAF,International Sailing Federation,International Security Assistance Force
|
||||
@ -2309,7 +2309,7 @@ ISEN,Internet Search Environment Number
|
||||
ISF,Internal Security Force
|
||||
ISI-Indian Standards Institute,former name of the Bureau of Indian Standards,Inter-Services Intelligence (Pakistan),Islamic State of Iraq,an umbrella organization for several Iraqi insurgent groups
|
||||
ISIL,Islamic State of Iraq and the Levant
|
||||
ISIS,"Institute for Science and International Security, or: Islamic State of Iraq and Syria"
|
||||
ISIS,"Islamic State of Iraq and Syria, or: Institute for Science and International Security"
|
||||
ISL,Iceland (ISO 3166 trigram)
|
||||
ISLN,International Standard Lawyer Number (used initially by LexisNexis Martindale-Hubbell)
|
||||
ISM,Industrial,scientific or medical,Interstellar medium
|
||||
@ -2319,7 +2319,7 @@ ISO,In Search Of,International Organization for Standardization (from the Greek
|
||||
ISOGP,Indian Society of Orthodontics for General Practitioners [2]
|
||||
ISP,International Standardized Profile,Internet Service Provider,Information Systems Professional
|
||||
ISPE,International Society for Pharmacoepidemiology
|
||||
ISR,Intelligence,Surveillance and Reconnaissance,Israel (ISO 3166 trigram)
|
||||
ISR,"Intelligence,Surveillance and Reconnaissance, or: Israel (ISO 3166 trigram)"
|
||||
ISRO,Indian Space Research Organisation
|
||||
ISS,International Shorebird Survey (North America),International Space Station
|
||||
ISSCR,International Society for Stem Cell Research
|
||||
@ -2790,6 +2790,7 @@ MACHO,MAssive Compact Halo Object
|
||||
MADD,"Mothers Against Drunk Driving,MyoAdenylate Deaminase Deficiency,Multiply-Add"
|
||||
MAF,Maintenance Action Form
|
||||
MAFF,Ministry of Agriculture,Forestry and Fisheries (various countries)
|
||||
MAGA,Make America Great Again
|
||||
MAGIC,Major Atmospheric Gamma-ray Imaging Cherenkov (telescope)
|
||||
MAGNETAR,Metaprogrammable AGent NETwork ARchitecture
|
||||
MAGTF,Marine Air-Ground Task Force
|
||||
@ -2961,7 +2962,6 @@ MLK,Martin Luther King,Jr.
|
||||
MLL,Major League Lacrosse
|
||||
MLLW,Mean Lower Low Water (nautical charts)
|
||||
MLP,My Little Pony
|
||||
MLRS,Multiple-Launch Rocket System
|
||||
MLS,Major League Soccer,Multiple Listing Service
|
||||
MLSE,Maple Leaf Sports & Entertainment (owner of several Toronto-based sports teams),Maximum likelihood sequence estimation
|
||||
MLSR,Missing,Lost or Stolen Report
|
||||
@ -3911,7 +3911,7 @@ PPS,post postscriptum,Precise/Precision Positioning Service (GPS),PolyPhenylene
|
||||
PPV,Pay-per-view
|
||||
PQ,Province of Québec (obsolete postal code,replaced by QC),Parti Québécois,PR[edit]
|
||||
Pr,"Pastor, Priest"
|
||||
PR,Public Relations
|
||||
PR,"Public Relations, Personal Record"
|
||||
Prb,Presbyter
|
||||
PRBO,Point Reyes Bird Observatory
|
||||
PRC,People's Republic of China
|
||||
@ -4588,7 +4588,7 @@ UA,Unit of Action
|
||||
UAAP,University Athletic Association of the Philippines
|
||||
UAB,University of Alabama at Birmingham
|
||||
UAE,United Arab Emirates (also IOC and FIFA trigram,but not ISO 3166)
|
||||
UAP,Unidentified Areal Phenomana
|
||||
UAP,Unidentified Anomalous Phenomena
|
||||
UAR,"Uniformly At Random (probability),Unión Argentina de Rugby (Spanish for "Argentine Rugby Union"),United Arab Republic"
|
||||
UAV,"Unmanned Aerial Vehicle,Unprotected Anal and Vaginal sex,UB[edit]"
|
||||
UBC,"United Baptist Church,University of British Columbia"
|
||||
@ -4737,11 +4737,11 @@ UST,Underground Storage Tank
|
||||
USTRANSCOM,United States Transportation Command
|
||||
USWNT,United States women's national (soccer) team
|
||||
UT,Universal Time
|
||||
UTC,Coordinated Universal Time
|
||||
UTEP, University of Texas at El Paso (pronounced you-tep)
|
||||
UTM,Universal Transverse Mercator (geographical co-ordinate system)
|
||||
UU,Unitarian Universalism,University of Utah,Unseen University
|
||||
UUA,Unitarian Universalist Association
|
||||
UUID,Universally Unique Identifier (see also GUID)
|
||||
UUV,Unmanned Underwater Vehicle
|
||||
UV,Burkina Faso (from Upper Volta),ultraviolet
|
||||
UVM,Universal Verification Methodology,Universidad del Valle de México,University of Vermont,from its Latin name of Universitas Viridis Montis ("University of the Green Mountains"),UV mapping,UW[edit]
|
||||
@ -4925,6 +4925,7 @@ WL,Wehrmacht Luftwaffe (German World War II air force vehicle licence plate cod
|
||||
WLB,Women's Land Brigade (World War II Canada)
|
||||
WLF,Wallis and Futuna Islands (ISO 3166 trigram)
|
||||
WLOG,Without Loss Of Generality (see WOLOG)
|
||||
WLTP,Worldwide harmonized Light vehicles Test Procedure
|
||||
WM,Wehrmacht Marine (German World War II navy vehicle licence plate code)
|
||||
WMANUS,West Midlands Area National Union of Students
|
||||
WMD,World Movement for Democracy
|
||||
@ -5165,4 +5166,3 @@ ZC,Zettacoulomb
|
||||
ZCM,(n) ZENworks Configuration Management
|
||||
ZCMK,Zone Control Master Key
|
||||
ZCU,Zimbabwe Cricket Union
|
||||
\a,Atto-
|
||||
|
Can't render this file because it has a wrong number of fields in line 8.
|
@ -321,6 +321,7 @@ HEMAT,Heavy Expanded Mobility Ammunition Trailer
|
||||
HEP,High Explosive Plastic
|
||||
HESH,High Explosive Squash Head
|
||||
HE-T,High Explosive - Tracer
|
||||
HIMARS,High Mobility Artillery Rocket System
|
||||
HMG,Heavy Machine u Gun
|
||||
HMO,Health Maintenance Organization
|
||||
HOB,Height of Burst
|
||||
|
Can't render this file because it has a wrong number of fields in line 63.
|
@ -6,6 +6,7 @@ ABC,"American Broadcasting Corporation, Associated British Corporation, Australi
|
||||
ACLU,American Civil Liberties Union
|
||||
ADB,Asian Development Bank
|
||||
AIIB,Asian Infrastructure Investment Bank
|
||||
APEC,Asia-Pacific Economic Cooperation
|
||||
ASEAN,Association of South East Nations
|
||||
AT&T,American Telephone and Telegraph Company
|
||||
ATF,"U.S. Alcohol, Tobacco, Firearms and Explosives Bureau"
|
||||
@ -13,29 +14,38 @@ BMW, Bavarian Motor Works
|
||||
BND,Bundesnachrichtendienst (Germany)
|
||||
BVD, Bradley, Voorhees, and Day
|
||||
CERN,European Organization for Nuclear Research
|
||||
CIA,U.S. Central Intelligence Agency
|
||||
CIA,Central Intelligence Agency (USA)
|
||||
CISA,Cybersecurity Insurance and Security Agency (USA)
|
||||
CPUC,California Public Utilities Commission
|
||||
DOC,U.S. Department of Commerce
|
||||
DOD,U.S. Department of Defense
|
||||
DOE,U.S. Department of Energy
|
||||
DOI,U.S. Department of the Interior
|
||||
DOJ,U.S. Department of Justice
|
||||
DOL,U.S. Department of Labor
|
||||
DOS,U.S. Department of State
|
||||
DOT,U.S. Department of Transportation
|
||||
DHS,Department of Homeland Security (USA)
|
||||
DOC,Department of Commerce (USA)
|
||||
DoD,Department of Defense (USA)
|
||||
DoE,Department of Energy (USA)
|
||||
DOI,Department of the Interior (USA)
|
||||
DOJ,Department of Justice (USA)
|
||||
DOL,Department of Labor (USA)
|
||||
DOS,Department of State (USA)
|
||||
DOT,Department of Transportation (USA)
|
||||
EASA,European Aviation Safety Agency
|
||||
ED,U.S. Department of Education
|
||||
ESA,European Space Agency
|
||||
ESPN, Entertainment and Sports Programming Network
|
||||
FAO,Food and Agriculture Organization
|
||||
FBI,U.S. Federal Bureau of Investigation
|
||||
FIFA,Fédération Internationale de Football Association
|
||||
GEICO, Government Employees Insurance Company
|
||||
H&M, Hennes and Mauritz
|
||||
HHS,U.S. Department of Health and Human Services
|
||||
HRW,Human Rights Watch
|
||||
HSBC, Hongkong and Shanghai Banking Corporation
|
||||
HUD,U.S. Department of Housing and Urban Development
|
||||
IBM, International Business Machines
|
||||
ICC,International Cricket Council
|
||||
ICI,Imperial Chemical Industries
|
||||
ICJ,International Court of Justice
|
||||
IMF,International Monetary Fund
|
||||
IMO,International Maritime Organization
|
||||
IOC,International Olympic Committee
|
||||
ISO,International Organization for Standardization
|
||||
J&J,Johnson & Johnson
|
||||
JBL, James Bullough Lansing
|
||||
@ -45,6 +55,7 @@ LBA,Luftfahrtbundesamt (German aviation agency)
|
||||
M&M, Mars & Murrie’s
|
||||
MILF,Moro Islamic Liberation Front
|
||||
NASA,National Aeronautics and Space Administration
|
||||
NATO,North Atlantic Treaty Organization
|
||||
NBC,National Broadcasting Company
|
||||
NIST,U.S. National Institute of Standards and Technology
|
||||
NIWA,National Institute of Water and Atmospheric Research Limited
|
||||
@ -53,13 +64,17 @@ NSA,U.S. National Security Agency
|
||||
NYPD,New York Police Department
|
||||
OECD,Organization for Economic Cooperation & Development
|
||||
ONCD,Office of the National Cyber Director
|
||||
OPCW,Organization for the Prohibition of Chemical Weapons
|
||||
OPEC,Organization of Petroleum Exporting Countries
|
||||
RSF,Reporters Sans Frontières (French for: Reporters Without Borders)
|
||||
SAARC,South Asian Association for Regional Cooperation
|
||||
TREAS,U.S. Department of the Treasury
|
||||
ULA,United Launch Alliance
|
||||
UN,United Nations Organization
|
||||
UNCTAD,United Nations Conference on Trade & Development
|
||||
UNESCO,United Nations Education Scientific & Cultural Organization
|
||||
UNICEF,United Nations Children's Fund
|
||||
UNIDO,United Nations Industrial Development Organization
|
||||
UNO,United Nations Organization
|
||||
USDA,United States Department of Agriculture
|
||||
UPS,United Parcel Service
|
||||
@ -70,6 +85,8 @@ VA,U.S. Department of Veterans Affairs
|
||||
VW,Volkswagen
|
||||
WEF,World Economic Forum
|
||||
WHO,World Health Organization
|
||||
WIPO,World Intellectual Property Organization
|
||||
WMO,World Meteorological Organization
|
||||
WWF,World Wide Fund for Nature
|
||||
YKK, Yoshida Manufacturing Corporation
|
||||
YMCA,Young Men's Christian Association
|
||||
|
Can't render this file because it has a wrong number of fields in line 15.
|
@ -20,3 +20,4 @@ NAME,URL,
|
||||
"Munich Airport","https://www.flightradar24.com/data/airports/muc",
|
||||
"Windy Weather Radar","https://www.windy.com/de/-Weather-radar-radar",
|
||||
"Windy Weather Temperatures","https://www.windy.com/-Temperature-temp",
|
||||
"Warnings in Germany","https://warnung.bund.de/meldungen",
|
||||
|
|
@ -1,5 +1,5 @@
|
||||
DOMAIN,
|
||||
a.root-servers.net,
|
||||
abc.com
|
||||
airbnb.com,
|
||||
aka.ms,
|
||||
api.met.no,
|
||||
@ -10,8 +10,8 @@ amazon.com,
|
||||
b.root-servers.net,
|
||||
bing.com,
|
||||
bitbucket.org,
|
||||
c.root-servers.net,
|
||||
client.dropbox.com,
|
||||
cnn.com,
|
||||
contacts.google.com,
|
||||
d.dropbox.com,
|
||||
d.root-servers.net,
|
||||
@ -98,4 +98,4 @@ www.whatsapp.com,
|
||||
www.whitehouse.gov,
|
||||
www.windy.com,
|
||||
www.wikipedia.org,
|
||||
www.youtube.com,
|
||||
www.youtube.com,
|
|
@ -1,5 +1,5 @@
|
||||
FOLDERNAME, CATEGORY, URL, BRANCH, SHALLOW,
|
||||
base256, "dev tool", "git@github.com:fleschutz/base256.git", main, yes,
|
||||
base256U, "dev tool", "git@github.com:fleschutz/base256U.git", main, yes,
|
||||
bazel, "build tool", "https://github.com/bazelbuild/bazel", master, yes,
|
||||
cmake, "build tool", "https://github.com/Kitware/CMake", master, yes,
|
||||
cmatrix, "fun tool", "https://github.com/abishekvashok/cmatrix", master, yes,
|
||||
@ -13,6 +13,8 @@ jhead, "EXIF tool", "https://github.com/Matthias-Wandel/jhead",
|
||||
leon, "personal assistant", "https://github.com/leon-ai/leon", master, yes,
|
||||
llvm, "compiler", "https://github.com/llvm/llvm-project", main, yes,
|
||||
LSS, "math tool", "git@github.com:fleschutz/LSS.git", main, yes,
|
||||
my-backups, "backup tool", "git@github.com:fleschutz/my-backups.git", main, yes,
|
||||
my-settings, "settings", "git@github.com:fleschutz/my-settings.git", main, yes,
|
||||
ninja, "build tool", "https://github.com/ninja-build/ninja", master, yes,
|
||||
opencv, "dev lib", "https://github.com/opencv/opencv", master, yes,
|
||||
PowerShell, "script collection", "git@github.com:fleschutz/PowerShell.git", main, yes,
|
||||
@ -25,4 +27,4 @@ tensorflow, "AI tool", "https://github.com/tensorflow/tensorfl
|
||||
terminal, "desktop tool", "https://github.com/microsoft/terminal", main, yes,
|
||||
tinycc, "compiler", "https://github.com/TinyCC/tinycc", mob, yes,
|
||||
voice2json, "voice tool", "https://github.com/synesthesiam/voice2json", master, yes,
|
||||
zfs, "filesystem tool", "https://github.com/openzfs/zfs", master, yes,
|
||||
zfs, "filesystem tool", "https://github.com/openzfs/zfs", master, yes,
|
|
@ -61,4 +61,5 @@ Various,Samuel Johnson,"Never trust your tongue when your heart is bitter.",
|
||||
Various,William James,"The good we do today becomes the happiness of tomorrow.",
|
||||
Various,Rene Descartes,"Conquer yourself rather than the world.",
|
||||
Various,Voltaire,"Everything you say should be true, but not everything true should be said.",
|
||||
Various,Elizabeth Barrett Browning,"Silence is the best response to a fool.",
|
||||
Various,Elizabeth Barrett Browning,"Silence is the best response to a fool.",
|
||||
Various,Bertrand Russell,"The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts."
|
Can't render this file because it has a wrong number of fields in line 65.
|
74
docs/FAQ.md
74
docs/FAQ.md
@ -3,31 +3,38 @@
|
||||
|
||||
<details><summary>What is PowerShell?</summary>
|
||||
|
||||
**PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.**
|
||||
|
||||
**PowerShell is a cross-platform task automation solution made up of a command-line shell, a scripting language, and a configuration management framework. PowerShell runs on Linux, Mac OS, and Windows.**
|
||||
</details>
|
||||
|
||||
<details><summary>Why use PowerShell?</summary>
|
||||
|
||||
✔️ **It's powerful** - fully control your computer
|
||||
* **It's powerful** - fully control your computer.
|
||||
* **It's easy to learn** - see the tutorial at: https://www.guru99.com/powershell-tutorial.html.
|
||||
* **It's cross-platform** - available for Linux, Mac OS and Windows.
|
||||
* **It's open-source and free** - see the Github repository at: https://github.com/PowerShell/PowerShell.
|
||||
* **It's fully documented** - see the official documentation at: https://docs.microsoft.com/en-us/powershell.
|
||||
</details>
|
||||
|
||||
✔️ **It's easy to learn** - see the tutorial at: https://www.guru99.com/powershell-tutorial.html
|
||||
<details><summary>How to learn PowerShell?</summary>
|
||||
|
||||
✔️ **It's cross-platform** - available for Linux, Mac OS and Windows
|
||||
|
||||
✔️ **It's open-source and free** - see the Github repository at: https://github.com/PowerShell/PowerShell
|
||||
|
||||
✔️ **It's fully documented** - see the official documentation at: https://docs.microsoft.com/en-us/powershell
|
||||
* **Please find tutorials at:** https://www.guru99.com/powershell-tutorial.html
|
||||
* **See a cheat sheet at:** [PowerShell/Docs/cheat-sheet.md](cheat-sheet.md)
|
||||
* **Visit the official PowerShell documentation at:** https://docs.microsoft.com/en-us/powershell/
|
||||
</details>
|
||||
|
||||
<details><summary>How to install PowerShell on Linux?</summary>
|
||||
|
||||
1. **On Linux with Snap support just execute:**
|
||||
1. **Your Linux supports Snap packages? Then execute:**
|
||||
```
|
||||
$ snap install PowerShell
|
||||
$ ln -s /snap/bin/pwsh /usr/bin/pwsh
|
||||
$ sudo snap install PowerShell
|
||||
$ sudo ln -s /snap/bin/pwsh /usr/bin/pwsh
|
||||
```
|
||||
2. **Otherwise, please visit:** https://github.com/PowerShell/PowerShell **and scroll down to: 'Get PowerShell'.**
|
||||
2. **Otherwise, visit:** https://github.com/PowerShell/PowerShell **and scroll down to: *Get PowerShell*.**
|
||||
3. **Want to set PowerShell as your default shell?**
|
||||
* Make sure the file **/etc/shells** (contains valid login shells) has a **/usr/bin/pwsh** line, otherwise add it.
|
||||
* Now execute: `chsh -s /usr/bin/pwsh <USERNAME>` (replace <USERNAME> by your user name).
|
||||
4. **SSH login is too verbose?**
|
||||
* Just execute: `echo > ~/.hushlogin`
|
||||
</details>
|
||||
|
||||
<details><summary>How to install PowerShell on MacOS?</summary>
|
||||
@ -37,23 +44,23 @@
|
||||
|
||||
<details><summary>How to install PowerShell on Windows?</summary>
|
||||
|
||||
**Good news:** it's preinstalled, **but** the script execution policy is *restricted* (forbidden) by default! To change this: open the *Windows PowerShell (Admin)* console and enter:
|
||||
**It's already preinstalled, but** the script execution policy is *restricted* (forbidden) by default! **Open the *Windows PowerShell (Admin)* console and enter:**
|
||||
```
|
||||
> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
||||
```
|
||||
**NOTE:** the group policy object (GPO) settings of your organization might disallow changes. In that case contact your system administrator for help.
|
||||
</details>
|
||||
|
||||
<details><summary>How to get the Mega collection of PowerShell scripts?</summary>
|
||||
<details><summary>How to get the 500+ PowerShell sample scripts?</summary>
|
||||
|
||||
1. **When using Git, execute in a terminal window:** `> git clone https://github.com/fleschutz/PowerShell`
|
||||
1. **When using Git, execute in a terminal window:** `git clone https://github.com/fleschutz/PowerShell`
|
||||
2. **Otherwise, download and unzip it from:** https://github.com/fleschutz/PowerShell/archive/master.zip
|
||||
</details>
|
||||
|
||||
<details><summary>How to execute PowerShell scripts on Windows?</summary>
|
||||
|
||||
1. **In the Windows desktop:** right-click the script and select: *Execute with PowerShell*
|
||||
2. **On the command-line:** launch a terminal application (e.g. *Windows Terminal*), then type: `./<SCRIPT>.ps1`.
|
||||
2. **On the command-line:** launch a terminal application (e.g. *Windows Terminal*), then type: `cd <PATH>`, then: `./<SCRIPT>.ps1`.
|
||||
3. **By remote login:** use *SSH* to login to the Windows machine, then type: `cd <PATH>`, then: `./<SCRIPT>.ps1`.
|
||||
4. **By context menu:** see below.
|
||||
5. **By voice control:** see repo [talk2windows](https://github.com/fleschutz/talk2windows) for more information.
|
||||
@ -75,23 +82,28 @@
|
||||
|
||||
<details><summary>How to execute PowerShell scripts in Jenkins?</summary>
|
||||
|
||||
1. **Install the Jenkins plugin:** `PowerShell plugin` (it uses PowerShell.exe on Windows and pwsh on Linux).
|
||||
1. **Install the Jenkins plugin** *"PowerShell plugin"* from https://plugins.jenkins.io/ (the plugin uses PowerShell.exe on Windows and pwsh on Linux).
|
||||
2. **Add or reference your PowerShell scripts in the Jenkins jobs or in your Jenkinsfiles.**
|
||||
</details>
|
||||
|
||||
<details><summary>How to learn PowerShell?</summary>
|
||||
<details><summary>What about PowerShell security?</summary>
|
||||
|
||||
* **Please find tutorials at:** https://www.guru99.com/powershell-tutorial.html
|
||||
* **See a cheat sheet at:** [PowerShell/Docs/cheat-sheet.md](cheat-sheet.md)
|
||||
* **The official PowerShell documentation can be found here:** https://docs.microsoft.com/en-us/powershell/
|
||||
1. **DO NOT execute scripts from untrusted sources! (rule applies to any executable)**
|
||||
2. **CHECK the script content for strange things prior execution.**
|
||||
3. **Prefer SSH Remoting instead of PowerShell Remoting**
|
||||
4. **More recommendations by NSA and cyber security centers in the U.S. (CISA), New Zealand (NZ NCSC), and the U.K. (NCSC-UK) can be found here:** https://media.defense.gov/2022/Jun/22/2003021689/-1/-1/1/CSI_KEEPING_POWERSHELL_SECURITY_MEASURES_TO_USE_AND_EMBRACE_20220622.PDF
|
||||
</details>
|
||||
|
||||
<details><summary>How to get the ultimate PowerShell experience?</summary>
|
||||
|
||||
1. **Install *PowerShell* (free) on all your Linux/Mac OS/Windows machines and configure it as your default shell.**
|
||||
2. **Install an *SSH client & server* (free) on all your Linux/Mac OS/Windows machines for remote control via SSH.**
|
||||
3. **Install *Windows Terminal* (free) on Windows with 50% transparency, font 'Fira Code' and no PowerShell banner message.**
|
||||
4. **Install *Visual Studio Code* (free) with plugin 'PowerShell' to edit PowerShell scripts.**
|
||||
5. **Install this *Mega Collection of PowerShell scripts* and set the PATH environment variable to it.**
|
||||
6. **Use an own PowerShell profile, e.g. execute: './update-powershell-profile.ps1'**
|
||||
</details>
|
||||
|
||||
<details><summary>What about security?</summary>
|
||||
|
||||
1. **Execute scripts only that you trust (and/or where you have checked the code before)!**
|
||||
2. **Prefer SSH Remoting instead of PowerShell Remoting**
|
||||
3. **More recommendations by NSA and cyber security centers in the U.S. (CISA), New Zealand (NZ NCSC), and the U.K. (NCSC-UK) can be found here:** https://media.defense.gov/2022/Jun/22/2003021689/-1/-1/1/CSI_KEEPING_POWERSHELL_SECURITY_MEASURES_TO_USE_AND_EMBRACE_20220622.PDF
|
||||
</details>
|
||||
|
||||
<details><summary>Why do some scripts show gibberish characters?</summary>
|
||||
|
||||
@ -100,12 +112,6 @@
|
||||
**Use a modern one such as *Windows Terminal*, please.**
|
||||
</details>
|
||||
|
||||
<details><summary>How to configure PowerShell as my default shell on Linux?</summary>
|
||||
|
||||
1. Make sure PowerShell is installed, then **execute: `chsh -s /usr/bin/pwsh USERNAME`** (replace USERNAME by your user name).
|
||||
2. In case you experience an "invalid shell" error, **add the line "/usr/bin/pwsh" to /etc/shells.**
|
||||
</details>
|
||||
|
||||
<details><summary>How to set a custom PowerShell profile?</summary>
|
||||
|
||||
**Execute: `./update-powershell-profile.ps1` in the *Scripts* subfolder, this will install **my-profile.ps1** as your PowerShell profile. It's a nice looking basic profile and can easily be adapted to your needs.**
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *add-firewall-rules.ps1*
|
||||
========================
|
||||
The *add-firewall-rules.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script adds firewall rules for the given executable. Administrator rights are required.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./add-firewall-rules.ps1 [[-PathToExecutables] <String>] [[-Direction] <String>] [[-FirewallProfile] <Array>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/add-firewall-rules.ps1 [[-PathToExecutables] <String>] [[-Direction] <String>] [[-FirewallProfile] <Array>] [<CommonParameters>]
|
||||
|
||||
-PathToExecutables <String>
|
||||
Specifies the path to the executables.
|
||||
@ -113,4 +113,4 @@ try {
|
||||
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of add-firewall-rules.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *alert.ps1*
|
||||
========================
|
||||
The *alert.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script handles and escalates the given alert message.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./alert.ps1 [[-Message] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/alert.ps1 [[-Message] <String>] [<CommonParameters>]
|
||||
|
||||
-Message <String>
|
||||
Specifies the alert message
|
||||
@ -71,4 +71,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of alert.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *build-repo.ps1*
|
||||
========================
|
||||
The *build-repo.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script builds a Git repository by supporting build systems such as: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./build-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
|
||||
|
||||
-path <String>
|
||||
Specifies the path to the Git repository (default is current working directory)
|
||||
@ -28,7 +28,7 @@ Example
|
||||
PS> ./build-repo.ps1 C:\Repos\ninja
|
||||
⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results...
|
||||
...
|
||||
✔️ Built 📂ninja repository in 47 sec.
|
||||
✅ Built 📂ninja repository in 47 sec.
|
||||
|
||||
```
|
||||
|
||||
@ -54,7 +54,7 @@ Script Content
|
||||
PS> ./build-repo.ps1 C:\Repos\ninja
|
||||
⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results...
|
||||
...
|
||||
✔️ Built 📂ninja repository in 47 sec.
|
||||
✅ Built 📂ninja repository in 47 sec.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -188,7 +188,7 @@ try {
|
||||
|
||||
$repoDirName = (Get-Item "$path").Name
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Built 📂$repoDirName repository in $elapsed sec."
|
||||
"✅ Built 📂$repoDirName repository in $elapsed sec."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -196,4 +196,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of build-repo.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *build-repos.ps1*
|
||||
========================
|
||||
The *build-repos.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script builds all Git repositories in a folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
|
||||
|
||||
-ParentDir <String>
|
||||
Specifies the path to the parent folder
|
||||
@ -74,7 +74,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ built $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
"✅ Built $FolderCount Git repositories at 📂$ParentDirName in $Elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -82,4 +82,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of build-repos.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-autostart.ps1*
|
||||
========================
|
||||
The *cd-autostart.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's autostart folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-autostart.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-autostart.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,12 +47,12 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "$HOME/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Autostart folder at 📂$Path doesn't exist (yet)"
|
||||
$path = Resolve-Path "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
|
||||
if (-not(Test-Path "$path" -pathType container)) {
|
||||
throw "Autostart folder at 📂$path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -60,4 +60,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-autostart.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-crashdumps.ps1*
|
||||
========================
|
||||
The *cd-crashdumps.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the crash dumps directory (Windows only). Whenever a software crashes and crash dumps are enabled(!) a crash dump file is written. This file helps to identify the reason for the crash.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-crashdumps.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-crashdumps.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -63,4 +63,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-crashdumps.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-desktop.ps1*
|
||||
========================
|
||||
The *cd-desktop.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's desktop folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-desktop.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-desktop.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,20 +48,20 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "~/Desktop"
|
||||
$path = Resolve-Path "~/Desktop"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('DesktopDirectory')
|
||||
$path = [Environment]::GetFolderPath('DesktopDirectory')
|
||||
}
|
||||
if (Test-Path "$Path" -pathType container) {
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (Test-Path "$path" -pathType container) {
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
}
|
||||
throw "User's desktop folder at 📂$Path doesn't exist (yet)"
|
||||
throw "User's desktop folder at 📂$path doesn't exist (yet)"
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-desktop.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-docs.ps1*
|
||||
========================
|
||||
The *cd-docs.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the documents folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-docs.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-docs.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,15 +48,15 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "$HOME/Documents"
|
||||
$path = Resolve-Path "~/Documents"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyDocuments')
|
||||
$path = [Environment]::GetFolderPath('MyDocuments')
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Documents folder at 📂$Path doesn't exist (yet)"
|
||||
if (-not(Test-Path "$path" -pathType container)) {
|
||||
throw "Documents folder at 📂$path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -64,4 +64,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-docs.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-downloads.ps1*
|
||||
========================
|
||||
The *cd-downloads.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's downloads folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-downloads.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-downloads.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,20 +48,20 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "~/Downloads"
|
||||
$path = Resolve-Path "~/Downloads"
|
||||
} else {
|
||||
$Path = (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path
|
||||
$path = (New-Object -ComObject Shell.Application).NameSpace('shell:Downloads').Self.Path
|
||||
}
|
||||
if (Test-Path "$Path" -pathType container) {
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (Test-Path "$path" -pathType container) {
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
}
|
||||
throw "User's downloads folder at 📂$Path doesn't exist (yet)"
|
||||
throw "User's downloads folder at 📂$path doesn't exist (yet)"
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-downloads.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-dropbox.ps1*
|
||||
========================
|
||||
The *cd-dropbox.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's Dropbox folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-dropbox.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-dropbox.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,17 +47,15 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "$HOME/Dropbox"
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Dropbox folder at 📂$Path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "~/Dropbox"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "No Dropbox folder at 📂$path - is Dropbox installed?" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-dropbox.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-etc.ps1*
|
||||
========================
|
||||
The *cd-etc.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the /etc directory.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-etc.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-etc.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,15 +48,15 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinx) {
|
||||
$Path = "/etc"
|
||||
$path = "/etc"
|
||||
} else {
|
||||
$Path = Resolve-Path "$env:WINDIR\System32\drivers\etc"
|
||||
$path = Resolve-Path "$env:WINDIR\System32\drivers\etc"
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "/etc directory at 📂$Path doesn't exist (yet)"
|
||||
if (-not(Test-Path "$path" -pathType container)) {
|
||||
throw "/etc directory at 📂$path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -64,4 +64,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-etc.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-fonts.ps1*
|
||||
========================
|
||||
The *cd-fonts.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the fonts folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-fonts.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-fonts.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,12 +47,12 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = [Environment]::GetFolderPath('Fonts')
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "Fonts folder at 📂$Path doesn't exist (yet)"
|
||||
$path = [Environment]::GetFolderPath('Fonts')
|
||||
if (-not(Test-Path "$path" -pathType container)) {
|
||||
throw "Fonts folder at 📂$path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -60,4 +60,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-fonts.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-home.ps1*
|
||||
========================
|
||||
The *cd-home.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's home directory.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-home.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-home.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -16,7 +16,7 @@ PS> ./cd-home.ps1 [<CommonParameters>]
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-home
|
||||
PS> ./cd-home.ps1
|
||||
📂C:\Users\Markus
|
||||
|
||||
```
|
||||
@ -38,7 +38,7 @@ Script Content
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the user's home directory.
|
||||
.EXAMPLE
|
||||
PS> ./cd-home
|
||||
PS> ./cd-home.ps1
|
||||
📂C:\Users\Markus
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -47,17 +47,15 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path -Path "~"
|
||||
if (Test-Path "$Path" -pathType container) {
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
exit 0 # success
|
||||
}
|
||||
throw "User's home folder at 📂$Path doesn't exist (yet)"
|
||||
$path = Resolve-Path "~"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Home folder at $path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-home.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
66
docs/cd-jenkins.md
Normal file
66
docs/cd-jenkins.md
Normal file
@ -0,0 +1,66 @@
|
||||
The *cd-jenkins.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the Jenkins home directory.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/Repos/PowerShell/scripts/cd-jenkins.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-jenkins
|
||||
📂C:\Users\Markus\.jenkins
|
||||
|
||||
```
|
||||
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Changes to the Jenkins home directory
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the Jenkins home directory.
|
||||
.EXAMPLE
|
||||
PS> ./cd-jenkins
|
||||
📂C:\Users\Markus\.jenkins
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
if (Test-Path "~/.jenkins" -pathType container) {
|
||||
$path = "~/.jenkins"
|
||||
} elseif (Test-Path "/var/snap/jenkins" -pathType container) {
|
||||
$path = "/var/snap/jenkins"
|
||||
} else {
|
||||
throw "No Jenkins home directory found - is Jenkins installed?"
|
||||
}
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
@ -1,5 +1,5 @@
|
||||
Script: *cd-logs.ps1*
|
||||
========================
|
||||
The *cd-logs.ps1* Script
|
||||
===========================
|
||||
|
||||
cd-logs.ps1
|
||||
|
||||
@ -38,9 +38,9 @@ function GetLogsDir {
|
||||
}
|
||||
|
||||
try {
|
||||
$Path = GetLogsDir
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = GetLogsDir
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -48,4 +48,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-logs.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-music.ps1*
|
||||
========================
|
||||
The *cd-music.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's music folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-music.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-music.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,20 +48,20 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "~/Music"
|
||||
$path = Resolve-Path "~/Music"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyMusic')
|
||||
$path = [Environment]::GetFolderPath('MyMusic')
|
||||
}
|
||||
if (Test-Path "$Path" -pathType container) {
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (Test-Path "$path" -pathType container) {
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
}
|
||||
throw "User's music folder at 📂$Path doesn't exist (yet)"
|
||||
throw "User's music folder at 📂$path doesn't exist (yet)"
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-music.ps1 as of 05/19/2024 10:25:16)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
61
docs/cd-nextcloud.md
Normal file
61
docs/cd-nextcloud.md
Normal file
@ -0,0 +1,61 @@
|
||||
The *cd-nextcloud.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's NextCloud folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/Repos/PowerShell/scripts/cd-nextcloud.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-nextcloud
|
||||
📂C:\Users\Markus\NextCloud
|
||||
|
||||
```
|
||||
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's NextCloud folder
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the user's NextCloud folder.
|
||||
.EXAMPLE
|
||||
PS> ./cd-nextcloud
|
||||
📂C:\Users\Markus\NextCloud
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
$path = Resolve-Path "~/NextCloud"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "No NextCloud folder at 📂$path - is NextCloud installed?" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-onedrive.ps1*
|
||||
========================
|
||||
The *cd-onedrive.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's OneDrive folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-onedrive.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-onedrive.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,17 +47,15 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "$HOME/OneDrive"
|
||||
if (-not(Test-Path "$Path" -pathType container)) {
|
||||
throw "OneDrive folder at 📂$Path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "~/OneDrive"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "No OneDrive folder at 📂$path - is OneDrive installed?" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-onedrive.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-pics.ps1*
|
||||
========================
|
||||
The *cd-pics.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's pictures folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-pics.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-pics.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,13 +48,13 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "$HOME/Pictures"
|
||||
$path = Resolve-Path "~/Pictures"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyPictures')
|
||||
$path = [Environment]::GetFolderPath('MyPictures')
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Pictures folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Pictures folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -62,4 +62,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-pics.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-public.ps1*
|
||||
========================
|
||||
The *cd-public.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the Public folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-public.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-public.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,13 +48,13 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "~/Public"
|
||||
$path = Resolve-Path "~/Public"
|
||||
} else {
|
||||
$Path = Resolve-Path "~/../Public"
|
||||
$path = Resolve-Path "~/../Public"
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Public folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Public folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -62,4 +62,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-public.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
63
docs/cd-recent.md
Normal file
63
docs/cd-recent.md
Normal file
@ -0,0 +1,63 @@
|
||||
The *cd-recent.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the 'recent' folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/Repos/PowerShell/scripts/cd-recent.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-recent
|
||||
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent
|
||||
|
||||
```
|
||||
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the 'recent' folder
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the 'recent' folder.
|
||||
.EXAMPLE
|
||||
PS> ./cd-recent
|
||||
📂C:\Users\Markus\AppData\Roaming\Microsoft\Windows\Recent
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
$path = [Environment]::GetFolderPath('Recent')
|
||||
if (-not(Test-Path "$path" -pathType container)) {
|
||||
throw "Recent folder at 📂$path doesn't exist (yet)"
|
||||
}
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
@ -1,5 +1,5 @@
|
||||
Script: *cd-recycle-bin.ps1*
|
||||
========================
|
||||
The *cd-recycle-bin.ps1* Script
|
||||
===========================
|
||||
|
||||
cd-recycle-bin.ps1
|
||||
|
||||
@ -39,7 +39,7 @@ function GetCurrentUserSID { [CmdletBinding()] param()
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$path = "$HOME/.local/share/Trash/"
|
||||
$path = "~/.local/share/Trash/"
|
||||
} else {
|
||||
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
||||
}
|
||||
@ -53,4 +53,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-recycle-bin.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,15 +1,15 @@
|
||||
Script: *cd-repo.ps1*
|
||||
========================
|
||||
The *cd-repo.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to a Git repository.
|
||||
This PowerShell script changes the working directory to the given local Git repository.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>]
|
||||
|
||||
-folderName <String>
|
||||
Specifies the folder name
|
||||
Specifies the folder name of the Git repository
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-repo.ps1 rust
|
||||
📂C:\Repos\rust • on Git branch: ## main ... origin/main
|
||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
||||
|
||||
```
|
||||
|
||||
@ -43,14 +43,14 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to a repository
|
||||
Sets the working directory to a repo
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to a Git repository.
|
||||
This PowerShell script changes the working directory to the given local Git repository.
|
||||
.PARAMETER folderName
|
||||
Specifies the folder name
|
||||
Specifies the folder name of the Git repository
|
||||
.EXAMPLE
|
||||
PS> ./cd-repo.ps1 rust
|
||||
📂C:\Repos\rust • on Git branch: ## main ... origin/main
|
||||
📂C:\Repos\rust · on branch: ## main ... origin/main
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -60,28 +60,35 @@ Script Content
|
||||
param([string]$folderName = "")
|
||||
|
||||
try {
|
||||
if ("$folderName" -eq "") { $folderName = Read-Host "Enter the folder name" }
|
||||
if ("$folderName" -eq "") { $folderName = Read-Host "Enter the Git repository's folder name" }
|
||||
|
||||
if (Test-Path "$HOME/Repos/" -pathType Container) { # try short name
|
||||
$path = "$HOME/Repos/"
|
||||
} elseif (Test-Path "$HOME/repos/" -pathType Container) {
|
||||
$path = "$HOME/repos/"
|
||||
} elseif (Test-Path "$HOME/Repositories/" -pathType Container) { # try long name
|
||||
$path = "$HOME/Repositories/"
|
||||
} elseif (Test-Path "$HOME/source/repos/" -pathType Container) { # try Visual Studio default
|
||||
$path = "$HOME/source/repos/"
|
||||
} elseif (Test-Path "/Repos/" -pathType Container) {
|
||||
$path = "/Repos/"
|
||||
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
|
||||
$path = "~/Repos"
|
||||
} elseif (Test-Path "~/repos" -pathType Container) {
|
||||
$path = "~/repos"
|
||||
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
|
||||
$path = "~/Repositories"
|
||||
} elseif (Test-Path "~/repositories" -pathType Container) {
|
||||
$path = "~/repositories"
|
||||
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
|
||||
$path = "/Repos"
|
||||
} elseif (Test-Path "/repos" -pathType Container) {
|
||||
$path = "/repos"
|
||||
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
|
||||
$path = "/Repositories"
|
||||
} elseif (Test-Path "/repositories" -pathType Container) {
|
||||
$path = "/repositories"
|
||||
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
|
||||
$path = "~/source/repos"
|
||||
} else {
|
||||
throw "The folder for Git repositories doesn't exist (yet)"
|
||||
throw "No Git repositories folder in your home directory or in the root folder yet"
|
||||
}
|
||||
$path += $folderName
|
||||
$path += "/" + $folderName
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "The path to 📂$path doesn't exist (yet)" }
|
||||
|
||||
if (-not(Test-Path "$path" -pathType Container)) { throw "The path to 📂$path doesn't exist (yet)" }
|
||||
$path = Resolve-Path "$path"
|
||||
Set-Location "$path"
|
||||
Write-Host "📂$path • on Git branch: " -noNewline
|
||||
|
||||
Write-Host "📂$path · on branch: " -noNewline
|
||||
& git status --short --branch --show-stash
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -90,4 +97,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repo.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-repos.ps1*
|
||||
========================
|
||||
The *cd-repos.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's Git repositories folder.
|
||||
This PowerShell script changes the working directory to the Git repositories folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-repos.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-repos.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-repos.ps1
|
||||
📂C:\Users\Markus\Repos
|
||||
📂C:\Repos
|
||||
|
||||
```
|
||||
|
||||
@ -34,14 +34,14 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's repos folder
|
||||
Sets the working directory to the Git repos folder
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the user's Git repositories folder.
|
||||
This PowerShell script changes the working directory to the Git repositories folder.
|
||||
.PARAMETER subpath
|
||||
Specifies an additional relative subpath (optional)
|
||||
.EXAMPLE
|
||||
PS> ./cd-repos.ps1
|
||||
📂C:\Users\Markus\Repos
|
||||
📂C:\Repos
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -49,21 +49,28 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
if (Test-Path "$HOME/Repos/" -pathType Container) { # try short name
|
||||
$path = "$HOME/Repos/"
|
||||
} elseif (Test-Path "$HOME/repos/" -pathType Container) {
|
||||
$path = "$HOME/repos/"
|
||||
} elseif (Test-Path "$HOME/Repositories/" -pathType Container) { # try long name
|
||||
$path = "$HOME/Repositories/"
|
||||
} elseif (Test-Path "$HOME/source/repos/" -pathType Container) { # try Visual Studio default
|
||||
$path = "$HOME/source/repos/"
|
||||
} elseif (Test-Path "/Repos/" -pathType Container) {
|
||||
$path = "/Repos/"
|
||||
if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
|
||||
$path = "~/Repos"
|
||||
} elseif (Test-Path "~/repos" -pathType Container) {
|
||||
$path = "~/repos"
|
||||
} elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
|
||||
$path = "~/Repositories"
|
||||
} elseif (Test-Path "~/repositories" -pathType Container) {
|
||||
$path = "~/repositories"
|
||||
} elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
|
||||
$path = "/Repos"
|
||||
} elseif (Test-Path "/repos" -pathType Container) {
|
||||
$path = "/repos"
|
||||
} elseif (Test-Path "/Repositories" -pathType Container) { # try long name
|
||||
$path = "/Repositories"
|
||||
} elseif (Test-Path "/repositories" -pathType Container) {
|
||||
$path = "/repositories"
|
||||
} elseif (Test-Path "~/source/repos" -pathType Container) { # try Visual Studio default
|
||||
$path = "~/source/repos"
|
||||
} else {
|
||||
throw "The folder for Git repositories doesn't exist (yet)"
|
||||
throw "No Git repositories folder in your home directory or in the root folder yet"
|
||||
}
|
||||
if (-not(Test-Path "$path" -pathType Container)) { throw "The path to 📂$path doesn't exist (yet)" }
|
||||
$path = Resolve-Path "$path"
|
||||
$path = Resolve-Path $path
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
@ -73,4 +80,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-root.ps1*
|
||||
========================
|
||||
The *cd-root.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-root.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-root.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,9 +47,9 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
if ($IsLinux) { $Path = "/" } else { $Path = "C:\" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if ($IsLinux) { $path = "/" } else { $path = "C:\" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -57,4 +57,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-root.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *cd-screenshots.ps1*
|
||||
========================
|
||||
The *cd-screenshots.ps1* Script
|
||||
===========================
|
||||
|
||||
cd-screenshots.ps1
|
||||
|
||||
@ -33,21 +33,21 @@ Script Content
|
||||
|
||||
function GetScreenshotsFolder {
|
||||
if ($IsLinux) {
|
||||
$Path = "$HOME/Pictures"
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Pictures folder at $Path doesn't exist (yet)" }
|
||||
if (Test-Path "$Path/Screenshots" -pathType container) { $Path = "$Path/Screenshots" }
|
||||
$path = "~/Pictures"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Pictures folder at $path doesn't exist (yet)" }
|
||||
if (Test-Path "$path/Screenshots" -pathType container) { $path = "$path/Screenshots" }
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyPictures')
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Pictures folder at $Path doesn't exist (yet)" }
|
||||
if (Test-Path "$Path\Screenshots" -pathType container) { $Path = "$Path\Screenshots" }
|
||||
$path = [Environment]::GetFolderPath('MyPictures')
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Pictures folder at $path doesn't exist (yet)" }
|
||||
if (Test-Path "$path\Screenshots" -pathType container) { $path = "$path\Screenshots" }
|
||||
}
|
||||
return $Path
|
||||
return $path
|
||||
}
|
||||
|
||||
try {
|
||||
$Path = GetScreenshotsFolder
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = GetScreenshotsFolder
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -55,4 +55,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-screenshots.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-scripts.ps1*
|
||||
========================
|
||||
The *cd-scripts.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-scripts.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-scripts.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -16,8 +16,8 @@ PS> ./cd-scripts.ps1 [<CommonParameters>]
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-scripts
|
||||
📂C:\Users\Markus\Repos\PowerShell\scripts
|
||||
PS> ./cd-scripts.ps1
|
||||
📂C:\Repos\PowerShell\scripts
|
||||
|
||||
```
|
||||
|
||||
@ -38,8 +38,8 @@ Script Content
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the PowerShell scripts folder.
|
||||
.EXAMPLE
|
||||
PS> ./cd-scripts
|
||||
📂C:\Users\Markus\Repos\PowerShell\scripts
|
||||
PS> ./cd-scripts.ps1
|
||||
📂C:\Repos\PowerShell\scripts
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-scripts.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-ssh.ps1*
|
||||
========================
|
||||
The *cd-ssh.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's SSH folder.
|
||||
This PowerShell script changes the working directory to the user's secure shell (SSH) folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-ssh.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-ssh.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -16,7 +16,7 @@ PS> ./cd-ssh.ps1 [<CommonParameters>]
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./cd-ssh
|
||||
PS> ./cd-ssh.ps1
|
||||
📂C:\Users\Markus\.ssh
|
||||
|
||||
```
|
||||
@ -34,11 +34,11 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Sets the working directory to the user's SSH folder
|
||||
Sets the working directory to the SSH folder
|
||||
.DESCRIPTION
|
||||
This PowerShell script changes the working directory to the user's SSH folder.
|
||||
This PowerShell script changes the working directory to the user's secure shell (SSH) folder.
|
||||
.EXAMPLE
|
||||
PS> ./cd-ssh
|
||||
PS> ./cd-ssh.ps1
|
||||
📂C:\Users\Markus\.ssh
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -47,15 +47,16 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "~/.ssh"
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "User's SSH folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
$path = "~/.ssh"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Your secure shell (SSH) folder at 📂$path doesn't exist (yet)" }
|
||||
$path = Resolve-Path "$path"
|
||||
Set-Location "$path"
|
||||
"📂$Path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
"⚠️ Error: $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-ssh.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *cd-temp.ps1*
|
||||
========================
|
||||
The *cd-temp.ps1* Script
|
||||
===========================
|
||||
|
||||
cd-temp.ps1
|
||||
|
||||
@ -39,10 +39,10 @@ function GetTempDir {
|
||||
}
|
||||
|
||||
try {
|
||||
$Path = GetTempDir
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Temporary folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = GetTempDir
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Temporary folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -50,4 +50,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-temp.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-templates.ps1*
|
||||
========================
|
||||
The *cd-templates.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the templates folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-templates.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-templates.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,13 +48,13 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "~/Templates"
|
||||
$path = Resolve-Path "~/Templates"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('Templates')
|
||||
$path = [Environment]::GetFolderPath('Templates')
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Templates folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Templates folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -62,4 +62,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-templates.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *cd-trash.ps1*
|
||||
========================
|
||||
The *cd-trash.ps1* Script
|
||||
===========================
|
||||
|
||||
cd-trash.ps1
|
||||
|
||||
@ -39,7 +39,7 @@ function GetCurrentUserSID { [CmdletBinding()] param()
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$path = "$HOME/.local/share/Trash/"
|
||||
$path = "~/.local/share/Trash/"
|
||||
} else {
|
||||
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)"
|
||||
}
|
||||
@ -53,4 +53,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-trash.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-up.ps1*
|
||||
========================
|
||||
The *cd-up.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to one directory level up.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-up.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-up.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path ".."
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path ".."
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-up2.ps1*
|
||||
========================
|
||||
The *cd-up2.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to two directory level up.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-up2.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-up2.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "../.."
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "../.."
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up2.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-up3.ps1*
|
||||
========================
|
||||
The *cd-up3.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to three directory levels up.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-up3.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-up3.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "../../.."
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "../../.."
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up3.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-up4.ps1*
|
||||
========================
|
||||
The *cd-up4.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to four directory levels up.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-up4.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-up4.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "../../../.."
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "../../../.."
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-up4.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-users.ps1*
|
||||
========================
|
||||
The *cd-users.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the users directory.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-users.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-users.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "$HOME/.."
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Users directory at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "~/.."
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Users directory at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-users.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-videos.ps1*
|
||||
========================
|
||||
The *cd-videos.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the user's videos folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-videos.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-videos.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -48,13 +48,13 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
$Path = Resolve-Path "$HOME/Videos"
|
||||
$path = Resolve-Path "~/Videos"
|
||||
} else {
|
||||
$Path = [Environment]::GetFolderPath('MyVideos')
|
||||
$path = [Environment]::GetFolderPath('MyVideos')
|
||||
}
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Videos folder at 📂$Path doesn't exist (yet)" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Videos folder at 📂$path doesn't exist (yet)" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -62,4 +62,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-videos.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *cd-windows.ps1*
|
||||
========================
|
||||
The *cd-windows.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script changes the working directory to the Windows directory.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./cd-windows.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/cd-windows.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -47,10 +47,10 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
$Path = Resolve-Path "$env:WINDIR"
|
||||
if (-not(Test-Path "$Path" -pathType container)) { throw "Windows directory at 📂$Path doesn't exist" }
|
||||
Set-Location "$Path"
|
||||
"📂$Path"
|
||||
$path = Resolve-Path "$env:WINDIR"
|
||||
if (-not(Test-Path "$path" -pathType container)) { throw "Windows directory at 📂$path doesn't exist" }
|
||||
Set-Location "$path"
|
||||
"📂$path"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -58,4 +58,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of cd-windows.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *change-wallpaper.ps1*
|
||||
========================
|
||||
The *change-wallpaper.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script downloads a random photo from Unsplash and sets it as desktop background.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>]
|
||||
|
||||
-Category <String>
|
||||
Specifies the photo category (beach, city, ...)
|
||||
@ -79,4 +79,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of change-wallpaper.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-admin.ps1*
|
||||
========================
|
||||
The *check-admin.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks if the user has administrator rights.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-admin.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-admin.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-admin.ps1
|
||||
✅ Yes
|
||||
✅ Yes, Markus has admin rights.
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script checks if the user has administrator rights.
|
||||
.EXAMPLE
|
||||
PS> ./check-admin.ps1
|
||||
✅ Yes
|
||||
✅ Yes, Markus has admin rights.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -53,18 +53,18 @@ try {
|
||||
$user = [Security.Principal.WindowsIdentity]::GetCurrent()
|
||||
$principal = (New-Object Security.Principal.WindowsPrincipal $user)
|
||||
if ($principal.IsInRole([Security.Principal.WindowsBuiltinRole]::Administrator)) {
|
||||
"✅ Yes"
|
||||
"✅ Yes, $USERNAME has admin rights."
|
||||
} elseif ($principal.IsInRole([Security.Principal.WindowsBuiltinRole]::Guest)) {
|
||||
"⚠️ No, guest rights only"
|
||||
"⚠️ No, $USERNAME, has guest rights only."
|
||||
} else {
|
||||
"⚠️ No, normal user rights only"
|
||||
"⚠️ No, $USERNAME has normal user rights only."
|
||||
}
|
||||
}
|
||||
exit 0 # success
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
"⚠️ Error: $($Error[0]) (in script line $($_.InvocationInfo.ScriptLineNumber))"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-admin.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-apps.ps1*
|
||||
========================
|
||||
The *check-apps.ps1* Script
|
||||
===========================
|
||||
|
||||
check-apps.ps1
|
||||
|
||||
@ -24,50 +24,47 @@ Script Content
|
||||
This PowerShell script queries the installed applications and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-apps.ps1
|
||||
✅ 119 Windows apps installed, 11 upgrades available
|
||||
⚠️ 150 Win apps installed, 72 upgrades available, 5 crash dump(s) found
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
function GetCrashDumps {
|
||||
function CountCrashDumps {
|
||||
[string]$path = Resolve-Path -Path "~\AppData\Local\CrashDumps"
|
||||
$count = 0
|
||||
$files = (Get-ChildItem -path "$path\*.dmp" -attributes !Directory)
|
||||
foreach($file in $files) { $count++ }
|
||||
return $count
|
||||
return $files.Count
|
||||
}
|
||||
|
||||
try {
|
||||
$statusIcon = "✅"
|
||||
$statusMsg = ""
|
||||
$status = "✅"
|
||||
if ($IsLinux) {
|
||||
Write-Progress "Querying installed applications..."
|
||||
$numPkgs = (apt list --installed 2>/dev/null).Count
|
||||
$numSnaps = (snap list).Count - 1
|
||||
Write-Progress -completed "Done."
|
||||
$statusMsg += "$numPkgs Debian packages, $numSnaps snaps installed"
|
||||
$reply = "$numPkgs Debian packages, $numSnaps snaps installed"
|
||||
} else {
|
||||
Write-Progress "Querying installed apps..."
|
||||
$Apps = Get-AppxPackage
|
||||
$apps = Get-AppxPackage
|
||||
Write-Progress -completed "Done."
|
||||
$statusMsg = "$($Apps.Count) Win apps installed"
|
||||
$reply = "$($apps.Count) Win apps installed"
|
||||
|
||||
[int]$numNonOk = 0
|
||||
foreach($App in $Apps) { if ($App.Status -ne "Ok") { $numNonOk++ } }
|
||||
if ($numNonOk -gt 0) { $statusIcon = "⚠️"; $statusMsg += ", $numNonOk non-ok" }
|
||||
foreach($app in $apps) { if ($app.Status -ne "Ok") { $numNonOk++ } }
|
||||
if ($numNonOk -gt 0) { $status = "⚠️"; $reply += ", $numNonOk non-ok" }
|
||||
|
||||
[int]$numErrors = (Get-AppxLastError)
|
||||
if ($numErrors -gt 0) { $statusIcon = "⚠️"; $statusMsg += ", $numErrors errors" }
|
||||
if ($numErrors -gt 0) { $status = "⚠️"; $reply += ", $numErrors errors" }
|
||||
|
||||
$numUpdates = (winget upgrade --include-unknown).Count - 5
|
||||
$statusMsg += ", $numUpdates upgrades available"
|
||||
$reply += ", $numUpdates upgrades available"
|
||||
|
||||
$crashDumps = GetCrashDumps
|
||||
if ($crashDumps -ne 0) { $statusIcon = "⚠️"; $statusMsg += ", $crashDumps crash dumps found" }
|
||||
$numCrashDumps = CountCrashDumps
|
||||
if ($numCrashDumps -ne 0) { $status = "⚠️"; $reply += ", $numCrashDumps crash dump(s) found" }
|
||||
}
|
||||
Write-Host "$statusIcon $statusMsg"
|
||||
Write-Host "$status $reply"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -75,4 +72,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-apps.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-bios.ps1*
|
||||
========================
|
||||
The *check-bios.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the BIOS status and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-bios.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-bios.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-bios.ps1
|
||||
✅ BIOS model P62 v02.67 by HP (version HPQOEM - 5, S/N CZC1080B01)
|
||||
✅ BIOS model P62 v02.67, version HPQOEM - 5, S/N CZC1080B01 by HP
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script queries the BIOS status and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-bios.ps1
|
||||
✅ BIOS model P62 v02.67 by HP (version HPQOEM - 5, S/N CZC1080B01)
|
||||
✅ BIOS model P62 v02.67, version HPQOEM - 5, S/N CZC1080B01 by HP
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -48,27 +48,26 @@ Script Content
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
Write-Progress "Querying BIOS details..."
|
||||
$model = (sudo dmidecode -s system-product-name)
|
||||
if ("$model" -ne "") {
|
||||
$version = (sudo dmidecode -s bios-version)
|
||||
$releaseDate = (sudo dmidecode -s bios-release-date)
|
||||
$manufacturer = (sudo dmidecode -s system-manufacturer)
|
||||
Write-Host "✅ BIOS model $model by $manufacturer (version $version of $releaseDate)"
|
||||
}
|
||||
Write-Progress -completed "."
|
||||
if ("$model" -eq "") { exit 0 } # no information
|
||||
Write-Progress "Querying BIOS details..."
|
||||
$version = (sudo dmidecode -s bios-version)
|
||||
$releaseDate = (sudo dmidecode -s bios-release-date)
|
||||
$manufacturer = (sudo dmidecode -s system-manufacturer)
|
||||
Write-Progress -completed "Done."
|
||||
} else {
|
||||
$BIOS = Get-CimInstance -ClassName Win32_BIOS
|
||||
$model = $BIOS.Name.Trim()
|
||||
$version = $BIOS.Version.Trim()
|
||||
$serialNumber = $BIOS.SerialNumber.Trim()
|
||||
$manufacturer = $BIOS.Manufacturer.Trim()
|
||||
if ($serialNumber -eq "To be filled by O.E.M.") {
|
||||
Write-Host "✅ BIOS model $model by $manufacturer (version $version)"
|
||||
} else {
|
||||
Write-Host "✅ BIOS model $model by $manufacturer (version $version, S/N $serialNumber)"
|
||||
}
|
||||
$details = Get-CimInstance -ClassName Win32_BIOS
|
||||
$model = $details.Name.Trim()
|
||||
$version = $details.Version.Trim()
|
||||
$serial = $details.SerialNumber.Trim()
|
||||
$manufacturer = $details.Manufacturer.Trim()
|
||||
}
|
||||
if ($model -eq "To be filled by O.E.M.") { $model = "N/A" }
|
||||
if ($version -eq "To be filled by O.E.M.") { $version = "N/A" }
|
||||
if ("$releaseDate" -ne "") { $releaseDate = " of $releaseDate" }
|
||||
if ("$serial" -eq "") { $serial = "N/A" }
|
||||
if ($serial -eq "To be filled by O.E.M.") { $serial = "N/A" }
|
||||
Write-Host "✅ BIOS model $model, version $($version)$($releaseDate), S/N $serial by $manufacturer"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -76,4 +75,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-bios.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-cpu.ps1*
|
||||
========================
|
||||
The *check-cpu.ps1* Script
|
||||
===========================
|
||||
|
||||
check-cpu.ps1
|
||||
|
||||
@ -61,7 +61,7 @@ function GetCPUTemperature {
|
||||
}
|
||||
|
||||
try {
|
||||
Write-Progress "Querying CPU status... "
|
||||
Write-Progress "Querying CPU status..."
|
||||
$status = "✅"
|
||||
$arch = GetCPUArchitecture
|
||||
if ($IsLinux) {
|
||||
@ -74,26 +74,29 @@ try {
|
||||
$details = Get-WmiObject -Class Win32_Processor
|
||||
$cpuName = $details.Name.trim()
|
||||
$arch = "$arch, "
|
||||
$deviceID = "$($details.DeviceID), "
|
||||
$speed = "$($details.MaxClockSpeed)MHz, "
|
||||
$socket = "$($details.SocketDesignation) socket, "
|
||||
$deviceID = ", $($details.DeviceID)"
|
||||
$speed = ", $($details.MaxClockSpeed)MHz"
|
||||
$socket = ", $($details.SocketDesignation) socket"
|
||||
}
|
||||
$cores = [System.Environment]::ProcessorCount
|
||||
$celsius = GetCPUTemperature
|
||||
if ($celsius -eq 99999.9) {
|
||||
$temp = "no temp"
|
||||
$temp = ""
|
||||
} elseif ($celsius -gt 80) {
|
||||
$temp = ", $($celsius)°C TOO HOT"
|
||||
$status = "⚠️"
|
||||
} elseif ($celsius -gt 50) {
|
||||
$temp = "$($celsius)°C"
|
||||
$temp = ", $($celsius)°C HOT"
|
||||
$status = "⚠️"
|
||||
} elseif ($celsius -lt 0) {
|
||||
$temp = "$($celsius)°C"
|
||||
$temp = ", $($celsius)°C TOO COLD"
|
||||
$status = "⚠️"
|
||||
} else {
|
||||
$temp = "$($celsius)°C"
|
||||
$temp = ", $($celsius)°C"
|
||||
}
|
||||
|
||||
Write-Progress -completed "Done."
|
||||
Write-Host "$status $cpuName ($($arch)$cores cores, $($deviceID)$($speed)$($socket)$temp)"
|
||||
Write-Host "$status $cpuName ($($arch)$cores cores$($temp)$($deviceID)$($speed)$($socket))"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -101,4 +104,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-cpu.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-credentials.ps1*
|
||||
========================
|
||||
The *check-credentials.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script asks for credentials and checks them against saved ones ("$HOME\my.credentials" by default).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>]
|
||||
|
||||
-TargetFile <String>
|
||||
Specifies the target file ("$HOME\my.credentials" by default)
|
||||
@ -27,7 +27,7 @@ Example
|
||||
```powershell
|
||||
PS> ./check-credentials.ps1
|
||||
Enter username and password, please.
|
||||
✔️ Your credentials are correct.
|
||||
✅ Your credentials are correct.
|
||||
|
||||
```
|
||||
|
||||
@ -52,7 +52,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./check-credentials.ps1
|
||||
Enter username and password, please.
|
||||
✔️ Your credentials are correct.
|
||||
✅ Your credentials are correct.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -74,7 +74,7 @@ try {
|
||||
$pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password))
|
||||
if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." }
|
||||
|
||||
"✔️ Your credentials are correct."
|
||||
"✅ Your credentials are correct."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -82,4 +82,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-credentials.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-day.ps1*
|
||||
========================
|
||||
The *check-day.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script determines and speaks the current day by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-day.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-day.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-day
|
||||
✔️ It's Sunday.
|
||||
✅ It's Sunday.
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script determines and speaks the current day by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-day
|
||||
✔️ It's Sunday.
|
||||
✅ It's Sunday.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -57,4 +57,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-day.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-dns.ps1*
|
||||
========================
|
||||
The *check-dns.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script measures the DNS resolution speed (using 100 popular domains) and prints it.
|
||||
This PowerShell script measures the DNS resolution speed using 100 internet domains and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-dns.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-dns.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-dns.ps1
|
||||
✅ DNS resolves 56.5 domains per second
|
||||
✅ Internet DNS: 33.6ms lookup time
|
||||
|
||||
```
|
||||
|
||||
@ -36,10 +36,10 @@ Script Content
|
||||
.SYNOPSIS
|
||||
Check the DNS resolution
|
||||
.DESCRIPTION
|
||||
This PowerShell script measures the DNS resolution speed (using 100 popular domains) and prints it.
|
||||
This PowerShell script measures the DNS resolution speed using 100 internet domains and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-dns.ps1
|
||||
✅ DNS resolves 56.5 domains per second
|
||||
✅ Internet DNS: 33.6ms lookup time
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -47,24 +47,23 @@ Script Content
|
||||
#>
|
||||
|
||||
try {
|
||||
Write-Progress "Measuring DNS resolution..."
|
||||
$table = Import-CSV "$PSScriptRoot/../data/popular-domains.csv"
|
||||
$numRows = $table.Length
|
||||
|
||||
$stopWatch = [system.diagnostics.stopwatch]::startNew()
|
||||
if ($IsLinux) {
|
||||
foreach($row in $table){$nop=dig $row.Domain +short}
|
||||
} else {
|
||||
Clear-DnsClientCache
|
||||
foreach($row in $table){$nop=Resolve-DNSName $row.Domain}
|
||||
}
|
||||
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
|
||||
Write-Progress -completed " "
|
||||
$average = [math]::round($numRows / $elapsed, 1)
|
||||
if ($average -lt 10.0) {
|
||||
Write-Host "⚠️ DNS resolves $average domains per second only"
|
||||
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds * 1000.0
|
||||
$speed = [math]::round($elapsed / $table.Length, 1)
|
||||
if ($speed -lt 10.0) {
|
||||
Write-Output "✅ Internet DNS: $($speed)ms excellent lookup time"
|
||||
} elseif ($speed -lt 100.0) {
|
||||
Write-Output "✅ Internet DNS: $($speed)ms lookup time"
|
||||
} else {
|
||||
Write-Host "✅ DNS resolves $average domains per second"
|
||||
Write-Output "⚠️ Internet DNS: $($speed)ms slow lookup time"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -73,4 +72,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-dns.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-drive-space.ps1*
|
||||
========================
|
||||
The *check-drive-space.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the given drive for free space left (10 GB by default).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-drive-space.ps1 [[-driveName] <String>] [[-minLevel] <Int64>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-drive-space.ps1 [[-driveName] <String>] [[-minLevel] <Int64>] [<CommonParameters>]
|
||||
|
||||
-driveName <String>
|
||||
Specifies the drive name to check (e.g. "C")
|
||||
@ -35,7 +35,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-drive-space.ps1 C
|
||||
✅ Drive C: has 442GB free (56% of 1TB used)
|
||||
✅ Drive C: uses 56% of 1TB - 442GB free
|
||||
|
||||
```
|
||||
|
||||
@ -61,7 +61,7 @@ Script Content
|
||||
Specifies the minimum level in bytes (10GB by default)
|
||||
.EXAMPLE
|
||||
PS> ./check-drive-space.ps1 C
|
||||
✅ Drive C: has 442GB free (56% of 1TB used)
|
||||
✅ Drive C: uses 56% of 1TB - 442GB free
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -101,7 +101,7 @@ try {
|
||||
Write-Host "⚠️ Drive $driveName with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
|
||||
} else {
|
||||
[int64]$percent = ($used * 100) / $total
|
||||
Write-Host "✅ Drive $driveName has $(Bytes2String $free) free ($percent% of $(Bytes2String $total) used)"
|
||||
Write-Host "✅ Drive $driveName uses $percent% of $(Bytes2String $total) - $(Bytes2String $free) free"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -110,4 +110,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-drive-space.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,19 +1,19 @@
|
||||
Script: *check-drives.ps1*
|
||||
========================
|
||||
The *check-drives.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the free space of all drives and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>]
|
||||
|
||||
-minLevel <Int64>
|
||||
Specifies the minimum warning level (10GB by default)
|
||||
Specifies the minimum warning level (5GB by default)
|
||||
|
||||
Required? false
|
||||
Position? 1
|
||||
Default value 10
|
||||
Default value 5368709120
|
||||
Accept pipeline input? false
|
||||
Accept wildcard characters? false
|
||||
|
||||
@ -26,8 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-drives.ps1
|
||||
✅ Drive C: has 512GB free (49% of 1TB used)
|
||||
✅ Drive D: has 641GB free (84% of 4TB used)
|
||||
✅ Drive C: uses 489GB (53%) of 930GB, D: uses 3TB (87%) of 4TB, E: is empty
|
||||
|
||||
```
|
||||
|
||||
@ -48,51 +47,54 @@ Script Content
|
||||
.DESCRIPTION
|
||||
This PowerShell script queries the free space of all drives and prints it.
|
||||
.PARAMETER minLevel
|
||||
Specifies the minimum warning level (10GB by default)
|
||||
Specifies the minimum warning level (5GB by default)
|
||||
.EXAMPLE
|
||||
PS> ./check-drives.ps1
|
||||
✅ Drive C: has 512GB free (49% of 1TB used)
|
||||
✅ Drive D: has 641GB free (84% of 4TB used)
|
||||
✅ Drive C: uses 489GB (53%) of 930GB, D: uses 3TB (87%) of 4TB, E: is empty
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([int64]$minLevel = 10) # 10 GB minimum
|
||||
param([int64]$minLevel = 5GB)
|
||||
|
||||
function Bytes2String { param([int64]$number)
|
||||
if ($number -lt 1KB) { return "$number bytes" }
|
||||
if ($number -lt 1MB) { return '{0:N0}KB' -f ($number / 1KB) }
|
||||
if ($number -lt 1GB) { return '{0:N0}MB' -f ($number / 1MB) }
|
||||
if ($number -lt 1TB) { return '{0:N0}GB' -f ($number / 1GB) }
|
||||
if ($number -lt 1PB) { return '{0:N0}TB' -f ($number / 1TB) }
|
||||
return '{0:N0}GB' -f ($number / 1PB)
|
||||
function Bytes2String { param([int64]$bytes)
|
||||
if ($bytes -lt 1KB) { return "$bytes bytes" }
|
||||
if ($bytes -lt 1MB) { return '{0:N0}KB' -f ($bytes / 1KB) }
|
||||
if ($bytes -lt 1GB) { return '{0:N0}MB' -f ($bytes / 1MB) }
|
||||
if ($bytes -lt 1TB) { return '{0:N0}GB' -f ($bytes / 1GB) }
|
||||
if ($bytes -lt 1PB) { return '{0:N0}TB' -f ($bytes / 1TB) }
|
||||
return '{0:N0}GB' -f ($bytes / 1PB)
|
||||
}
|
||||
|
||||
try {
|
||||
Write-Progress "Querying drives..."
|
||||
$drives = Get-PSDrive -PSProvider FileSystem
|
||||
$minLevel *= 1GB
|
||||
Write-Progress -completed " "
|
||||
Write-Progress -completed "Done."
|
||||
$status = "✅"
|
||||
$reply = "Drive "
|
||||
foreach($drive in $drives) {
|
||||
$details = (Get-PSDrive $drive.Name)
|
||||
if ($IsLinux) { $name = $drive.Name } else { $name = $drive.Name + ":" }
|
||||
[int64]$free = $details.Free
|
||||
[int64]$used = $details.Used
|
||||
[int64]$total = ($used + $free)
|
||||
|
||||
if ($reply -ne "Drive ") { $reply += ", " }
|
||||
if ($total -eq 0) {
|
||||
Write-Host "✅ Drive $name is empty"
|
||||
$reply += "$name is empty"
|
||||
} elseif ($free -eq 0) {
|
||||
Write-Host "⚠️ Drive $name with $(Bytes2String $total) is full"
|
||||
$status = "⚠️"
|
||||
$reply += "$name with ($(Bytes2String $total)) is FULL"
|
||||
} elseif ($free -lt $minLevel) {
|
||||
Write-Host "⚠️ Drive $name with $(Bytes2String $total) is nearly full, $(Bytes2String $free) free"
|
||||
$status = "⚠️"
|
||||
$reply += "$name nearly full ($(Bytes2String $free) of $(Bytes2String $total) left)"
|
||||
} else {
|
||||
[int64]$percent = ($used * 100) / $total
|
||||
Write-Host "✅ Drive $name has $(Bytes2String $free) free ($percent% of $(Bytes2String $total) used)"
|
||||
$reply += "$name uses $(Bytes2String $used) ($percent%) of $(Bytes2String $total)"
|
||||
}
|
||||
}
|
||||
Write-Host "$status $reply"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -100,4 +102,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-drives.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-dusk.ps1*
|
||||
========================
|
||||
The *check-dusk.ps1* Script
|
||||
===========================
|
||||
|
||||
check-dusk.ps1
|
||||
|
||||
@ -63,4 +63,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-dusk.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-easter-sunday.ps1*
|
||||
========================
|
||||
The *check-easter-sunday.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the time until Easter Sunday and replies by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-easter-sunday.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-easter-sunday.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -61,4 +61,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-easter-sunday.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-file-system.ps1*
|
||||
========================
|
||||
The *check-file-system.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the file system of a drive. It needs admin rights.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
|
||||
|
||||
-Drive <String>
|
||||
Specifies the drive to check
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-file-system C
|
||||
✔️ file system on drive C is clean
|
||||
✅ file system on drive C is clean
|
||||
|
||||
```
|
||||
|
||||
@ -50,7 +50,7 @@ Script Content
|
||||
Specifies the drive to check
|
||||
.EXAMPLE
|
||||
PS> ./check-file-system C
|
||||
✔️ file system on drive C is clean
|
||||
✅ file system on drive C is clean
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -75,4 +75,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-file.ps1*
|
||||
========================
|
||||
The *check-file.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script determines and prints the file type of the given file.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-file.ps1 [[-Path] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-file.ps1 [[-Path] <String>] [<CommonParameters>]
|
||||
|
||||
-Path <String>
|
||||
Specifies the path to the file
|
||||
@ -170,4 +170,4 @@ function Check-Header { param( $path )
|
||||
Check-Header $Path
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-file.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-firewall.ps1*
|
||||
========================
|
||||
The *check-firewall.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the status of the firewall and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-firewall.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-firewall.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -65,4 +65,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-firewall.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-gpu.ps1*
|
||||
========================
|
||||
The *check-gpu.ps1* Script
|
||||
===========================
|
||||
|
||||
check-gpu.ps1
|
||||
|
||||
@ -24,7 +24,7 @@ Script Content
|
||||
This PowerShell script queries the GPU status and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-gpu.ps1
|
||||
✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32-bit, 59Hz, driver 31.0.15.1740, status OK)
|
||||
✅ NVIDIA Quadro P400 GPU (2GB RAM, 3840x2160 pixels, 32-bit, 59Hz, driver 31.0.15.1740) - status OK
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -56,7 +56,7 @@ try {
|
||||
$RefreshRate = $Details.CurrentRefreshRate
|
||||
$DriverVersion = $Details.DriverVersion
|
||||
$Status = $Details.Status
|
||||
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion, status $Status)"
|
||||
Write-Host "✅ $Model GPU ($(Bytes2String $RAMSize) RAM, $($ResWidth)x$($ResHeight) pixels, $($BitsPerPixel)-bit, $($RefreshRate)Hz, driver $DriverVersion) - status $Status"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -65,4 +65,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-gpu.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-hardware.ps1*
|
||||
========================
|
||||
The *check-hardware.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the hardware details of the local computer and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-hardware.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-hardware.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -18,7 +18,7 @@ Example
|
||||
```powershell
|
||||
PS> ./check-hardware.ps1
|
||||
|
||||
H A R D W A R E
|
||||
=== H A R D W A R E ===
|
||||
✅ Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
|
||||
...
|
||||
|
||||
@ -43,7 +43,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./check-hardware.ps1
|
||||
|
||||
H A R D W A R E
|
||||
=== H A R D W A R E ===
|
||||
✅ Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
|
||||
...
|
||||
.LINK
|
||||
@ -52,10 +52,11 @@ Script Content
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
Write-Host "`n H A R D W A R E" -foregroundColor green
|
||||
Write-Host "`n === H A R D W A R E ===" -foregroundColor green
|
||||
& "$PSScriptRoot/check-cpu.ps1"
|
||||
& "$PSScriptRoot/check-ram.ps1"
|
||||
& "$PSScriptRoot/check-gpu.ps1"
|
||||
& "$PSScriptRoot/check-motherboard.ps1"
|
||||
& "$PSScriptRoot/check-bios.ps1"
|
||||
& "$PSScriptRoot/check-smart-devices.ps1"
|
||||
& "$PSScriptRoot/check-power.ps1"
|
||||
@ -63,4 +64,4 @@ Write-Host "`n H A R D W A R E" -foregroundColor green
|
||||
exit 0 # success
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-hardware.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-health.ps1*
|
||||
========================
|
||||
The *check-health.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the system health of the local computer (hardware, software, and network) and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-health.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-health.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -58,4 +58,4 @@ Script Content
|
||||
exit 0 # success
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-health.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-independence-day.ps1*
|
||||
========================
|
||||
The *check-independence-day.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-independence-day.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-independence-day.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -61,4 +61,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-independence-day.ps1 as of 05/19/2024 10:25:17)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-ipv4-address.ps1*
|
||||
========================
|
||||
The *check-ipv4-address.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the given IPv4 address for validity.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
|
||||
-Address <String>
|
||||
Specifies the IPv4 address to check
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
✅ IPv4 192.168.11.22 is valid
|
||||
|
||||
```
|
||||
|
||||
@ -50,7 +50,7 @@ Script Content
|
||||
Specifies the IPv4 address to check
|
||||
.EXAMPLE
|
||||
PS> ./check-ipv4-address 192.168.11.22
|
||||
✔️ IPv4 192.168.11.22 is valid
|
||||
✅ IPv4 192.168.11.22 is valid
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -72,7 +72,7 @@ try {
|
||||
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
|
||||
|
||||
if (IsIPv4AddressValid $Address) {
|
||||
"✔️ IPv4 $Address is valid"
|
||||
"✅ IPv4 $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid IPv4 address: $Address"
|
||||
@ -84,4 +84,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv4-address.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-ipv6-address.ps1*
|
||||
========================
|
||||
The *check-ipv6-address.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the given IPv6 address for validity
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>]
|
||||
|
||||
-Address <String>
|
||||
Specifies the IPv6 address to check
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
|
||||
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||
✅ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||
|
||||
```
|
||||
|
||||
@ -50,7 +50,7 @@ Script Content
|
||||
Specifies the IPv6 address to check
|
||||
.EXAMPLE
|
||||
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2
|
||||
✔️ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||
✅ IPv6 fe80::200:5aee:feaa:20a2 is valid
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -86,7 +86,7 @@ try {
|
||||
$Address = read-host "Enter IPv6 address to validate"
|
||||
}
|
||||
if (IsIPv6AddressValid $Address) {
|
||||
"✔️ IPv6 $Address is valid"
|
||||
"✅ IPv6 $Address is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid IPv6 address: $Address"
|
||||
@ -98,4 +98,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ipv6-address.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-iss-position.ps1*
|
||||
========================
|
||||
The *check-iss-position.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the position of the International Space Station (ISS) and replies by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-iss-position.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-iss-position.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -55,4 +55,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-iss-position.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-mac-address.ps1*
|
||||
========================
|
||||
The *check-mac-address.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the given MAC address for validity
|
||||
Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000000000000.
|
||||
@ -7,7 +7,7 @@ Supported MAC address formats are: 00:00:00:00:00:00 or 00-00-00-00-00-00 or 000
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>]
|
||||
|
||||
-MAC <String>
|
||||
Specifies the MAC address to check
|
||||
@ -27,7 +27,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-mac-address 11:22:33:44:55:66
|
||||
✔️ MAC address 11:22:33:44:55:66 is valid
|
||||
✅ MAC address 11:22:33:44:55:66 is valid
|
||||
|
||||
```
|
||||
|
||||
@ -52,7 +52,7 @@ Script Content
|
||||
Specifies the MAC address to check
|
||||
.EXAMPLE
|
||||
PS> ./check-mac-address 11:22:33:44:55:66
|
||||
✔️ MAC address 11:22:33:44:55:66 is valid
|
||||
✅ MAC address 11:22:33:44:55:66 is valid
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -75,7 +75,7 @@ try {
|
||||
$MAC = read-host "Enter MAC address to validate"
|
||||
}
|
||||
if (IsMACAddressValid $MAC) {
|
||||
"✔️ MAC address $MAC is valid"
|
||||
"✅ MAC address $MAC is valid"
|
||||
exit 0 # success
|
||||
} else {
|
||||
write-warning "Invalid MAC address: $MAC"
|
||||
@ -87,4 +87,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-mac-address.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-midnight.ps1*
|
||||
========================
|
||||
The *check-midnight.ps1* Script
|
||||
===========================
|
||||
|
||||
check-midnight.ps1
|
||||
|
||||
@ -60,4 +60,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-midnight.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-month.ps1*
|
||||
========================
|
||||
The *check-month.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-month.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-month.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-month
|
||||
✔️ It's December.
|
||||
✅ It's December.
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
|
||||
.EXAMPLE
|
||||
PS> ./check-month
|
||||
✔️ It's December.
|
||||
✅ It's December.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -57,4 +57,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-month.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-moon-phase.ps1*
|
||||
========================
|
||||
The *check-moon-phase.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script determines the Moon phase and answers by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-moon-phase.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-moon-phase.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -76,4 +76,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-moon-phase.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
62
docs/check-motherboard.md
Normal file
62
docs/check-motherboard.md
Normal file
@ -0,0 +1,62 @@
|
||||
The *check-motherboard.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script lists the motherboard details.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/Repos/PowerShell/scripts/check-motherboard.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-motherboard.ps1
|
||||
✅ Motherboard Calla_LC by LN
|
||||
|
||||
```
|
||||
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Lists motherboard details
|
||||
.DESCRIPTION
|
||||
This PowerShell script lists the motherboard details.
|
||||
.EXAMPLE
|
||||
PS> ./check-motherboard.ps1
|
||||
✅ Motherboard Calla_LC by LN
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
if ($IsLinux) {
|
||||
} else {
|
||||
$details = Get-WmiObject -Class Win32_BaseBoard
|
||||
"✅ Motherboard $($details.Product) by $($details.Manufacturer)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
@ -1,12 +1,12 @@
|
||||
Script: *check-network.ps1*
|
||||
========================
|
||||
The *check-network.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the network details of the local computer and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-network.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-network.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -20,8 +20,8 @@ PS> ./check-network.ps1
|
||||
|
||||
|
||||
|
||||
N E T W O R K
|
||||
✅ Online with 30ms latency (16ms..56ms, 0/10 loss)
|
||||
=== N E T W O R K ===
|
||||
✅ Firewall enabled
|
||||
...
|
||||
|
||||
```
|
||||
@ -39,14 +39,14 @@ Script Content
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks the network details
|
||||
Checks the network
|
||||
.DESCRIPTION
|
||||
This PowerShell script queries the network details of the local computer and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-network.ps1
|
||||
|
||||
N E T W O R K
|
||||
✅ Online with 30ms latency (16ms..56ms, 0/10 loss)
|
||||
=== N E T W O R K ===
|
||||
✅ Firewall enabled
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
@ -54,14 +54,17 @@ Script Content
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
Write-Host "`n N E T W O R K" -foregroundColor green
|
||||
& "$PSScriptRoot/ping-remote-hosts.ps1"
|
||||
Write-Host "`n === N E T W O R K ===" -foregroundColor green
|
||||
& "$PSScriptRoot/check-firewall"
|
||||
& "$PSScriptRoot/list-local-ip.ps1"
|
||||
& "$PSScriptRoot/ping-local-devices.ps1"
|
||||
& "$PSScriptRoot/list-network-shares.ps1"
|
||||
& "$PSScriptRoot/list-internet-ip.ps1"
|
||||
& "$PSScriptRoot/ping-internet.ps1"
|
||||
& "$PSScriptRoot/check-dns.ps1"
|
||||
& "$PSScriptRoot/check-vpn.ps1"
|
||||
& "$PSScriptRoot/list-public-ip.ps1"
|
||||
& "$PSScriptRoot/ping-local-hosts.ps1"
|
||||
& "$PSScriptRoot/list-ssh-key.ps1"
|
||||
exit 0 # success
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-network.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-noon.ps1*
|
||||
========================
|
||||
The *check-noon.ps1* Script
|
||||
===========================
|
||||
|
||||
check-noon.ps1
|
||||
|
||||
@ -59,4 +59,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-noon.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-os.ps1*
|
||||
========================
|
||||
The *check-os.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the operating system status and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-os.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-os.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-os.ps1
|
||||
✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
|
||||
✅ Windows 10 Pro 64-bit since 6/22/2021 (v10.0.19045, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script queries the operating system status and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-os.ps1
|
||||
✅ Windows 10 Pro 64-bit (v10.0.19045, since 6/22/2021, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
|
||||
✅ Windows 10 Pro 64-bit since 6/22/2021 (v10.0.19045, S/N 00123-45678-15135-AAOEM, P/K AB123-CD456-EF789-GH000-WFR6P)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -64,7 +64,7 @@ try {
|
||||
$InstallDate = $OSDetails.InstallDate
|
||||
|
||||
$ProductKey = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" -Name BackupProductKeyDefault).BackupProductKeyDefault
|
||||
Write-Host "✅ $Name $Arch (v$Version, since $($InstallDate.ToShortDateString()), S/N $Serial, P/K $ProductKey)"
|
||||
Write-Host "✅ $Name $Arch since $($InstallDate.ToShortDateString()) (v$Version, S/N $Serial, P/K $ProductKey)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -73,4 +73,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-os.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-outlook.ps1*
|
||||
========================
|
||||
The *check-outlook.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the inbox of Outlook for new/unread mails.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-outlook.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-outlook.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -65,4 +65,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-outlook.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-password.ps1*
|
||||
========================
|
||||
The *check-password.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the security status of the given password by haveibeenpwned.com
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-password.ps1 [[-password] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-password.ps1 [[-password] <String>] [<CommonParameters>]
|
||||
|
||||
-password <String>
|
||||
|
||||
@ -94,4 +94,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-password.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-pending-reboot.ps1*
|
||||
========================
|
||||
The *check-pending-reboot.ps1* Script
|
||||
===========================
|
||||
|
||||
check-pending-reboot.ps1
|
||||
|
||||
@ -41,50 +41,48 @@ function Test-RegistryValue { param([parameter(Mandatory=$true)][ValidateNotNull
|
||||
}
|
||||
|
||||
try {
|
||||
$Reason = ""
|
||||
$reply = "✅ No pending reboot"
|
||||
if ($IsLinux) {
|
||||
if (Test-Path "/var/run/reboot-required") {
|
||||
$Reason = "found: /var/run/reboot-required"
|
||||
Write-Host "⚠️ Pending reboot ($Reason)"
|
||||
$reply = "⚠️ Pending reboot (found: /var/run/reboot-required)"
|
||||
}
|
||||
} else {
|
||||
$reason = ""
|
||||
if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired") {
|
||||
$Reason += ", ...\Auto Update\RebootRequired"
|
||||
$reason += ", ...\Auto Update\RebootRequired"
|
||||
}
|
||||
if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\PostRebootReporting") {
|
||||
$Reason += ", ...\Auto Update\PostRebootReporting"
|
||||
$reason += ", ...\Auto Update\PostRebootReporting"
|
||||
}
|
||||
if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending") {
|
||||
$Reason += ", ...\Component Based Servicing\RebootPending"
|
||||
$reason += ", ...\Component Based Servicing\RebootPending"
|
||||
}
|
||||
if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\ServerManager\CurrentRebootAttempts") {
|
||||
$Reason += ", ...\ServerManager\CurrentRebootAttempts"
|
||||
$reason += ", ...\ServerManager\CurrentRebootAttempts"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing" -Value "RebootInProgress") {
|
||||
$Reason += ", ...\CurrentVersion\Component Based Servicing with 'RebootInProgress'"
|
||||
$reason += ", ...\CurrentVersion\Component Based Servicing with 'RebootInProgress'"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Component Based Servicing" -Value "PackagesPending") {
|
||||
$Reason += ", '...\CurrentVersion\Component Based Servicing' with 'PackagesPending'"
|
||||
$reason += ", '...\CurrentVersion\Component Based Servicing' with 'PackagesPending'"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager" -Value "PendingFileRenameOperations2") {
|
||||
$Reason += ", '...\CurrentControlSet\Control\Session Manager' with 'PendingFileRenameOperations2'"
|
||||
$reason += ", '...\CurrentControlSet\Control\Session Manager' with 'PendingFileRenameOperations2'"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" -Value "DVDRebootSignal") {
|
||||
$Reason += ", '...\Windows\CurrentVersion\RunOnce' with 'DVDRebootSignal'"
|
||||
$reason += ", '...\Windows\CurrentVersion\RunOnce' with 'DVDRebootSignal'"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon" -Value "JoinDomain") {
|
||||
$Reason += ", '...\CurrentControlSet\Services\Netlogon' with 'JoinDomain'"
|
||||
$reason += ", '...\CurrentControlSet\Services\Netlogon' with 'JoinDomain'"
|
||||
}
|
||||
if (Test-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlogon" -Value "AvoidSpnSet") {
|
||||
$Reason += ", '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'"
|
||||
$reason += ", '...\CurrentControlSet\Services\Netlogon' with 'AvoidSpnSet'"
|
||||
}
|
||||
if ($Reason -ne "") {
|
||||
Write-Host "⚠️ Pending reboot (registry got $($Reason.substring(2)))"
|
||||
if ($reason -ne "") {
|
||||
$reply = "⚠️ Pending reboot (registry got $($reason.substring(2)))"
|
||||
}
|
||||
}
|
||||
if ($Reason -eq "") {
|
||||
Write-Host "✅ No pending reboot"
|
||||
}
|
||||
Write-Host $reply
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -92,4 +90,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-pending-reboot.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
68
docs/check-pnp-devices.md
Normal file
68
docs/check-pnp-devices.md
Normal file
@ -0,0 +1,68 @@
|
||||
The *check-pnp-devices.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks all Plug'n'PLay devices connected to the local computer.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
/Repos/PowerShell/scripts/check-pnp-devices.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
WarningVariable, OutBuffer, PipelineVariable, and OutVariable.
|
||||
```
|
||||
|
||||
Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-pnp-devices.ps1
|
||||
|
||||
|
||||
|
||||
FriendlyName Status InstanceId
|
||||
------------ ------ ----------
|
||||
Microsoft-Controller OK ROOT\SPACEPORT\0000
|
||||
...
|
||||
|
||||
```
|
||||
|
||||
Notes
|
||||
-----
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
|
||||
Related Links
|
||||
-------------
|
||||
https://github.com/fleschutz/PowerShell
|
||||
|
||||
Script Content
|
||||
--------------
|
||||
```powershell
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Checks PnP devices
|
||||
.DESCRIPTION
|
||||
This PowerShell script checks all Plug'n'PLay devices connected to the local computer.
|
||||
.EXAMPLE
|
||||
PS> ./check-pnp-devices.ps1
|
||||
|
||||
FriendlyName Status InstanceId
|
||||
------------ ------ ----------
|
||||
Microsoft-Controller OK ROOT\SPACEPORT\0000
|
||||
...
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
Get-PnpDevice | Where-Object {$_.Status -like "Error"} | Format-Table -property FriendlyName,Status,InstanceId
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
||||
```
|
||||
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
@ -1,12 +1,12 @@
|
||||
Script: *check-power.ps1*
|
||||
========================
|
||||
The *check-power.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script queries the power status and prints it.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-power.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -17,7 +17,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-power.ps1
|
||||
⚠️ Battery at 9% · 54 min remaining · power scheme 'HP Optimized'
|
||||
⚠️ Battery 9% only with 54min remaining (power scheme is 'HP Optimized')
|
||||
|
||||
```
|
||||
|
||||
@ -39,7 +39,7 @@ Script Content
|
||||
This PowerShell script queries the power status and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-power.ps1
|
||||
⚠️ Battery at 9% · 54 min remaining · power scheme 'HP Optimized'
|
||||
⚠️ Battery 9% only with 54min remaining (power scheme is 'HP Optimized')
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -54,37 +54,36 @@ try {
|
||||
$details = [System.Windows.Forms.SystemInformation]::PowerStatus
|
||||
[int]$percent = 100 * $details.BatteryLifePercent
|
||||
[int]$remaining = $details.BatteryLifeRemaining / 60
|
||||
$powerScheme = (powercfg /getactivescheme)
|
||||
$powerScheme = $powerScheme -Replace "^(.*) \(",""
|
||||
$powerScheme = $powerScheme -Replace "\)$",""
|
||||
if ($details.PowerLineStatus -eq "Online") {
|
||||
if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
|
||||
$reply = "✅ AC powered"
|
||||
} elseif ($percent -ge 95) {
|
||||
$reply = "✅ Battery $percent% full"
|
||||
$reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
|
||||
} else {
|
||||
$reply = "✅ Battery charging ($percent%)"
|
||||
$reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
|
||||
}
|
||||
} else { # must be offline
|
||||
if (($remaining -eq 0) -and ($percent -ge 60)) {
|
||||
$reply = "✅ Battery $percent% full"
|
||||
$reply = "✅ Battery $percent% full (power scheme is '$powerScheme')"
|
||||
} elseif ($remaining -eq 0) {
|
||||
$reply = "✅ Battery at $percent%"
|
||||
$reply = "✅ Battery at $percent% (power scheme is '$powerScheme')"
|
||||
} elseif ($remaining -le 5) {
|
||||
$reply = "⚠️ Battery at $percent% · ONLY $($remaining)min remaining"
|
||||
$reply = "⚠️ Battery LOW ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
|
||||
} elseif ($remaining -le 30) {
|
||||
$reply = "⚠️ Battery at $percent% · only $($remaining)min remaining"
|
||||
$reply = "⚠️ Battery low ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
|
||||
} elseif ($percent -lt 10) {
|
||||
$reply = "⚠️ Battery at $percent% · $($remaining)min remaining"
|
||||
} elseif ($percent -ge 60) {
|
||||
$reply = "✅ Battery $percent% full · $($remaining)min remaining"
|
||||
$reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
|
||||
} elseif ($percent -ge 90) {
|
||||
$reply = "✅ Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
|
||||
} else {
|
||||
$reply = "✅ Battery at $percent% · $($remaining)min remaining"
|
||||
$reply = "✅ Battery $percent% with $($remaining)min remaining (power scheme is '$powerScheme') "
|
||||
}
|
||||
}
|
||||
$powerScheme = (powercfg /getactivescheme)
|
||||
$powerScheme = $powerScheme -Replace "^(.*) \(",""
|
||||
$powerScheme = $powerScheme -Replace "\)$",""
|
||||
$reply += " · power scheme '$powerScheme'"
|
||||
}
|
||||
Write-Output $reply
|
||||
Write-Host $reply
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -92,4 +91,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-power.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-powershell.ps1*
|
||||
========================
|
||||
The *check-powershell.ps1* Script
|
||||
===========================
|
||||
|
||||
check-powershell.ps1
|
||||
|
||||
@ -59,4 +59,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-powershell.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-ps1-file.ps1*
|
||||
========================
|
||||
The *check-ps1-file.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the given PowerShell script file(s) for validity.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>]
|
||||
|
||||
-filePattern <String>
|
||||
Specifies the file pattern to the PowerShell file(s)
|
||||
@ -26,7 +26,7 @@ Example
|
||||
-------
|
||||
```powershell
|
||||
PS> ./check-ps1-file *.ps1
|
||||
✔️ Valid PowerShell in myfile.ps1
|
||||
✅ Valid PowerShell in myfile.ps1
|
||||
|
||||
```
|
||||
|
||||
@ -50,7 +50,7 @@ Script Content
|
||||
Specifies the file pattern to the PowerShell file(s)
|
||||
.EXAMPLE
|
||||
PS> ./check-ps1-file *.ps1
|
||||
✔️ Valid PowerShell in myfile.ps1
|
||||
✅ Valid PowerShell in myfile.ps1
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -67,7 +67,7 @@ try {
|
||||
$syntaxError = @()
|
||||
[void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError)
|
||||
if ("$syntaxError" -ne "") { throw "$syntaxError" }
|
||||
"✔️ Valid PowerShell in $($file.Name)"
|
||||
"✅ Valid PowerShell in $($file.Name)"
|
||||
}
|
||||
exit 0 # success
|
||||
} catch {
|
||||
@ -76,4 +76,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ps1-file.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-ram.ps1*
|
||||
========================
|
||||
The *check-ram.ps1* Script
|
||||
===========================
|
||||
|
||||
check-ram.ps1
|
||||
|
||||
@ -24,7 +24,7 @@ Script Content
|
||||
This PowerShell script queries the status of the installed RAM memory modules and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-ram.ps1
|
||||
✅ 16GB DDR4 RAM @ 3200MHz by Micron (in CPU0/CPU0-DIMM3 @ 1.2V)
|
||||
✅ 16GB DDR4 RAM at 3200MHz/1.2V in CPU0/CPU0-DIMM3 by Micron
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -88,7 +88,7 @@ try {
|
||||
[float]$Voltage = $Bank.ConfiguredVoltage / 1000.0
|
||||
$Manufacturer = $Bank.Manufacturer
|
||||
$Location = "$($Bank.BankLabel)/$($Bank.DeviceLocator)"
|
||||
Write-Host "✅ $Capacity $Type @ $($Speed)MHz by $Manufacturer (in $Location @ $($Voltage)V)"
|
||||
Write-Host "✅ $Capacity $Type at $($Speed)MHz,$($Voltage)V in $Location by $Manufacturer"
|
||||
}
|
||||
}
|
||||
exit 0 # success
|
||||
@ -98,4 +98,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-ram.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-repo.ps1*
|
||||
========================
|
||||
The *check-repo.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script verifies the integrity of a local Git repository and performs maintenance tasks.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
|
||||
|
||||
-pathToRepo <String>
|
||||
Specifies the file path to the local Git repository (current working directory by default)
|
||||
@ -27,7 +27,7 @@ Example
|
||||
```powershell
|
||||
PS> ./check-repo.ps1 C:\MyRepo
|
||||
⏳ (1/10) Searching for Git executable... git version 2.41.0.windows.3
|
||||
⏳ (2/10) Checking local repository... 📂C:\MyRepo
|
||||
⏳ (2/10) Checking local repository... C:\MyRepo
|
||||
⏳ (3/10) Querying remote URL... git@github.com:fleschutz/PowerShell.git
|
||||
⏳ (4/10) Querying current branch... main
|
||||
⏳ (5/10) Fetching remote updates... OK
|
||||
@ -58,7 +58,7 @@ Script Content
|
||||
.EXAMPLE
|
||||
PS> ./check-repo.ps1 C:\MyRepo
|
||||
⏳ (1/10) Searching for Git executable... git version 2.41.0.windows.3
|
||||
⏳ (2/10) Checking local repository... 📂C:\MyRepo
|
||||
⏳ (2/10) Checking local repository... C:\MyRepo
|
||||
⏳ (3/10) Querying remote URL... git@github.com:fleschutz/PowerShell.git
|
||||
⏳ (4/10) Querying current branch... main
|
||||
⏳ (5/10) Fetching remote updates... OK
|
||||
@ -83,7 +83,7 @@ try {
|
||||
Write-Host "⏳ (2/10) Checking local repository... " -noNewline
|
||||
$FullPath = Resolve-Path "$pathToRepo"
|
||||
if (!(Test-Path "$FullPath" -pathType Container)) { throw "Can't access folder: $FullPath" }
|
||||
"📂$FullPath"
|
||||
"$FullPath"
|
||||
|
||||
Write-Host "⏳ (3/10) Querying remote URL... " -noNewline
|
||||
& git -C "$FullPath" remote get-url origin
|
||||
@ -121,7 +121,7 @@ try {
|
||||
|
||||
$repoDirName = (Get-Item "$FullPath").Name
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Checked repo 📂$repoDirName in $($elapsed)s."
|
||||
"✅ Checked 📂$repoDirName repo in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -129,4 +129,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-repo.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-repos.ps1*
|
||||
========================
|
||||
The *check-repos.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script verifies the data integrity of all Git repositories in a folder.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
|
||||
|
||||
-parentDir <String>
|
||||
Specifies the file path to the parent folder
|
||||
@ -29,7 +29,7 @@ PS> ./check-repos.ps1 C:\Repos
|
||||
⏳ Checking parent folder 📂C:\Repos... 16 subfolders
|
||||
⏳ Checking 📂rust repository (1/16)...
|
||||
...
|
||||
✔️ Checked all 16 Git repos in 📂C:\Repos in 356s.
|
||||
✅ Checked all 16 Git repos in 📂C:\Repos in 356s.
|
||||
|
||||
```
|
||||
|
||||
@ -56,7 +56,7 @@ Script Content
|
||||
⏳ Checking parent folder 📂C:\Repos... 16 subfolders
|
||||
⏳ Checking 📂rust repository (1/16)...
|
||||
...
|
||||
✔️ Checked all 16 Git repos in 📂C:\Repos in 356s.
|
||||
✅ Checked all 16 Git repos in 📂C:\Repos in 356s.
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -83,7 +83,7 @@ try {
|
||||
}
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Checked all $numFolders Git repos in 📂$parentDir in $($elapsed)s."
|
||||
"✅ Checked all $numFolders Git repos in 📂$parentDir in $($elapsed)s."
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -91,4 +91,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-repos.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,12 +1,12 @@
|
||||
Script: *check-santa.ps1*
|
||||
========================
|
||||
The *check-santa.ps1* Script
|
||||
===========================
|
||||
|
||||
This PowerShell script checks the time until Saint Nicholas Day and replies by text-to-speech (TTS).
|
||||
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./check-santa.ps1 [<CommonParameters>]
|
||||
/Repos/PowerShell/scripts/check-santa.ps1 [<CommonParameters>]
|
||||
|
||||
[<CommonParameters>]
|
||||
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
|
||||
@ -56,4 +56,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-santa.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
@ -1,5 +1,5 @@
|
||||
Script: *check-smart-devices.ps1*
|
||||
========================
|
||||
The *check-smart-devices.ps1* Script
|
||||
===========================
|
||||
|
||||
check-smart-devices.ps1
|
||||
|
||||
@ -24,7 +24,7 @@ Script Content
|
||||
This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-smart-devices.ps1
|
||||
✅ 1TB Samsung SSD 970 EVO via NVMe (37°C, 2388 hours, 289x on/off, v2B2QEXE7, selftest passed)
|
||||
✅ 1TB Samsung SSD 970 EVO 1TB via NVMe (35°C, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -48,18 +48,15 @@ function Bytes2String([int64]$bytes) {
|
||||
}
|
||||
|
||||
try {
|
||||
Write-Progress "(1/3) Searching for smartmontools..."
|
||||
$result = (smartctl --version)
|
||||
if ($lastExitCode -ne "0") { throw "Can't execute 'smartctl' - make sure smartmontools are installed" }
|
||||
|
||||
Write-Progress "(2/3) Scanning S.M.A.R.T devices..."
|
||||
if ($IsLinux) {
|
||||
$devices = $(sudo smartctl --scan-open)
|
||||
} else {
|
||||
$devices = $(smartctl --scan-open)
|
||||
}
|
||||
|
||||
Write-Progress "(3/3) Querying S.M.A.R.T devices..."
|
||||
foreach($device in $devices) {
|
||||
$array = $device.split(" ")
|
||||
$dev = $array[0]
|
||||
@ -81,34 +78,41 @@ try {
|
||||
} else {
|
||||
$capacity = ""
|
||||
}
|
||||
$infos = ""
|
||||
if ($details.temperature.current -gt 50) {
|
||||
$temp = "$($details.temperature.current)°C (!)"
|
||||
$infos = "$($details.temperature.current)°C TOO HOT"
|
||||
$status = "⚠️"
|
||||
} elseif ($details.temperature.current -lt 0) {
|
||||
$infos = "$($details.temperature.current)°C TOO COLD"
|
||||
$status = "⚠️"
|
||||
} else {
|
||||
$temp = "$($details.temperature.current)°C"
|
||||
$infos = "$($details.temperature.current)°C"
|
||||
}
|
||||
if ($details.power_on_time.hours -gt 87600) { # 10 years
|
||||
$hours = "$($details.power_on_time.hours) hours (!)"
|
||||
$infos += ", $($details.power_on_time.hours)h (!)"
|
||||
$status = "⚠️"
|
||||
} else {
|
||||
$hours = "$($details.power_on_time.hours) hours"
|
||||
$infos += ", $($details.power_on_time.hours)h"
|
||||
}
|
||||
if ($details.power_cycle_count -gt 100000) {
|
||||
$powerOn = "$($details.power_cycle_count)x on/off (!)"
|
||||
$infos += ", $($details.power_cycle_count)x on/off (!)"
|
||||
$status = "⚠️"
|
||||
} else {
|
||||
$powerOn = "$($details.power_cycle_count)x on/off"
|
||||
}
|
||||
$infos += ", $($details.power_cycle_count)x on/off"
|
||||
}
|
||||
if ($details.nvme_smart_health_information_log.host_reads) {
|
||||
$infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_read * 512 * 1000)) read"
|
||||
$infos += ", $(Bytes2String ($details.nvme_smart_health_information_log.data_units_written * 512 * 1000)) written"
|
||||
}
|
||||
$infos += ", v$($details.firmware_version)"
|
||||
if ($details.smart_status.passed) {
|
||||
$selftest = "selftest passed"
|
||||
$infos += ", test passed"
|
||||
} else {
|
||||
$selftest = "selftest FAILED"
|
||||
$infos += ", test FAILED"
|
||||
$status = "⚠️"
|
||||
}
|
||||
$firmwareVersion = $details.firmware_version
|
||||
Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, $selftest, v$firmwareVersion)"
|
||||
Write-Host "$status $capacity$modelName via $protocol ($infos)"
|
||||
}
|
||||
Write-Progress -completed " "
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -116,4 +120,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of check-smart-devices.ps1 as of 05/19/2024 10:25:18)*
|
||||
*(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user