266 Commits
v1.3 ... v1.4

Author SHA1 Message Date
87c5d59442 Updated the manuals 2025-01-23 12:15:35 +01:00
da0f05e82d Added Linux execution rights 2025-01-23 12:14:48 +01:00
712dca92db Fixed check-swap-space.ps1 2025-01-23 12:14:17 +01:00
2c4400f327 Update FAQ.md 2025-01-21 10:01:50 +01:00
6fda26dc5d Fixed copy-photos-sorted.ps1 2025-01-21 09:39:50 +01:00
46235b0aa0 Update README.md 2025-01-21 09:35:10 +01:00
ac144d3f3d Update README.md 2025-01-21 09:33:08 +01:00
1238ebf8c6 Update README.md 2025-01-21 09:28:45 +01:00
c023128895 Added install-mini-dlna.ps1 2025-01-20 19:43:50 +01:00
42fe21f747 Updated aviation.csv 2025-01-20 11:32:53 +01:00
9e1156e90e Added new-junction.ps1 2025-01-20 11:06:54 +01:00
32927260bd Added install-h2static.ps1 2025-01-18 14:03:58 +01:00
a3331f5172 Updated remove-old-dirs.ps1 2025-01-17 10:18:26 +01:00
ba6f1594c8 Updated the manuals 2025-01-17 08:37:30 +01:00
33ef92d879 Updated the manuals 2025-01-17 08:31:53 +01:00
efe4a2c6b4 Update README.md 2025-01-17 08:24:04 +01:00
6d9350cb23 Set executable file permissions 2025-01-16 19:19:23 +01:00
5b23315a12 Updated computing.csv 2025-01-15 14:29:16 +01:00
af9230f474 Updated new-symlink.ps1 2025-01-15 09:13:57 +01:00
cfb2ea1fa9 Updated check-cpu.ps1 and check-power.ps1 2025-01-14 20:27:39 +01:00
3186552960 Updated remove-old-dirs.ps1 2025-01-14 16:35:32 +01:00
1409e438c6 Updated remove-old-dirs.ps1 2025-01-14 16:26:21 +01:00
58d351c539 Renamed to new-power-plan.ps1 2025-01-14 15:51:01 +01:00
962d7d00b6 Added uninstall-outlook.ps1 2025-01-14 08:25:14 +01:00
be9a93de82 Added uninstall-new-outlook.ps1 2025-01-14 08:19:09 +01:00
8b2de68df7 Merge pull request #26 from Arash-Seifi/main
Add PowerShell script to create and activate a custom power plan
2025-01-13 19:53:15 +01:00
5ce045ca3d Update create-power-plan.md 2025-01-13 21:24:59 +03:30
3e948575ba Fixed the documnet format 2025-01-13 21:20:20 +03:30
3edd43899a Added a PowerShell script for "creating a new power plan" 2025-01-13 21:13:29 +03:30
82140ddc32 Updated some abbreviations 2025-01-13 09:28:25 +01:00
73a3b6b65c Updated ping-host.ps1 2025-01-08 21:03:41 +01:00
82156d8fe6 Updated cd-repo.ps1 and cd-repos.ps1 2025-01-08 16:36:35 +01:00
cb845c54d3 Improved cd-repos.ps1 2025-01-08 16:09:55 +01:00
9cf0ecacb3 Updated cd-repos.ps1 and new-symlink.ps1 2025-01-08 15:51:28 +01:00
f1a20bc962 Updated list-commits.ps1 and watch-commits.ps1 2025-01-08 14:29:32 +01:00
4c19a92220 Updated install-jenkins-agent.ps1 2025-01-07 16:23:01 +01:00
c5432f1708 Updated install-calibre-server.ps1 2025-01-06 10:29:54 +01:00
76ae519408 Updated install-calibre-server.ps1 2025-01-06 10:11:38 +01:00
0cae40f435 Updated install-calibre-server.ps1 2025-01-05 17:24:44 +01:00
1d560f756c Added install-jenkins-agent.ps1 2025-01-03 22:36:12 +01:00
78ceb4bd18 Updated ping-host.ps1 2025-01-03 11:48:36 +01:00
982debb892 Updated list-news.ps1 2024-12-30 22:48:31 +01:00
86c15a6982 Updated some scripts 2024-12-30 22:43:24 +01:00
a5aa63615d Updated ping-local-devices.ps1 2024-12-30 20:26:44 +01:00
e796bae7cb Updated copy-photos-sorted.ps1 2024-12-30 11:17:29 +01:00
1a0daf2109 Updated ping-host.ps1 2024-12-28 16:46:20 +01:00
7841c95ad7 Updated check-network.ps1 and check-vpn.ps1 2024-12-27 22:21:32 +01:00
ece41fa2e9 Updated cd-scripts.ps1 and ping-host.ps1 2024-12-27 15:00:14 +01:00
64bcdee5e8 Updated check-dns.ps1 2024-12-27 09:21:09 +01:00
587732eb3f Update README.md 2024-12-22 11:12:33 +01:00
9d13880be5 Update README.md 2024-12-22 11:07:10 +01:00
88e0868a4c Updated watch-commits.ps1 2024-12-20 13:33:22 +01:00
4298dd8d73 Updated check-smart-devices.ps1 2024-12-19 19:15:04 +01:00
f9540908c2 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-12-19 18:57:31 +01:00
067052251a Updated wake-up-host.ps1 2024-12-19 13:19:54 +01:00
e481bfbed4 Updated aviation.csv 2024-12-18 13:51:16 +01:00
8e7948cabe Updated some abbreviations 2024-12-18 11:06:52 +01:00
263a9017cd Updated ICAO_airport_codes.csv 2024-12-18 07:39:51 +01:00
25b005741b Merge branch 'main' of github.com:fleschutz/PowerShell 2024-12-17 19:47:17 +01:00
500cc561d9 Updated aviation.csv 2024-12-16 14:20:18 +01:00
ced658f427 Updated aviation.csv 2024-12-16 14:03:34 +01:00
b4e09055d9 Updated aviation.csv 2024-12-16 13:57:18 +01:00
94fba89c8f Updated general.csv 2024-12-16 11:35:55 +01:00
dca5793418 Updated write-changelog.ps1 2024-12-12 13:41:31 +01:00
2e941ce36e Updated some abbreviations 2024-12-12 11:57:46 +01:00
1081db300f Updated some scripts 2024-12-12 09:06:30 +01:00
7069c2c31b Merge branch 'main' of github.com:fleschutz/PowerShell 2024-12-11 18:54:33 +01:00
36f9723a1d Updated check-smart-devices.ps1 2024-12-11 13:33:51 +01:00
754856e667 Updated list-earthquakes.ps1 2024-12-11 11:44:52 +01:00
1aca3e811a Updated cd-repo.ps1 and clean-repo.ps1 2024-12-11 08:19:59 +01:00
9063f34652 Updated aviation.csv 2024-12-10 10:58:25 +01:00
98446c5cad Updated aviation.csv 2024-12-09 08:35:55 +01:00
28c533d906 Updated ping-host.ps1 2024-12-07 15:09:54 +01:00
9975e36aba Updated ping-local-devices.ps1 2024-12-07 11:13:28 +01:00
15a764c5a5 Updated watch-host.ps1 2024-12-04 16:36:01 +01:00
8b3715935d Updated watch-host.ps1 2024-12-04 12:00:15 +01:00
36083d8eb3 Updated install-updates.ps1 2024-12-04 11:30:18 +01:00
7e774853fc Updated ping-host.ps1 2024-12-04 11:24:21 +01:00
0e47423514 Updated watch-host.ps1 2024-12-04 07:47:02 +01:00
58ad940288 Updated watch-host.ps1 2024-12-03 22:46:12 +01:00
6216c17011 Added watch-host.ps1 2024-12-03 21:41:51 +01:00
2b6b3dc32e Update write-value.ps1 2024-12-03 14:20:27 +01:00
724da873d2 Updated write-value.ps1 2024-12-03 07:16:25 +01:00
647206ee13 Updated write-value.ps1 2024-12-02 20:13:11 +01:00
1ed0d1c6a0 Updated my-profile.ps1 2024-12-02 11:24:14 +01:00
94ae6256ea Merge branch 'main' of github.com:fleschutz/PowerShell 2024-12-01 20:46:52 +01:00
98e8d758a1 Added write-value.ps1 2024-12-01 20:46:27 +01:00
4af826c741 Updated install-updates.ps1 2024-11-30 14:23:41 +01:00
cf88f21ebc Update travel_packing.md 2024-11-28 17:53:54 +01:00
829c22d3fb Updated fetch-repos.ps1 and pull-repos.ps1 2024-11-28 17:27:48 +01:00
de90e60b2e Updated speak-checklist.ps1 2024-11-27 16:08:58 +01:00
c70b993747 Updated popular-repos.csv 2024-11-27 14:27:06 +01:00
395dac8b8c Updated wake-up-host.ps1 2024-11-27 14:22:30 +01:00
6e6974ec08 Added get-sha512.ps1 2024-11-26 07:58:23 +01:00
63ffa48dc4 Updated scan-folder.ps1 2024-11-25 14:32:02 +01:00
54844ed993 Updated list-city-weather.ps1 2024-11-25 09:44:07 +01:00
c1a010f016 Updated list-news.ps1 and watch-news.ps1 2024-11-25 09:14:32 +01:00
ca3a9dd069 Updated clean-repo.ps1 2024-11-25 07:09:33 +01:00
06bf9e3d8e Update list-news.ps1 2024-11-24 21:02:30 +01:00
e74c9f1010 Updated speak-checklist.ps1 2024-11-24 21:00:34 +01:00
db0169521b Updated list-cli-tools.ps1 2024-11-24 10:18:16 +01:00
ebc5a65388 Update quotes.csv 2024-11-22 15:20:15 +01:00
e811bcb410 Updated list-crypto-rates.ps1 2024-11-22 15:04:55 +01:00
d169de2298 Update list-city-weather.ps1 2024-11-22 14:57:21 +01:00
fcbbf0fd23 Update list-weather.ps1 2024-11-22 14:44:45 +01:00
9fd63dbb30 Updated list-news.ps1 and watch-news.ps1 2024-11-22 14:40:07 +01:00
6b2abf3103 Updated write-typewriter.ps1 2024-11-22 14:34:47 +01:00
bdc4cb1002 Updated list-news.ps1 2024-11-22 14:28:19 +01:00
390b5ffe71 Updated write-help.ps1 2024-11-22 11:40:07 +01:00
3c530df89f Updated my-profile.ps1 2024-11-22 11:35:30 +01:00
2917a123ac Update wake-up-human.ps1 2024-11-22 11:27:40 +01:00
8aeeb8b811 Add wake-up-human.ps1 2024-11-22 11:26:06 +01:00
4f57fbe3b2 Updated play-files.ps1 2024-11-21 08:17:47 +01:00
de784e4cdc Updated play-m3u.ps1 and play-mp3.ps1 2024-11-21 08:07:03 +01:00
c54e4b0184 Updated enable-god-mode.ps1 2024-11-20 15:46:36 +01:00
89c7bd290a Update README.md 2024-11-20 15:35:36 +01:00
17f1c85af2 Updated spell-word.ps1 2024-11-20 15:32:45 +01:00
8136a01507 Updated computing.csv and general.csv 2024-11-20 14:07:46 +01:00
0ca0bcf2d7 Updated play-system-sounds.ps1 2024-11-20 13:58:52 +01:00
30ebcd6d87 Updated general.csv and military.csv 2024-11-20 12:15:53 +01:00
5970d07a8d Updated general.csv 2024-11-20 12:10:37 +01:00
f93ff94b3b Updated the manuals 2024-11-20 11:52:20 +01:00
2301e9a226 Updated speak-countdown.ps1 and speak-english.ps1 2024-11-20 11:50:21 +01:00
5fb74da197 Update README.md 2024-11-20 11:42:24 +01:00
a32ea8de6b Update README.md 2024-11-20 11:38:59 +01:00
e35144cc6b Update README.md 2024-11-20 11:17:58 +01:00
b59180604f Update README.md 2024-11-20 11:12:33 +01:00
1773df817c Update FAQ.md 2024-11-20 11:05:37 +01:00
d29e7e566d Update FAQ.md 2024-11-20 11:04:56 +01:00
9682acba86 Update FAQ.md 2024-11-20 11:02:17 +01:00
e6e15387aa Update README.md 2024-11-20 10:38:55 +01:00
f957853a67 Update README.md 2024-11-20 10:34:01 +01:00
703dc74368 Update README.md 2024-11-20 10:32:21 +01:00
df28fd7105 Update README.md 2024-11-20 10:25:00 +01:00
2a0e6abb6f Update README.md 2024-11-20 10:24:13 +01:00
330acc8257 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-11-20 10:10:23 +01:00
5d625316a5 Updated pull-repos.ps1 2024-11-20 10:08:32 +01:00
7252e2a4c5 Updated list-network-shares.ps1 2024-11-19 11:31:31 +01:00
fab7a776fe Updated watch-commits.ps1 2024-11-18 14:37:02 +01:00
62eef6a209 Updated write-xmas-tree.ps1 2024-11-18 13:16:59 +01:00
7c5a3c7353 Updated aviation.csv 2024-11-18 11:37:08 +01:00
fd1cf4ea6c Updated write-xmas-tree.ps1 2024-11-18 08:05:06 +01:00
28ee2a5a44 Added write-xmas-tree.ps1 2024-11-18 07:42:17 +01:00
d47027e561 Updated write-motd.ps1 2024-11-14 13:15:37 +01:00
cc0fb6207b Updated computing.csv 2024-11-14 09:01:18 +01:00
f316655358 Updated watch-news.ps1 2024-11-13 15:16:35 +01:00
e52d80980c Updated watch-news.ps1 2024-11-13 15:10:12 +01:00
e9f0f17180 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-11-13 11:48:03 +01:00
6e27c12b46 Updated watch-news.ps1 2024-11-13 11:47:48 +01:00
186e209d09 Update README.md 2024-11-13 09:53:29 +01:00
430074a982 Updated computing.csv 2024-11-11 11:10:49 +01:00
25ff52876c Updated the manuals 2024-11-08 12:40:31 +01:00
73d250a182 Updated the manuals 2024-11-08 12:38:20 +01:00
54635c32da Updated the manuals 2024-11-08 12:35:11 +01:00
53eb60baa3 Updated scan-folder.ps1 2024-11-08 09:01:49 +01:00
6b9e8582a4 Added scan-folder.ps1 2024-11-08 08:50:37 +01:00
467332f0fe Updated my-profile.ps1 2024-11-07 14:39:30 +01:00
7a175c2a2e Updated watch-news.ps1 2024-11-04 21:21:53 +01:00
cd3ad88b65 Updated ping-host.ps1 and enter-host.ps1 2024-11-04 20:34:49 +01:00
cf34f7dae2 Updated watch-news.ps1 2024-11-04 17:09:39 +01:00
70ebba06ff Updated enter-host.ps1 and ping-host.ps1 2024-11-04 15:25:02 +01:00
e09c53bcc5 Improved ping-host.ps1 2024-11-04 15:08:49 +01:00
d72ffb9490 Added watch-ping.ps1 2024-11-04 10:58:37 +01:00
aff1f7acab Updated aviation.csv 2024-11-04 09:10:02 +01:00
c7d2f403a0 Updated install-powershell.ps1 2024-11-03 12:25:16 +01:00
0ad1759cd5 Updated install-powershell.ps1 2024-11-03 12:17:40 +01:00
1238f58800 Updated install-powershell.ps1 2024-11-03 12:03:52 +01:00
a786175c4f Updated open-dashboards.ps1 2024-11-03 11:57:34 +01:00
1a7ef52e65 Updated computing.csv 2024-11-03 10:29:41 +01:00
14d9e2de91 Updated my-profile.ps1 2024-11-03 10:06:13 +01:00
e16e7baac6 Added write-hands-off.ps1 2024-11-02 18:03:45 +01:00
f0165acd8d Updated what-is.ps1 2024-11-02 14:37:14 +01:00
312686d50f Update ping-local-devices.ps1 2024-10-31 08:04:27 +01:00
bb01ef8cf5 Updated the cd-*.ps1 scripts 2024-10-30 13:19:56 +01:00
6419712ff2 Fixed enter-host.ps1 2024-10-30 12:58:00 +01:00
b6e703d96e Updated list-fibonacci.ps1 2024-10-28 14:20:47 +01:00
8a33a05610 Renamed to write-pi.ps1 2024-10-28 14:12:31 +01:00
73a3646ab7 Updated save-credentials.ps1 2024-10-28 14:07:23 +01:00
c7cf0d2c44 Renamed to write-credits.ps1 2024-10-28 13:59:16 +01:00
0f4ff81b09 Updated sync-repo.ps1 2024-10-28 13:46:33 +01:00
13695d0061 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-10-28 13:40:13 +01:00
d3afc0335f Updated write-help.ps1 2024-10-28 13:39:57 +01:00
07bd46d6d6 Update FAQ.md 2024-10-28 13:04:33 +01:00
ce36877c69 Updated enter-host.ps1 2024-10-25 15:30:01 +02:00
7bc7da1b3b Added list-old-branches.ps1 2024-10-25 15:03:50 +02:00
0cb4a67fd0 Added write-location.ps1 2024-10-24 18:46:56 +02:00
c53f608eba Improved write-help.ps1 2024-10-24 17:36:48 +02:00
1bb6efbc76 Improved ping-internet.ps1 2024-10-24 17:00:11 +02:00
e13ac69220 Updated pull-repos.ps1 2024-10-24 11:37:01 +02:00
8deb881f99 Updated ping-internet.ps1 2024-10-23 18:44:11 +02:00
01a00dd30f Merge branch 'main' of github.com:fleschutz/PowerShell 2024-10-23 16:57:44 +02:00
13dd90ec4b Updated write-help.ps1 2024-10-23 15:55:43 +02:00
7eb4972f99 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-10-23 15:49:51 +02:00
3ae015a752 Updated check-dns.ps1 and list-network-shares.ps1 2024-10-23 15:10:44 +02:00
5214a504db Updated check-power.ps1 2024-10-21 20:56:19 +02:00
2666f952af Updated check-bios.ps1 2024-10-16 14:48:06 +02:00
dd7054cf48 Updated check-bios.ps1 2024-10-16 10:52:10 +02:00
2396704564 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-10-16 10:45:56 +02:00
aa7edea695 Updated check-bios.ps1 2024-10-16 10:45:42 +02:00
7a2dfa72ec Updated check-uptime.ps1 2024-10-16 10:32:57 +02:00
01af86446e Updated ICAO_airport_codes.csv 2024-10-16 10:25:27 +02:00
3d30f79176 Improved new-symlink.ps1 2024-10-16 08:36:58 +02:00
49b8331361 Updated computing.csv 2024-10-15 13:39:00 +02:00
435837b1cd Added install-gitlab.ps1 2024-10-15 13:13:46 +02:00
b777d25888 Updated show-notification.ps1 2024-10-15 12:56:17 +02:00
1186432bb0 Updated enter-host.ps1 2024-10-15 10:10:32 +02:00
e2c03310dd Added new-reboot-task.ps1 2024-10-15 09:02:13 +02:00
04b04602ca Updated list-ssh-key.ps1 2024-10-15 08:45:21 +02:00
70b216df8d Improved ping-internet.ps1 2024-10-14 17:51:00 +02:00
2e67161917 Updated check-dns.ps1 2024-10-14 17:39:31 +02:00
e307b5c887 Updated list-user-accounts.ps1 2024-10-14 17:28:32 +02:00
68680bb618 Updated check-smart-devices.ps1 2024-10-14 17:22:33 +02:00
14d18e5890 Merge branch 'main' of github.com:fleschutz/PowerShell 2024-10-14 17:17:42 +02:00
34b569cbc7 Renamed to ping-internet.ps1 2024-10-14 17:17:28 +02:00
7a056d76e3 Updated check-cpu.ps1 2024-10-14 16:55:30 +02:00
53381691df Updated check-cpu.ps1 2024-10-14 16:27:54 +02:00
6659468d18 Updated check-cpu.ps1 and check-smart-devices.ps1 2024-10-14 16:04:59 +02:00
fc66df1797 Update FAQ.md 2024-10-14 14:39:25 +02:00
6085205764 Updated check-drives.ps1 2024-10-14 12:34:18 +00:00
8b019cb80e Update FAQ.md 2024-10-14 14:09:03 +02:00
e5513eea5c Update FAQ.md 2024-10-14 14:02:48 +02:00
4c394592aa Update FAQ.md 2024-10-14 14:00:24 +02:00
3a59acc2b5 Update FAQ.md 2024-10-14 13:55:08 +02:00
8d659757cb Renamed to enter-host.ps1 and wake-up-host.ps1 2024-10-14 11:38:09 +02:00
8186d08928 Updated general.csv 2024-10-13 10:16:01 +02:00
01d9659976 Updated check-bios.ps1 and check-motherboard.ps1 2024-10-10 20:41:36 +02:00
83d8d645ee Updated check-uptime.ps1 2024-10-10 19:39:00 +02:00
3429ed7d90 Updated ICAO_airport_codes.csv 2024-10-10 16:29:00 +02:00
59569a41c1 Updated pull-repos.ps1 2024-10-10 14:50:17 +02:00
2a009f311f Updated cd-repo.ps1 and cd-ssh.ps1 2024-10-10 14:40:19 +02:00
bd3b301072 Updated list-network-shares.ps1 2024-10-10 13:29:49 +02:00
c8a11f61bc Updated computing.csv and general.csv 2024-10-10 09:37:56 +02:00
9255f28823 Added play-chess.ps1 2024-10-04 22:23:14 +02:00
464e17c449 Updated ping-host.ps1 2024-10-04 22:02:22 +02:00
c13e3c3dbd Updated enter.ps1 2024-10-04 21:13:53 +02:00
21e8911239 Removed obsolete Jenkinsfile 2024-10-04 12:15:13 +02:00
37177e83a6 Added cd-nextcloud.ps1 2024-10-02 11:01:37 +02:00
ace08b19c6 Added list-local-ip.ps1 2024-10-02 10:14:17 +02:00
305077d5cd Improved ping-host.ps1 and write-headline.ps1 2024-10-01 22:38:40 +02:00
702506f9a1 Updated enter.ps1 2024-10-01 22:10:48 +02:00
43b15cd1ef Added enter.ps1 2024-10-01 21:59:47 +02:00
0d06931b74 Updated ping-local-devices.ps1 2024-10-01 17:26:49 +02:00
b64d32990e Renamed to ping-local-devices.ps1 2024-10-01 17:18:36 +02:00
a66aa8a009 Updated some scripts 2024-10-01 17:04:39 +02:00
dc4ee3c83e Updated check-network.ps1 2024-10-01 15:37:20 +02:00
fa086893aa Renamed to check-motherboard.ps1 2024-10-01 15:33:53 +02:00
d957e3aba2 Repaired UTF-8 BOM encoding 2024-10-01 15:24:16 +02:00
49072fdbaa Repaired UTF-8 BOM encoding 2024-10-01 15:11:03 +02:00
b2413adad6 Added cd-jenkins.ps1 2024-10-01 13:50:57 +02:00
d01b5969eb Added hello-world.ps1 2024-10-01 13:42:27 +02:00
fd963889d2 Replaced the done character 2024-10-01 13:37:53 +02:00
c43e787025 Updated list-updates.ps1 2024-09-28 14:59:13 +02:00
ea0e38f364 Updated wake-up.ps1 2024-09-28 14:54:21 +02:00
92c550e17d Updated list-dir-tree.ps1 2024-09-28 13:51:47 +02:00
7618c3548c Updated edit.ps1 2024-09-28 13:01:48 +02:00
7229b3d980 Updated check-uptime.ps1 2024-09-27 17:38:59 +02:00
a8bafada38 Updated list-repos.ps1 2024-09-27 16:18:55 +02:00
7e6b42352e Updated some scripts 2024-09-24 21:28:31 +02:00
db8e7e1766 Updated some scripts 2024-09-24 20:53:46 +02:00
fdeead2b52 Updated my-profile.ps1 2024-09-23 14:20:50 +02:00
c54f644f26 Updated install-github-cli.ps1 2024-09-22 10:43:38 +02:00
fb7ff43546 Updated my-profile.ps1 2024-09-20 16:56:28 +02:00
cfa917eb78 Update new-user.ps1 2024-09-19 17:22:34 +02:00
33e419ff5b Update new-user.ps1 2024-09-19 17:21:59 +02:00
cee7a19571 Updated check-drives.ps1 2024-09-18 15:21:15 +02:00
d1a6b3ff87 Updated check-drives.ps1 2024-09-18 15:15:21 +02:00
890 changed files with 15599 additions and 8899 deletions

317
README.md
View File

@ -1,94 +1,97 @@
Mega Collection of PowerShell Scripts 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 🔊 Scripts for Audio & Voice
----------------------------- -----------------------------
| Script | Description | | Script | Description |
| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | ---------------------------------------------------- | ----------------------------------------------------------------------------------------- |
| [list-voices.ps1](scripts/list-voices.ps1) | Lists the installed text-to-speech voices. [Read more »](docs/list-voices.md) | | [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-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. [Read more »](docs/play-files.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. [Read more »](docs/play-happy-birthday.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). [Read more »](docs/play-imperial-march.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. [Read more »](docs/play-jingle-bells.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. [Read more »](docs/play-mission-impossible.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. [Read more »](docs/play-m3u.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. [Read more »](docs/play-mp3.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. [Read more »](docs/play-super-mario.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. [Read more »](docs/play-tetris-melody.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. [Read more »](docs/speak-checklist.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. [Read more »](docs/speak-countdown.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. [Read more »](docs/speak-english.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. [Read more »](docs/speak-epub.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. [Read more »](docs/speak-file.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. [Read more »](docs/speak-french.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. [Read more »](docs/speak-german.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. [Read more »](docs/speak-italian.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. [Read more »](docs/speak-spanish.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. [Read more »](docs/speak-test.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. [Read more »](docs/speak-text.md) | | [speak-text.ps1](scripts/speak-text.ps1) | Speaks the given text by text-to-speech. [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) | | [spell-word.ps1](scripts/spell-word.ps1) | Spells the given word by text-to-speech. [More »](docs/spell-word.md) |
| [tell-quote.ps1](scripts/tell-quote.ps1) | Tells a random quote by text-to-speech. [Read more »](docs/tell-quote.md) | | [tell-joke.ps1](scripts/tell-joke.ps1) | Tells a random joke by text-to-speech. [More »](docs/tell-joke.md) |
| [turn-volume-down.ps1](scripts/turn-volume-down.ps1) | Turns the audio volume down. [Read more »](docs/turn-volume-down.md) | | [tell-quote.ps1](scripts/tell-quote.ps1) | Tells a random quote by text-to-speech. [More »](docs/tell-quote.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-down.ps1](scripts/turn-volume-down.ps1) | Turns the audio volume down. [More »](docs/turn-volume-down.md) |
| [turn-volume-off.ps1](scripts/turn-volume-off.ps1) | Turns audio off. [Read more »](docs/turn-volume-off-audio.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-on.ps1](scripts/turn-volume-on.ps1) | Turns audio on. [Read more »](docs/turn-volume-on.md) | | [turn-volume-off.ps1](scripts/turn-volume-off.ps1) | Turns audio off. [More »](docs/turn-volume-off-audio.md) |
| [turn-volume-up.ps1](scripts/turn-volume-up.ps1) | Turns the audio volume up. [Read more »](docs/turn-volume-up.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) | | [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-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. [Read more »](docs/check-dns.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. [Read more »](docs/check-drive-space.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). [Read more »](docs/check-file-system.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. [Read more »](docs/check-health.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. [Read more »](docs/check-ping.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. [Read more »](docs/check-swap-space.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). [Read more »](docs/check-windows-system-files.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. [Read more »](docs/enable-crash-dumps.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. [Read more »](docs/hibernate.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. [Read more »](docs/install-github-cli.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. [Read more »](docs/install-chrome-browser.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. [Read more »](docs/install-firefox.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). [Read more »](docs/install-knot-resolver.md)| | [install-knot-resolver.ps1](scripts/install-knot-resolver.ps1) | Installs the Knot Resolver (needs admin rights). [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-salesforce-cli.ps1](scripts/install-salesforce-cli.ps1) | Installs the Salesforce CLI (sfdx). [More »](docs/install-salesforce-cli.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-ssh-client.ps1](scripts/install-ssh-client.ps1) | Installs a SSH client (needs admin rights). [More »](docs/install-ssh-client.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-ssh-server.ps1](scripts/install-ssh-server.ps1) | Installs a SSH server (needs admin rights). [More »](docs/install-ssh-server.md) |
| [install-updates.ps1](scripts/install-updates.ps1) | Installs updates (need admin rights). [Read more »](docs/install-updates.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-wsl.ps1](scripts/install-wsl.ps1) | Installs Windows Subsystem for Linux (WSL), needs admin rights. [Read more »](docs/install-wsl.md)| | [install-updates.ps1](scripts/install-updates.ps1) | Installs updates (need admin rights). [More »](docs/install-updates.md) |
| [list-apps.ps1](scripts/list-apps.ps1) | Lists the installed applications. [Read more »](docs/list-installed-apps.md) | | [install-wsl.ps1](scripts/install-wsl.ps1) | Installs Windows Subsystem for Linux (WSL), needs admin rights. [More »](docs/install-wsl.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-apps.ps1](scripts/list-apps.ps1) | Lists the installed applications. [More »](docs/list-installed-apps.md) |
| [list-dns-servers.ps1](scripts/list-dns-servers.ps1) | Lists public DNS servers. [Read more »](docs/list-dns-servers.md) | | [list-cli-tools.ps1](scripts/list-cli-tools.ps1) | Lists installed command-line interface (CLI) tools. [More »](docs/list-cli-tools.md) |
| [list-drives.ps1](scripts/list-drives.ps1) | Lists all drives. [Read more »](docs/list-drives.md) | | [list-dns-servers.ps1](scripts/list-dns-servers.ps1) | Lists public DNS servers. [More »](docs/list-dns-servers.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-drives.ps1](scripts/list-drives.ps1) | Lists all drives. [More »](docs/list-drives.md) |
| [list-installed-software.ps1](scripts/list-installed-software.ps1) | Lists the installed software. [Read more »](docs/list-installed-software.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-printers.ps1](scripts/list-printers.ps1) | Lists all printer known to the computer. [Read more »](docs/list-printers.md) | | [list-installed-software.ps1](scripts/list-installed-software.ps1) | Lists the installed software. [More »](docs/list-installed-software.md) |
| [list-print-jobs.ps1](scripts/list-print-jobs.ps1) | Lists all jobs of all printers. [Read more »](docs/list-print-jobs.md) | | [list-printers.ps1](scripts/list-printers.ps1) | Lists all printer known to the computer. [More »](docs/list-printers.md) |
| [list-processes.ps1](scripts/list-processes.ps1) | Lists the local computer processes. [Read more »](docs/list-processes.md) | | [list-print-jobs.ps1](scripts/list-print-jobs.ps1) | Lists all jobs of all printers. [More »](docs/list-print-jobs.md) |
| [list-services.ps1](scripts/list-services.ps1) | Lists the services on the local computer. [Read more »](docs/list-services.md) | | [list-processes.ps1](scripts/list-processes.ps1) | Lists the local computer processes. [More »](docs/list-processes.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-services.ps1](scripts/list-services.ps1) | Lists the services on the local computer. [More »](docs/list-services.md) |
| [list-tasks.ps1](scripts/list-tasks.ps1) | Lists all Windows scheduler tasks. [Read more »](docs/list-tasks.md) | | [list-system-info.ps1](scripts/list-system-info.ps1) | Lists system information on the local computer. [More »](docs/list-system-info.md) |
| [list-timezone.ps1](scripts/list-timezone.ps1) | Lists the current time zone details. [Read more »](docs/list-timezone.md) | | [list-tasks.ps1](scripts/list-tasks.ps1) | Lists all Windows scheduler tasks. [More »](docs/list-tasks.md) |
| [list-timezones.ps1](scripts/list-timezones.ps1) | Lists all time zones available. [Read more »](docs/list-timezones.md) | | [list-timezone.ps1](scripts/list-timezone.ps1) | Lists the current time zone details. [More »](docs/list-timezone.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) | | [list-timezones.ps1](scripts/list-timezones.ps1) | Lists all time zones available. [More »](docs/list-timezones.md) |
| [poweroff.ps1](scripts/poweroff.ps1) | Halts the local computer (needs admin rights). [Read more »](docs/poweroff.md) | | [list-user-groups.ps1](scripts/list-user-groups.ps1) | Lists the user groups on the local computer. [More »](docs/list-user-groups.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) | | [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) |
| [reboot.ps1](scripts/reboot.ps1) | Reboots the local computer (needs admin rights). [Read more »](docs/reboot.md) | | [poweroff.ps1](scripts/poweroff.ps1) | Halts the local computer (needs admin rights). [More »](docs/poweroff.md) |
| [remove-print-jobs.ps1](scripts/remove-print-jobs.ps1) | Removes all jobs from all printers. [Read more »](docs/remove-print-jobs.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) |
| [restart-network-adapters.ps1](scripts/restart-network-adapters.ps1) | Restarts all local network adapters. [Read more »](docs/restart-network-adapters.md)| | [reboot.ps1](scripts/reboot.ps1) | Reboots the local computer (needs admin rights). [More »](docs/reboot.md) |
| [upgrade-ubuntu.ps1](scripts/upgrade-ubuntu.ps1) | Upgrades Ubuntu Linux to the latest (LTS) release. [Read more »](docs/upgrade-ubuntu.md) | | [remove-print-jobs.ps1](scripts/remove-print-jobs.ps1) | Removes all jobs from all printers. [More »](docs/remove-print-jobs.md) |
| [wake-up.ps1](scripts/wake-up.ps1) | Wakes up a remote computer using Wake-on-LAN. [Read more »](docs/wakeup.md) | | [restart-network-adapters.ps1](scripts/restart-network-adapters.ps1) | Restarts all local network adapters. [More »](docs/restart-network-adapters.md)|
| [windefender.ps1](scripts/windefender.ps1) | Turn Windows Defender on/off/check real time monitoring. [Read more »](docs/windefender.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 💻 Scripts for the Desktop
@ -96,25 +99,25 @@ Mega Collection of PowerShell Scripts
| Script | Description | | Script | Description |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------- | | ---------------------------------------------------- | ------------------------------------------------------------------------------------------- |
| [close-calculator.ps1](scripts/close-calculator.ps1) | Closes the calculator application. [Read more...](docs/close-calculator.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. [Read more...](docs/close-cortana.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. [Read more...](docs/close-chrome.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. [Read more...](docs/close-program.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. [Read more...](docs/close-edge.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. [Read more...](docs/close-file-explorer.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. [Read more...](docs/close-edge.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. [Read more...](docs/close-microsoft-store.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. [Read more...](docs/close-netflix.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. [Read more...](docs/close-onedrive.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. [Read more...](docs/close-serenade.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. [Read more...](docs/close-snipping-tool.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. [Read more...](docs/close-spotify.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. [Read more...](docs/close-system-settings.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. [Read more...](docs/close-task-manager.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. [Read more...](docs/close-thunderbird.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. [Read more...](docs/close-vlc.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. [Read more...](docs/close-windows-terminal.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). [Read more...](docs/enable-god-mode.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-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) | | [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) | | [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 | | 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-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-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. [Read more...](docs/cd-docs.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. [Read more...](docs/cd-downloads.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. [Read more...](docs/cd-dropbox.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. [Read more...](docs/cd-home.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-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-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) | | [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 | | Script | Description |
| ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | | ------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- |
| [convert-csv2txt.ps1](scripts/convert-csv2txt.ps1) | Converts a .CSV file to a text file. [Read more »](docs/convert-csv2txt.md) | | [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-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. [Read more »](docs/convert-ps2bat.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. [Read more »](docs/convert-ps2md.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. [Read more »](docs/convert-sql2csv.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. [Read more »](docs/convert-txt2wav.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. [Read more »](docs/export-to-manuals.md) | | [export-to-manuals.ps1](scripts/export-to-manuals.ps1) | Exports all scripts as manuals. [More »](docs/export-to-manuals.md) |
📝 Scripts for Git 📝 Scripts for Git
@ -240,61 +243,61 @@ Mega Collection of PowerShell Scripts
| Script | Description | | Script | Description |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------ | | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| [build-repo.ps1](scripts/build-repo.ps1) | Builds a Git repository. [Read more »](docs/build-repo.md) | | [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) | | [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. [Read more »](docs/check-repo.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. [Read more »](docs/clean-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. [Read more »](docs/clean-repos.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. [Read more »](docs/clone-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. [Read more »](docs/configure-git.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. [Read more »](docs/fetch-repo.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. [Read more »](docs/fetch-repos.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. [Read more »](docs/list-branches.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. [Read more »](docs/list-commit-stats.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. [Read more »](docs/list-commits.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. [Read more »](docs/list-latest-tag.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. [Read more »](docs/list-latest-tags.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. [Read more »](docs/list-repos.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. [Read more »](docs/list-submodules.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. [Read more »](docs/list-tags.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. [Read more »](docs/new-branch.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. [Read more »](docs/new-tag.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. [Read more »](docs/pick-commit.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 for a Git repository. [Read more »](docs/pull-repo.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 for all Git repositories in a folder. [Read more »](docs/pull-repos.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. [Read more »](docs/remove-tag.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. [Read more »](docs/switch-branch.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. [Read more »](docs/sync-repo.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. [Read more »](docs/write-changelog.md) | | [write-changelog.ps1](scripts/write-changelog.ps1) | Writes a changelog from Git commits. [More »](docs/write-changelog.md) |
🔎 Scripts for PowerShell 🔎 Scripts for PowerShell
------------------------ ------------------------
| Script | Description | | 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) | | [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) | | [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. [Read more...](docs/list-aliases.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. [Read more...](docs/list-automatic-variables.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. [Read more...](docs/list-cheat-sheet.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. [Read more...](docs/list-cmdlets.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. [Read more...](docs/list-console-colors.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. [Read more...](docs/list-modules.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. [Read more...](docs/list-profiles.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. [Read more...](docs/list-scripts.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. [Read more...](docs/new-script.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. [Read more...](docs/set-profile.md) | | [set-profile.ps1](scripts/set-profile.ps1) | Updates your PowerShell user profile. [More »](docs/set-profile.md) |
🛒 Various PowerShell Scripts 🛒 Various PowerShell Scripts
------------------------------ ------------------------------
| Script | Description | | Script | Description |
|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------| |-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------|
| [add-memo.ps1](scripts/add-memo.ps1) | Adds the given memo text to $HOME/Memos.csv. [Read more...](docs/add-memo.md) | | [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-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. [Read more...](docs/check-ipv6-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. [Read more...](docs/check-mac-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. [Read more...](docs/check-subnet-mask.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. [Read more...](docs/check-weather.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) | | [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-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-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) |
@ -352,10 +355,10 @@ Mega Collection of PowerShell Scripts
| [write-quote.ps1](scripts/write-quote.ps1) | Writes a random quote. [Read more...](docs/write-quote.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-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-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-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. [Read more...](docs/write-uppercase.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. [Read more...](docs/write-vertical.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. [Read more...](docs/show-notification-motivation-quote.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 📧 Feedback
------------ ------------

18
data/Jenkinsfile vendored
View File

@ -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'
}
}
}
}

View 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.

View File

@ -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.

View 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

View File

@ -297,6 +297,7 @@ NINS,National Institutes of Natural Sciences
NIRPS,(NNT) Near Infra Red Planet Searcher NIRPS,(NNT) Near Infra Red Planet Searcher
NOVA,The Netherlands Research School for Astronomy (Nederlandse Onderzoekschool voor Astronomie) NOVA,The Netherlands Research School for Astronomy (Nederlandse Onderzoekschool voor Astronomie)
NRAO,National Radio Astronomy Observatory NRAO,National Radio Astronomy Observatory
NRQZ,(U.S.) National Radio Quiet Zone
NSF,National Science Foundation NSF,National Science Foundation
NTT,New Technology Telescope NTT,New Technology Telescope
NUVA,Network for UltraViolet Astrophysics NUVA,Network for UltraViolet Astrophysics

1 TERM MEANING
297 NIRPS (NNT) Near Infra Red Planet Searcher
298 NOVA The Netherlands Research School for Astronomy (Nederlandse Onderzoekschool voor Astronomie)
299 NRAO National Radio Astronomy Observatory
300 NRQZ (U.S.) National Radio Quiet Zone
301 NSF National Science Foundation
302 NTT New Technology Telescope
303 NUVA Network for UltraViolet Astrophysics

View File

@ -1,5 +1,7 @@
TERM,MEANING TERM,MEANING
3P,"Perceive, Process, Perform" 3P,"Perceive, Process, Perform"
5ANNC,Five Letter Alpha Numeric Code
5LNC,Five Letter Naming Code
5P,"Plan, Plane, Pilot, Passengers, Programming" 5P,"Plan, Plane, Pilot, Passengers, Programming"
7500,"Transponder code for Aircraft hijacking (ICAO)" 7500,"Transponder code for Aircraft hijacking (ICAO)"
7600,"Transponder code for Radio failure (lost communications, ICAO)" 7600,"Transponder code for Radio failure (lost communications, ICAO)"
@ -137,6 +139,7 @@ AR,Aspect Ratio
ARAC,Army Radar Approach Control (AAF) ARAC,Army Radar Approach Control (AAF)
ARFOR,Area Forecast ARFOR,Area Forecast
ARINC,Aeronautical Radio, Inc. (USA) ARINC,Aeronautical Radio, Inc. (USA)
ARNS,Aeronautical Radio Navigation Service
ARLNO,Airline Office ARLNO,Airline Office
ARP,Airport Reference Point ARP,Airport Reference Point
ARTCC,Air Route Traffic Control Centre ARTCC,Air Route Traffic Control Centre
@ -247,6 +250,7 @@ DFL,Division Flight Level
DFS,Deutsche Flugsicherung (ATC in Germany) DFS,Deutsche Flugsicherung (ATC in Germany)
DGAC,Direction Générale de l'Aviation Civile DGAC,Direction Générale de l'Aviation Civile
DLA,Defense Logistics Agency DLA,Defense Logistics Agency
DME,Distance Measuring Equipment
DP,Departure Procedure DP,Departure Procedure
DSNA,Direction des Services de la Navigation Aérienne DSNA,Direction des Services de la Navigation Aérienne
DTI,Direction Technique Innovation DTI,Direction Technique Innovation
@ -264,6 +268,7 @@ ELEV,Field Elevation
ELT,Emergency Locator Transmitter ELT,Emergency Locator Transmitter
ENR,En-Route ENR,En-Route
EOL,Engine-off landing EOL,Engine-off landing
ERAU,Embry-Riddle Aeronautical University (Daytona Beach, Florida)
ERPM,Engine Rotations per Minute ERPM,Engine Rotations per Minute
eSTOL,Electric Short Take-off and Landing eSTOL,Electric Short Take-off and Landing
ETA,"Estimated Time of Arrival, East Transition Area" ETA,"Estimated Time of Arrival, East Transition Area"
@ -276,6 +281,7 @@ FAA,U.S. Federal Aviation Administration
FAR,"Fuel Air Ratio, Federal Aviation Regulations" FAR,"Fuel Air Ratio, Federal Aviation Regulations"
FAS,Final Approach Segment FAS,Final Approach Segment
FAS,Final Approach Speed FAS,Final Approach Speed
FASF,French Air and Space Force
FAST,Future Aviation Safety Team FAST,Future Aviation Safety Team
FAT,Factory Acceptance Test (see also SAT and RAT) FAT,Factory Acceptance Test (see also SAT and RAT)
FAT,Final Approach Track FAT,Final Approach Track
@ -307,6 +313,7 @@ FOD,Foreign Object Debris
FOV,Field of View FOV,Field of View
FWC,Flight Warning Computer FWC,Flight Warning Computer
GA,"General Aviation, Go Around (VFR)" GA,"General Aviation, Go Around (VFR)"
GAF,German Air Force
GND,Ground GND,Ground
GP,Glide Path GP,Glide Path
GPS,Global Positioning System GPS,Global Positioning System
@ -321,6 +328,7 @@ IANS,Institute of Air Navigation Services, a division of Eurocontrol
IAS,Indicated airspeed IAS,Indicated airspeed
IATA,"International Air Transport Association, HQ in Montreal, Canada" IATA,"International Air Transport Association, HQ in Montreal, Canada"
ICA,Initial Climb Area ICA,Initial Climb Area
ICARD,International Codes and Route Designators
IFE,In-flight Emergency IFE,In-flight Emergency
IFR,Instrument Flight Rules IFR,Instrument Flight Rules
IG,Image Generator IG,Image Generator
@ -357,6 +365,7 @@ MCP,Maximum Continuous Power
MGTOW,Maximum Gross Take-off Weight MGTOW,Maximum Gross Take-off Weight
MLW,Maximum Landing Weight MLW,Maximum Landing Weight
MMR,Multi-Mode Receiver MMR,Multi-Mode Receiver
MRTT,Multi-Role Tanker Transport
MSA,Minimum Safe Altitude MSA,Minimum Safe Altitude
MSL,Median Sea Level MSL,Median Sea Level
MSTA,Minimum Safe Turning Altitude MSTA,Minimum Safe Turning Altitude
@ -366,24 +375,29 @@ NATOPS,Naval Aviation Training and Operating Procedures Standardization
NATS,National Air Traffic Services (UK) NATS,National Air Traffic Services (UK)
NAVAIDS,Navigational Aids NAVAIDS,Navigational Aids
NCOIC,Non-Commissioned Officer in Charge NCOIC,Non-Commissioned Officer in Charge
NDB,Non-Directional Beacon
NIMA,National Imagery Mapping Agency NIMA,National Imagery Mapping Agency
NLFS,Night Low Flying System NLFS,Night Low Flying System
NM,Nautical Mile NM,Nautical Mile
NORDO,No Radio NORDO,No Radio
NOTAM,Notice to Airmen or Notice to Air Missions 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) NUAIR,Northeast UAS Airspace Integration Research (a New York based nonprofit organization)
OCS,Obstacle Clearance Surfaces OCS,Obstacle Clearance Surfaces
OCTA,Outside Control Areas OCTA,Outside Control Areas
OEI,One Engine Inoperative OEI,One Engine Inoperative
ODP,Obstacle Departure Procedure ODP,Obstacle Departure Procedure
OGE,Out of Ground Effect OGE,Out of Ground Effect
OID,Operational Instrument Departure
OFZ,Obstacle Free Zone OFZ,Obstacle Free Zone
OJT,On the Job Training OJT,On the Job Training
OODA,"Observation, Orientation, Decision, and Action" OODA,"Observation, Orientation, Decision, and Action"
ORCAM,Originating Region Code Assignment Method ORCAM,Originating Region Code Assignment Method
OSC,On Scene Commander OSC,On Scene Commander
OWE,Operational Weight Empty
PA,Pressure Altitude PA,Pressure Altitude
PADS,Parallax Aircraft Docking System PADS,Parallax Aircraft Docking System
PANSA,Polish Air Navigation Services Agency
PAPA,"Parallax Aircraft Parking Aid (docking system)" PAPA,"Parallax Aircraft Parking Aid (docking system)"
PAPI,Precision Approach Path Indicator PAPI,Precision Approach Path Indicator
PAR,Precision Approach Radar PAR,Precision Approach Radar
@ -431,6 +445,7 @@ RNAV,Area Navigation
RNP,Required Navigation Performance RNP,Required Navigation Performance
ROC,Rate Of Climb ROC,Rate Of Climb
ROC,Required Obstacle Clearance ROC,Required Obstacle Clearance
ROKAF,Republic of Korea Air Force
RPS,Radar Position Symbol RPS,Radar Position Symbol
RRPM,Rotor Rotations per Minute RRPM,Rotor Rotations per Minute
RSA,Runway Safety Area RSA,Runway Safety Area
@ -439,6 +454,7 @@ RSC,Runway Surface Condition
RSI,Remote Status Indicator RSI,Remote Status Indicator
RSO,Range Safety Officer RSO,Range Safety Officer
RSRS,Reduced Same Runway Separation RSRS,Reduced Same Runway Separation
RSU,Runway Supervisory Unit
RTAF,Royal Thai Air Force RTAF,Royal Thai Air Force
RTCA,Radio Technical Commission for Aeronautics RTCA,Radio Technical Commission for Aeronautics
RTF,Radio Telephony RTF,Radio Telephony
@ -450,6 +466,7 @@ SADL,Situational Awareness Data Link
SAF,Sustainable Aviation Fuel SAF,Sustainable Aviation Fuel
SAR,"Search and Rescue, Synthetic Aperture Radar" SAR,"Search and Rescue, Synthetic Aperture Radar"
SARPS,Standards and Recommended Practices (ICAO) SARPS,Standards and Recommended Practices (ICAO)
SASF,Spanish Air and Space Force
SAT,Site Acceptance Test (see also FAT and RAT) SAT,Site Acceptance Test (see also FAT and RAT)
SATCO,Senior Air Traffic Control Officer SATCO,Senior Air Traffic Control Officer
SATCOM,Satellite Communication SATCOM,Satellite Communication
@ -546,6 +563,7 @@ TRA,Temporary Reserved Area
TRACON,Terminal Radar Approach Control TRACON,Terminal Radar Approach Control
TRH,Thrust Reduction Height TRH,Thrust Reduction Height
TSA,Temporary Segregated Area TSA,Temporary Segregated Area
TSAT,Target Startup Approval Time
TSO,Technical Standard Order TSO,Technical Standard Order
TSTC,Texas State Technical College TSTC,Texas State Technical College
TT,True Track TT,True Track

Can't render this file because it has a wrong number of fields in line 141.

View File

@ -8,8 +8,7 @@ AACC,American Association for Clinical Chemistry
AADC,Amino Acid DeCarboxylase AADC,Amino Acid DeCarboxylase
AADC,Aromatic L-Amino acid DeCarboxylase AADC,Aromatic L-Amino acid DeCarboxylase
AAS,Atomic Absorption Spectroscopy AAS,Atomic Absorption Spectroscopy
AB,Acid Base AB,"Acid Base, Acid Bath"
AB,Acid Bath
ABCC,Advanced Biomedical Computing Center ABCC,Advanced Biomedical Computing Center
ABCC,American Board of Clinical Chemistry ABCC,American Board of Clinical Chemistry
ABS,"Absorb, Acrylonitrile Butadiene Styrene" ABS,"Absorb, Acrylonitrile Butadiene Styrene"
@ -317,17 +316,14 @@ G,Gibbs Free Energy
G,"Giga prefix (109)" G,"Giga prefix (109)"
G,"Glycine g,gram" G,"Glycine g,gram"
G,Guanosine G,Guanosine
Ga,Gallium Ga,Gallium or Gauge
Ga,Gauge GaF,"Gallium(I)-fluorid"
GABA,Gamma-AminoButyric Acid GABA,Gamma-AminoButyric Acid
GAD,Glutamate Decarboxylase GAD,Glutamate Decarboxylase
GAG,Glycosaminoglycan GAG,Glycosaminoglycan
GBB,Gas Blow Back GBB,Gas Blow Back
GC,Geiger Counter GC,Geiger Counter
GCC,Global Carbon Cycle GCC,"Global Carbon Cycle, Global Climate Change, Glucocorticoid, or: Guanylyl Cyclase C"
GCC,Global Climate Change
GCC,Glucocorticoid
GCC,Guanylyl Cyclase C
GCMS,Gas Chromatographic Mass Spectrometer GCMS,Gas Chromatographic Mass Spectrometer
Gd,Gadolinium Gd,Gadolinium
GDP,Guanosine DiPhosphate GDP,Guanosine DiPhosphate
@ -734,8 +730,7 @@ OV,Organic Vapor
OVA,Organic Vapor Analyser OVA,Organic Vapor Analyser
OVA,OVAlbumin OVA,OVAlbumin
OWC,Oil-Water Contact OWC,Oil-Water Contact
OX,Oxidation OX,"Oxidation, Oxygen"
OX,oxygen
OXA,OXanilic Acid OXA,OXanilic Acid
OXT,OXyTocin OXT,OXyTocin
OXY,Oxygen OXY,Oxygen
@ -743,17 +738,14 @@ p+,Proton
P,Peta prefix (1015) P,Peta prefix (1015)
P,Phosphorus P,Phosphorus
p,pico prefix (10-12) p,pico prefix (10-12)
P,Pressure P,"Pressure, Proton"
P,Proton
Pa,Pascal Pa,Pascal
PA,Phosphatidic Acid PA,Phosphatidic Acid
Pa,Protactinium Pa,Protactinium
PA,Proton Affinity PA,Proton Affinity
PAA,PolyAcrylic Acid PAA,PolyAcrylic Acid
PABA,ParaAminoBenzoic Acid PABA,ParaAminoBenzoic Acid
PAC,Pharmaceutically Active Compound PAC,"Pharmaceutically Active Compound, Polycyclic Aromatic Content, Powdered Activated Carbon"
PAC,Polycyclic Aromatic Content
PAC,Powdered Activated Carbon
PAEK,PolyArylEtherKetone PAEK,PolyArylEtherKetone
PAGE,PolyAcrylamide Gel Electrophoresis PAGE,PolyAcrylamide Gel Electrophoresis
PAH,Polycyclic Aromatic Hydrocarbon PAH,Polycyclic Aromatic Hydrocarbon
@ -768,19 +760,15 @@ PBI,PolyBenzImidazole
PBN,PolyButylene Naphthalate PBN,PolyButylene Naphthalate
PBS,Phosphate Buffered Saline PBS,Phosphate Buffered Saline
PBT,PolyButylene Terephthalate PBT,PolyButylene Terephthalate
PC,PolyCarbonate PC,"PolyCarbonate, Pyruvate Carboxylase"
PC,Pyruvate Carboxylase
PCA,Pyrrolidone Carboxylic Acid PCA,Pyrrolidone Carboxylic Acid
PCC,Pyridine Chloro Chromate PCC,Pyridine Chloro Chromate
PCE,Tetrachloroethylene PCE,Tetrachloroethylene
PCR,Polymerase Chain Reaction PCR,Polymerase Chain Reaction
PCV,Pressure Control Valve PCV,Pressure Control Valve
Pd,Palladium Pd,Palladium
PD,Positive Displacement PD,"Positive Displacement, Potential Difference"
PD,Potential Difference PE,"PhycoErythrin, Polyethylene, Potential Energy"
PE,PhycoErythrin
PE,Polyethylene
PE,Potential Energy
PEA,PolyEster Amine PEA,PolyEster Amine
PEEK,PolyEtherEtherKetone PEEK,PolyEtherEtherKetone
PEG,PolyEthylene Glycol PEG,PolyEthylene Glycol
@ -806,17 +794,14 @@ PHB,PolyHydroxyButyrate
PHC,Petroleum HydroCarbon PHC,Petroleum HydroCarbon
PHMB,PolyHexaMethyleneBiguanide PHMB,PolyHexaMethyleneBiguanide
PHT,PHThalate PHT,PHThalate
PI,Phosphate Ion PI,"Phosphate Ion, PolyImide"
PI,PolyImide
PIB,PolyIsoButylene PIB,PolyIsoButylene
pK,measurement of the dissociation constant pK,measurement of the dissociation constant
PLA,Polymerized Lactic Acid PLA,Polymerized Lactic Acid
PLC,PhosphoLipase-C PLC,PhosphoLipase-C
PM,Particulate Matter PM,"Particulate Matter, Photo Multiplier"
PM,Photo Multiplier
pm,picometer pm,picometer
PM,Plasma Membrane PM,"Plasma Membrane, Powder Metallurgy"
PM,Powder Metallurgy
Pm,Promethium Pm,Promethium
PM10,Particulates smaller than 10 μm. PM10,Particulates smaller than 10 μm.
PM3,Parameterized Model number 3 PM3,Parameterized Model number 3
@ -833,15 +818,12 @@ pOH,measurement of OH- ions in aqueous solution
POL,"Petroleum, Oils, and Lubricants" POL,"Petroleum, Oils, and Lubricants"
POP,Persistent Organic Pollutant POP,Persistent Organic Pollutant
PORC,Porcelain PORC,Porcelain
PPA,PhenylPropanolAmine PPA,"PhenylPropanolAmine, PolyPhthalAmide"
PPA,PolyPhthalAmide
ppb,Parts per billion ppb,Parts per billion
ppm,Parts per million ppm,Parts per million
PPO,PolyPhenylene Oxide PPO,PolyPhenylene Oxide
PPS,PolyPhenylene Sulfide PPS,PolyPhenylene Sulfide
PPT,Parts Per Trillion PPT,"Parts Per Trillion, PolyPyrimidine Tract, Precipitate"
PPT,PolyPyrimidine Tract
PPT,Precipitate
Pr,Praseodymium Pr,Praseodymium
PRV,Pressure Relief Valve PRV,Pressure Relief Valve
PSI,Pounds per Square Inch PSI,Pounds per Square Inch
@ -850,8 +832,7 @@ Pt,Platinum
PTFE,PolyTetraFluoroEthylene PTFE,PolyTetraFluoroEthylene
Pu,Plutonium Pu,Plutonium
PU,PolyUrethane PU,PolyUrethane
PV,Parity Violation PV,"Parity Violation, Pressure Volume"
PV,Pressure Volume
PVC,PolyVinyl Chloride PVC,PolyVinyl Chloride
PVT,"Pressure, Volume, Temperature" PVT,"Pressure, Volume, Temperature"
PXY,Para-XYlene PXY,Para-XYlene
@ -859,11 +840,9 @@ Q,Heat energy
QA,Quinolinic Acid QA,Quinolinic Acid
QC,Quality Control QC,Quality Control
QCD,Quantum ChromoDynamics QCD,Quantum ChromoDynamics
QED,Quantum ElectroDynamics QED,"Quantum ElectroDynamics, Quod Erat Demonstradum (Latin for “which was to be demonstrated”)"
QED,Quod Erat Demonstradum (Latin for “which was to be demonstrated”)
QM,Quantum Mechanics QM,Quantum Mechanics
QS,Quantum State QS,"Quantum State, Quantum Sufficit (Latin for “as much as needed”)"
QS,Quantum Sufficit (Latin for “as much as needed”)
qt,quart qt,quart
QW,Quit Whining QW,Quit Whining
QY,Quantum Yield QY,Quantum Yield
@ -888,8 +867,7 @@ RBD,"Refined, Bleached and Deodorized"
RCS,Reactive Chemical Species RCS,Reactive Chemical Species
RDA,Recommended Daily Allowance RDA,Recommended Daily Allowance
RDT,Recombinant DNA Technology RDT,Recombinant DNA Technology
RDX,cyclotrimethylenetrinitramine RDX,"cyclotrimethylenetrinitramine, Research Department Explosive"
RDX,Research Department Explosive
RE,Rare Earth RE,Rare Earth
Re,Rhenium Re,Rhenium
REACH,"Registration, Evaluation, Authorization, and restriction of CHemical substances" REACH,"Registration, Evaluation, Authorization, and restriction of CHemical substances"
@ -899,8 +877,7 @@ rem,"Radiation Equivalent, Man"
REM,Rare Earth Metal REM,Rare Earth Metal
REQ,Required REQ,Required
RER,Respiratory Exchange Ratio RER,Respiratory Exchange Ratio
RF,Radio Frequency RF,"Radio Frequency, Resonance Frequency"
RF,Resonance Frequency
Rf,Rutherfordium Rf,Rutherfordium
RFIC,Reagent-Free Ion Chromatography RFIC,Reagent-Free Ion Chromatography
RFM,Relative Formula Mass RFM,Relative Formula Mass
@ -927,9 +904,7 @@ ROS,Reactive Oxygen Species
ROWPU,Reverse Osmosis Water Purification Unit ROWPU,Reverse Osmosis Water Purification Unit
RPT,Repeat RPT,Repeat
RSC,Royal Society of Chemistry RSC,Royal Society of Chemistry
RT,Energy (Rydberg Constant x Temperature) RT,"Energy (Rydberg Constant x Temperature), Reverse Transcriptase, Room Temperature"
RT,Reverse Transcriptase
RT,Room Temperature
RTM,Read The Manual RTM,Read The Manual
RTP,Room Temperature and Pressure RTP,Room Temperature and Pressure
RTSC,Room Temperature Super Conductor RTSC,Room Temperature Super Conductor
@ -977,18 +952,16 @@ Se,Selenium
Sec,Seconds Sec,Seconds
SEP,Separate SEP,Separate
SEU,Slightly Enriched Uranium SEU,Slightly Enriched Uranium
SF,Safety Factor SF,"Safety Factor, Significant Figures"
SF,Significant Figures
SFC,Supercritical Fluid Chromatography SFC,Supercritical Fluid Chromatography
SFPM,Suspended Fine Particulate Matter SFPM,Suspended Fine Particulate Matter
Sg,Seaborgium Sg,Seaborgium
SG,Specific Gravity SG,"Specific Gravity, Spheroidal Graphite"
SG,Spheroidal Graphite
SH,Thiol functional group SH,Thiol functional group
SHC,Synthetic HydroCarbon SHC,Synthetic HydroCarbon
SHE,Standard Hydrogen Electrode SHE,Standard Hydrogen Electrode
SHF,Super High Frequency SHF,Super High Frequency
SI units,Système international dunités (International System of Units) SI,"Système international dunités (International System of Units)"
Si,Silicon Si,Silicon
SL,Sea Level SL,Sea Level
SL,Short Lived SL,Short Lived
@ -1028,8 +1001,7 @@ TAC,Teiacetyl Cellulose
TAG,TriAcylGlyceride TAG,TriAcylGlyceride
tan,tangent tan,tangent
TAN,Total Acid Number TAN,Total Acid Number
TAS,Total Alkali versus Silica TAS,"Total Alkali versus Silica, Total Analysis System"
TAS,Total Analysis System
TAT,TriAcetone TriPeroxide TAT,TriAcetone TriPeroxide
Tb,Terbium Tb,Terbium
TBA,"2,4,6-TriBromoAnisole" TBA,"2,4,6-TriBromoAnisole"
@ -1038,22 +1010,15 @@ TBC,4-TertButylCatechol
TBHQ,TertButylHydroQuinone TBHQ,TertButylHydroQuinone
TBP,True Boiling Point TBP,True Boiling Point
TBT,TriButylTin TBT,TriButylTin
Tc,Critical Temperature Tc,"Critical Temperature, Technitium"
Tc,Technitium TC,"Temperature Compensated, Temperature Controlled, Theoretical Chemistry"
TC,Temperature Compensated
TC,Temperature Controlled
TC,Theoretical Chemistry
TCA,TauroCholic Acid TCA,TauroCholic Acid
TCA,TCA cycle (citric acid cycle) TCA,TCA cycle (citric acid cycle)
TCA,TriChloroAcetic Acid TCA,TriChloroAcetic Acid
TCE,TriChloroEthane TCE,TriChloroEthane
TCF,ThiolCarbon Fiber TCF,ThiolCarbon Fiber
TCM,TetraChloromethane TCM,TetraChloromethane
TCP,"1,2,3-TriChloropropane" TCP,"1,2,3-TriChloropropane, Thermal Conversion Process, Tocopherol, TriCalcium Phosphate, TriChloroPhenol"
TCP,Thermal Conversion Process
TCP,Tocopherol
TCP,TriCalcium Phosphate
TCP,TriChloroPhenol
TCS,Toxic Chemical System TCS,Toxic Chemical System
TCT,ToCoTrienol TCT,ToCoTrienol
TCV,Temperature Control Valve TCV,Temperature Control Valve
@ -1100,8 +1065,7 @@ TOC,Total Organic Carbon
TOI,Table Of Isotopes TOI,Table Of Isotopes
TON,Table Of Nuclides TON,Table Of Nuclides
TOX,Toxic TOX,Toxic
TP,Transition Point TP,"Transition Point, Triple Point"
TP,Triple Point
TPE,ThermoPlastic Elastomer TPE,ThermoPlastic Elastomer
TPM,Total Particulate Matter TPM,Total Particulate Matter
TR,Table Row TR,Table Row
@ -1125,16 +1089,13 @@ TTX,Tetrodotoxin
TU,Thermally Unbound TU,Thermally Unbound
TWMC,Time Weighted Mean Concentration TWMC,Time Weighted Mean Concentration
TWV,Total Water Vapor TWV,Total Water Vapor
U,Internal Energy U,"Internal Energy, Undetectable, Uranium"
U,Undetectable
U,Uranium
UAFM,Uranyl Acetate Fluorescence Method UAFM,Uranyl Acetate Fluorescence Method
UCK,Universal Chemical Key UCK,Universal Chemical Key
UG,"Undisturbed Gas UHC,Unburned HydroCarbons" UG,"Undisturbed Gas UHC,Unburned HydroCarbons"
UHF,Ultra High Frequency UHF,Ultra High Frequency
UHMW,Ultra High Molecular Weight UHMW,Ultra High Molecular Weight
UHP,Ultra High Pressure UHP,"Ultra High Pressure, Ultra High Purity"
UHP,Ultra High Purity
UHT,Ultra High Temperature UHT,Ultra High Temperature
UHV,Ultra High Vacuum UHV,Ultra High Vacuum
ULG,Universal Liquid Gas ULG,Universal Liquid Gas
@ -1162,38 +1123,27 @@ UVL,UltraViolet Lamp
UVR,UltraViolet Reactive UVR,UltraViolet Reactive
UXS,Glucuronic Acid DeCarboxylase UXS,Glucuronic Acid DeCarboxylase
UYQ,Uranium Yield Quantity UYQ,Uranium Yield Quantity
V,Vacuum V,"Vacuum, Valene, Vanadium, Volt, Volume"
V,Valene
V,Vanadium
v,velocity v,velocity
V,Volt VA,"Nitrogen group, Volume Analyzer"
V,Volume VAC,"Vacuum, Vacuum Assisted Closure"
VA,Nitrogen group VB,"Vacuum Break, Valence Band"
VA,Volume Analyzer
VAC,Vacuum
VAC,Vacuum Assisted Closure
VB,Vacuum Break
VB,Valence Band
VBJ,Vacuum Bell Jar VBJ,Vacuum Bell Jar
VBT,Valence Bond Theory VBT,Valence Bond Theory
VC,Vapor Cloud VC,"Vapor Cloud, Vinyl Chloride, Viscous Coupled"
VC,Vinyl Chloride
VC,Viscous Coupled
VCE,Vapor Cloud Explosion VCE,Vapor Cloud Explosion
VCM,Vinyl Chloride Monomer VCM,Vinyl Chloride Monomer
Vd,Volume distribution Vd,Volume distribution
VDB,VanDyke Brown test VDB,VanDyke Brown test
VDF,Van der Waals force VDF,Van der Waals force
VDW,Van der Waals radius VDW,Van der Waals radius
VEQ,EQuilibrium Volume VEQ,"EQuilibrium Volume, EQuivalence point Volume"
VEQ,EQuivalence point Volume
VFn,Vertical Face number (n is a number) VFn,Vertical Face number (n is a number)
VH,Vapor Hazard VH,Vapor Hazard
VHH,Volatile Halogenated Hydrocarbon VHH,Volatile Halogenated Hydrocarbon
VHI,Vapor Hazard Index VHI,Vapor Hazard Index
VHN,Vickers Hardness Number VHN,Vickers Hardness Number
VHP,Vaporized Hydrogen Peroxide VHP,"Vaporized Hydrogen Peroxide, Very High Pressure"
VHP,Very High Pressure
VHT,Very High Temperature VHT,Very High Temperature
VHY,Very High Yield VHY,Very High Yield
VI,Viscosity Index VI,Viscosity Index
@ -1204,8 +1154,7 @@ VO,Vacuum Oven
VOA,Volatile Organic Analysis VOA,Volatile Organic Analysis
VOC,Volatile Organic Compound VOC,Volatile Organic Compound
VOL,Volume VOL,Volume
VP,Vapor Point VP,"Vapor Point, Vapor Pressure"
VP,Vapor Pressure
VPE,Virtual Potential Energy VPE,Virtual Potential Energy
VR,Very Rapid VR,Very Rapid
VS,Very Saturated VS,Very Saturated
@ -1215,28 +1164,17 @@ VSS,Volatile Suspended Solid
VTC,Variable Temperature Cutoff VTC,Variable Temperature Cutoff
VTP,"Volume, Temperature, Pressure" VTP,"Volume, Temperature, Pressure"
VU,Volume Units VU,Volume Units
VV,Vacuum Vessel VV,"Vacuum Vessel, Valence-Valence"
VV,Valence-Valence
VW,Varies Widely VW,Varies Widely
W,Tryptofan W,"Tryptofan, Tungsten, Watt, wavelength, Weight, width, Work"
W,Tungsten
W,Watt
W,wavelength
W,Weight
W,width
W,Work
W5,Which Was What We Wanted W5,Which Was What We Wanted
WA,Weak Acid WA,Weak Acid
WAC,Weak Acid Cation WAC,Weak Acid Cation
WB,Water Based WB,"Water Based, Weak Base, Weak Bond"
WB,Weak Base
WB,Weak Bond
WBA,Weak Base Anion WBA,Weak Base Anion
WC,Water Cosolvent WC,Water Cosolvent
WCS,Worst Case Scenario WCS,Worst Case Scenario
WD,Water Dispersant WD,"Water Dispersant, Water Displacement, Wet/Dry"
WD,Water Displacement
WD,Wet/Dry
WIAP,Water In All Phases WIAP,Water In All Phases
WIN,Water Insoluble Nitrogen WIN,Water Insoluble Nitrogen
WNA,World Nuclear Association WNA,World Nuclear Association
@ -1244,8 +1182,7 @@ WO,Weak Oxidizer
WP,White Phosphorus WP,White Phosphorus
WPS,Water Phase Salt WPS,Water Phase Salt
WR,Water Repellent WR,Water Repellent
WS,Wash Solution WS,"Wash Solution, Water Soluble"
WS,Water Soluble
WSNZ,Water Soluble Zinc WSNZ,Water Soluble Zinc
WSPI,"Water-Soluble Phosphorous, Inorganic" WSPI,"Water-Soluble Phosphorous, Inorganic"
WSPO,"Water-Soluble Phosphorous, Organic" WSPO,"Water-Soluble Phosphorous, Organic"
@ -1262,8 +1199,7 @@ WWIX,Waste Water Ion eXchange
WYOL,Write Your Own Lab WYOL,Write Your Own Lab
WYOLA,Write Your Own Lab Assignment WYOLA,Write Your Own Lab Assignment
WYU,What You Use WYU,What You Use
X,Halogen X,"Halogen, unknown"
X,unknown
XAG,Silver Troy Ounce XAG,Silver Troy Ounce
XAN,XANthine XAN,XANthine
XAU,Gold Troy Ounce XAU,Gold Troy Ounce
@ -1275,10 +1211,8 @@ XPD,Palladium Troy Ounce
XPT,Platinum Troy Ounce XPT,Platinum Troy Ounce
XUM,X-ray Ultra-Microscope XUM,X-ray Ultra-Microscope
XYD,XYliDine XYD,XYliDine
Y,Tyrosine Y,"Tyrosine, Yotta prefix (1024), Yttrium"
y,yocto prefix (10-24) y,yocto prefix (10-24)
Y,Yotta prefix (1024)
Y,Yttrium
YA,Yield Analysis YA,Yield Analysis
YAG,Yttrium Aluminum Garnet YAG,Yttrium Aluminum Garnet
YAP,Yield Analysis Pattern YAP,Yield Analysis Pattern
@ -1290,13 +1224,8 @@ Yd,Yard
YIC,Yttrium Lithium Fluoride YIC,Yttrium Lithium Fluoride
Yr,Year Yr,Year
YZN,Yellow ZiNc dichromate YZN,Yellow ZiNc dichromate
Z,Atomic Number Z,"Atomic Number, azimuth, Impedance, proton number, zero, Zetta prefix (1021)"
Z,azimuth
Z,Impedance
Z,proton number
z,zepto prefix (10-21) z,zepto prefix (10-21)
Z,zero
Z,Zetta prefix (1021)
ZB,Zinc Blende ZB,Zinc Blende
ZC,Zero Calibration ZC,Zero Calibration
ZC,Zinc Composite ZC,Zinc Composite

1 TERM MEANING
8 AADC Amino Acid DeCarboxylase
9 AADC Aromatic L-Amino acid DeCarboxylase
10 AAS Atomic Absorption Spectroscopy
11 AB Acid Base Acid Base, Acid Bath
AB Acid Bath
12 ABCC Advanced Biomedical Computing Center
13 ABCC American Board of Clinical Chemistry
14 ABS Absorb, Acrylonitrile Butadiene Styrene
316 G Giga prefix (109)
317 G Glycine g,gram
318 G Guanosine
319 Ga Gallium Gallium or Gauge
320 Ga GaF Gauge Gallium(I)-fluorid
321 GABA Gamma-AminoButyric Acid
322 GAD Glutamate Decarboxylase
323 GAG Glycosaminoglycan
324 GBB Gas Blow Back
325 GC Geiger Counter
326 GCC Global Carbon Cycle Global Carbon Cycle, Global Climate Change, Glucocorticoid, or: Guanylyl Cyclase C
GCC Global Climate Change
GCC Glucocorticoid
GCC Guanylyl Cyclase C
327 GCMS Gas Chromatographic Mass Spectrometer
328 Gd Gadolinium
329 GDP Guanosine DiPhosphate
730 OVA Organic Vapor Analyser
731 OVA OVAlbumin
732 OWC Oil-Water Contact
733 OX Oxidation Oxidation, Oxygen
OX oxygen
734 OXA OXanilic Acid
735 OXT OXyTocin
736 OXY Oxygen
738 P Peta prefix (1015)
739 P Phosphorus
740 p pico prefix (10-12)
741 P Pressure Pressure, Proton
P Proton
742 Pa Pascal
743 PA Phosphatidic Acid
744 Pa Protactinium
745 PA Proton Affinity
746 PAA PolyAcrylic Acid
747 PABA ParaAminoBenzoic Acid
748 PAC Pharmaceutically Active Compound Pharmaceutically Active Compound, Polycyclic Aromatic Content, Powdered Activated Carbon
PAC Polycyclic Aromatic Content
PAC Powdered Activated Carbon
749 PAEK PolyArylEtherKetone
750 PAGE PolyAcrylamide Gel Electrophoresis
751 PAH Polycyclic Aromatic Hydrocarbon
760 PBN PolyButylene Naphthalate
761 PBS Phosphate Buffered Saline
762 PBT PolyButylene Terephthalate
763 PC PolyCarbonate PolyCarbonate, Pyruvate Carboxylase
PC Pyruvate Carboxylase
764 PCA Pyrrolidone Carboxylic Acid
765 PCC Pyridine Chloro Chromate
766 PCE Tetrachloroethylene
767 PCR Polymerase Chain Reaction
768 PCV Pressure Control Valve
769 Pd Palladium
770 PD Positive Displacement Positive Displacement, Potential Difference
771 PD PE Potential Difference PhycoErythrin, Polyethylene, Potential Energy
PE PhycoErythrin
PE Polyethylene
PE Potential Energy
772 PEA PolyEster Amine
773 PEEK PolyEtherEtherKetone
774 PEG PolyEthylene Glycol
794 PHC Petroleum HydroCarbon
795 PHMB PolyHexaMethyleneBiguanide
796 PHT PHThalate
797 PI Phosphate Ion Phosphate Ion, PolyImide
PI PolyImide
798 PIB PolyIsoButylene
799 pK measurement of the dissociation constant
800 PLA Polymerized Lactic Acid
801 PLC PhosphoLipase-C
802 PM Particulate Matter Particulate Matter, Photo Multiplier
PM Photo Multiplier
803 pm picometer
804 PM Plasma Membrane Plasma Membrane, Powder Metallurgy
PM Powder Metallurgy
805 Pm Promethium
806 PM10 Particulates smaller than 10 μm.
807 PM3 Parameterized Model number 3
818 POL Petroleum, Oils, and Lubricants
819 POP Persistent Organic Pollutant
820 PORC Porcelain
821 PPA PhenylPropanolAmine PhenylPropanolAmine, PolyPhthalAmide
PPA PolyPhthalAmide
822 ppb Parts per billion
823 ppm Parts per million
824 PPO PolyPhenylene Oxide
825 PPS PolyPhenylene Sulfide
826 PPT Parts Per Trillion Parts Per Trillion, PolyPyrimidine Tract, Precipitate
PPT PolyPyrimidine Tract
PPT Precipitate
827 Pr Praseodymium
828 PRV Pressure Relief Valve
829 PSI Pounds per Square Inch
832 PTFE PolyTetraFluoroEthylene
833 Pu Plutonium
834 PU PolyUrethane
835 PV Parity Violation Parity Violation, Pressure Volume
PV Pressure Volume
836 PVC PolyVinyl Chloride
837 PVT Pressure, Volume, Temperature
838 PXY Para-XYlene
840 QA Quinolinic Acid
841 QC Quality Control
842 QCD Quantum ChromoDynamics
843 QED Quantum ElectroDynamics Quantum ElectroDynamics, Quod Erat Demonstradum (Latin for “which was to be demonstrated”)
QED Quod Erat Demonstradum (Latin for “which was to be demonstrated”)
844 QM Quantum Mechanics
845 QS Quantum State Quantum State, Quantum Sufficit (Latin for “as much as needed”)
QS Quantum Sufficit (Latin for “as much as needed”)
846 qt quart
847 QW Quit Whining
848 QY Quantum Yield
867 RCS Reactive Chemical Species
868 RDA Recommended Daily Allowance
869 RDT Recombinant DNA Technology
870 RDX cyclotrimethylenetrinitramine cyclotrimethylenetrinitramine, Research Department Explosive
RDX Research Department Explosive
871 RE Rare Earth
872 Re Rhenium
873 REACH Registration, Evaluation, Authorization, and restriction of CHemical substances
877 REM Rare Earth Metal
878 REQ Required
879 RER Respiratory Exchange Ratio
880 RF Radio Frequency Radio Frequency, Resonance Frequency
RF Resonance Frequency
881 Rf Rutherfordium
882 RFIC Reagent-Free Ion Chromatography
883 RFM Relative Formula Mass
904 ROWPU Reverse Osmosis Water Purification Unit
905 RPT Repeat
906 RSC Royal Society of Chemistry
907 RT Energy (Rydberg Constant x Temperature) Energy (Rydberg Constant x Temperature), Reverse Transcriptase, Room Temperature
RT Reverse Transcriptase
RT Room Temperature
908 RTM Read The Manual
909 RTP Room Temperature and Pressure
910 RTSC Room Temperature Super Conductor
952 Sec Seconds
953 SEP Separate
954 SEU Slightly Enriched Uranium
955 SF Safety Factor Safety Factor, Significant Figures
SF Significant Figures
956 SFC Supercritical Fluid Chromatography
957 SFPM Suspended Fine Particulate Matter
958 Sg Seaborgium
959 SG Specific Gravity Specific Gravity, Spheroidal Graphite
SG Spheroidal Graphite
960 SH Thiol functional group
961 SHC Synthetic HydroCarbon
962 SHE Standard Hydrogen Electrode
963 SHF Super High Frequency
964 SI units SI Système international d’unités (International System of Units)
965 Si Silicon
966 SL Sea Level
967 SL Short Lived
1001 TAG TriAcylGlyceride
1002 tan tangent
1003 TAN Total Acid Number
1004 TAS Total Alkali versus Silica Total Alkali versus Silica, Total Analysis System
TAS Total Analysis System
1005 TAT TriAcetone TriPeroxide
1006 Tb Terbium
1007 TBA 2,4,6-TriBromoAnisole
1010 TBHQ TertButylHydroQuinone
1011 TBP True Boiling Point
1012 TBT TriButylTin
1013 Tc Critical Temperature Critical Temperature, Technitium
1014 Tc TC Technitium Temperature Compensated, Temperature Controlled, Theoretical Chemistry
TC Temperature Compensated
TC Temperature Controlled
TC Theoretical Chemistry
1015 TCA TauroCholic Acid
1016 TCA TCA cycle (citric acid cycle)
1017 TCA TriChloroAcetic Acid
1018 TCE TriChloroEthane
1019 TCF ThiolCarbon Fiber
1020 TCM TetraChloromethane
1021 TCP 1,2,3-TriChloropropane 1,2,3-TriChloropropane, Thermal Conversion Process, Tocopherol, TriCalcium Phosphate, TriChloroPhenol
TCP Thermal Conversion Process
TCP Tocopherol
TCP TriCalcium Phosphate
TCP TriChloroPhenol
1022 TCS Toxic Chemical System
1023 TCT ToCoTrienol
1024 TCV Temperature Control Valve
1065 TOI Table Of Isotopes
1066 TON Table Of Nuclides
1067 TOX Toxic
1068 TP Transition Point Transition Point, Triple Point
TP Triple Point
1069 TPE ThermoPlastic Elastomer
1070 TPM Total Particulate Matter
1071 TR Table Row
1089 TU Thermally Unbound
1090 TWMC Time Weighted Mean Concentration
1091 TWV Total Water Vapor
1092 U Internal Energy Internal Energy, Undetectable, Uranium
U Undetectable
U Uranium
1093 UAFM Uranyl Acetate Fluorescence Method
1094 UCK Universal Chemical Key
1095 UG Undisturbed Gas UHC,Unburned HydroCarbons
1096 UHF Ultra High Frequency
1097 UHMW Ultra High Molecular Weight
1098 UHP Ultra High Pressure Ultra High Pressure, Ultra High Purity
UHP Ultra High Purity
1099 UHT Ultra High Temperature
1100 UHV Ultra High Vacuum
1101 ULG Universal Liquid Gas
1123 UVR UltraViolet Reactive
1124 UXS Glucuronic Acid DeCarboxylase
1125 UYQ Uranium Yield Quantity
1126 V Vacuum Vacuum, Valene, Vanadium, Volt, Volume
V Valene
V Vanadium
1127 v velocity
1128 V VA Volt Nitrogen group, Volume Analyzer
1129 V VAC Volume Vacuum, Vacuum Assisted Closure
1130 VA VB Nitrogen group Vacuum Break, Valence Band
VA Volume Analyzer
VAC Vacuum
VAC Vacuum Assisted Closure
VB Vacuum Break
VB Valence Band
1131 VBJ Vacuum Bell Jar
1132 VBT Valence Bond Theory
1133 VC Vapor Cloud Vapor Cloud, Vinyl Chloride, Viscous Coupled
VC Vinyl Chloride
VC Viscous Coupled
1134 VCE Vapor Cloud Explosion
1135 VCM Vinyl Chloride Monomer
1136 Vd Volume distribution
1137 VDB VanDyke Brown test
1138 VDF Van der Waals force
1139 VDW Van der Waals radius
1140 VEQ EQuilibrium Volume EQuilibrium Volume, EQuivalence point Volume
VEQ EQuivalence point Volume
1141 VFn Vertical Face number (n is a number)
1142 VH Vapor Hazard
1143 VHH Volatile Halogenated Hydrocarbon
1144 VHI Vapor Hazard Index
1145 VHN Vickers Hardness Number
1146 VHP Vaporized Hydrogen Peroxide Vaporized Hydrogen Peroxide, Very High Pressure
VHP Very High Pressure
1147 VHT Very High Temperature
1148 VHY Very High Yield
1149 VI Viscosity Index
1154 VOA Volatile Organic Analysis
1155 VOC Volatile Organic Compound
1156 VOL Volume
1157 VP Vapor Point Vapor Point, Vapor Pressure
VP Vapor Pressure
1158 VPE Virtual Potential Energy
1159 VR Very Rapid
1160 VS Very Saturated
1164 VTC Variable Temperature Cutoff
1165 VTP Volume, Temperature, Pressure
1166 VU Volume Units
1167 VV Vacuum Vessel Vacuum Vessel, Valence-Valence
VV Valence-Valence
1168 VW Varies Widely
1169 W Tryptofan Tryptofan, Tungsten, Watt, wavelength, Weight, width, Work
W Tungsten
W Watt
W wavelength
W Weight
W width
W Work
1170 W5 Which Was What We Wanted
1171 WA Weak Acid
1172 WAC Weak Acid Cation
1173 WB Water Based Water Based, Weak Base, Weak Bond
WB Weak Base
WB Weak Bond
1174 WBA Weak Base Anion
1175 WC Water Cosolvent
1176 WCS Worst Case Scenario
1177 WD Water Dispersant Water Dispersant, Water Displacement, Wet/Dry
WD Water Displacement
WD Wet/Dry
1178 WIAP Water In All Phases
1179 WIN Water Insoluble Nitrogen
1180 WNA World Nuclear Association
1182 WP White Phosphorus
1183 WPS Water Phase Salt
1184 WR Water Repellent
1185 WS Wash Solution Wash Solution, Water Soluble
WS Water Soluble
1186 WSNZ Water Soluble Zinc
1187 WSPI Water-Soluble Phosphorous, Inorganic
1188 WSPO Water-Soluble Phosphorous, Organic
1199 WYOL Write Your Own Lab
1200 WYOLA Write Your Own Lab Assignment
1201 WYU What You Use
1202 X Halogen Halogen, unknown
X unknown
1203 XAG Silver Troy Ounce
1204 XAN XANthine
1205 XAU Gold Troy Ounce
1211 XPT Platinum Troy Ounce
1212 XUM X-ray Ultra-Microscope
1213 XYD XYliDine
1214 Y Tyrosine Tyrosine, Yotta prefix (1024), Yttrium
1215 y yocto prefix (10-24)
Y Yotta prefix (1024)
Y Yttrium
1216 YA Yield Analysis
1217 YAG Yttrium Aluminum Garnet
1218 YAP Yield Analysis Pattern
1224 YIC Yttrium Lithium Fluoride
1225 Yr Year
1226 YZN Yellow ZiNc dichromate
1227 Z Atomic Number Atomic Number, azimuth, Impedance, proton number, zero, Zetta prefix (1021)
Z azimuth
Z Impedance
Z proton number
1228 z zepto prefix (10-21)
Z zero
Z Zetta prefix (1021)
1229 ZB Zinc Blende
1230 ZC Zero Calibration
1231 ZC Zinc Composite

View File

@ -243,6 +243,7 @@ ASSP,application-specific standard product
AST,automated storage tiering AST,automated storage tiering
ASTM,American Society for Testing and Materials ASTM,American Society for Testing and Materials
ASUG,Americas' SAP Users' Group ASUG,Americas' SAP Users' Group
ASWF,Academy Software Foundation
ATA,Advanced Technology Attachment ATA,Advanced Technology Attachment
ATA,American Telemedicine Association ATA,American Telemedicine Association
ATA,analog telephone adapter ATA,analog telephone adapter
@ -468,6 +469,7 @@ CDR,call detail record
CDR,Computed Dental Radiography CDR,Computed Dental Radiography
CDSL,Consumer Digital Subscriber Line CDSL,Consumer Digital Subscriber Line
CDSS,clinical decision support system CDSS,clinical decision support system
CDU,Coolant Distribution Unit
CdTe,cadmium telluride CdTe,cadmium telluride
CEBP,communications-enabled business processes CEBP,communications-enabled business processes
CELL,Cell processor CELL,Cell processor
@ -537,9 +539,7 @@ CKO,chief knowledge officer
CL,cluster log CL,cluster log
CLASS,Capacity Loading and Operation Sequence Scheduling CLASS,Capacity Loading and Operation Sequence Scheduling
CLEC,competitive local exchange carrier CLEC,competitive local exchange carrier
CLI,command line interface CLI,"Command Line Interface, Command Line Interpreter, Common Language Infrastructure"
CLI,Command Line Interpreter
CLI,Common Language Infrastructure
CLM,Council For Logistics Management CLM,Council For Logistics Management
CLO,chief learning officer CLO,chief learning officer
CLOB,Character Large OBject CLOB,Character Large OBject
@ -548,7 +548,8 @@ CLR,Common Language Runtime
CM,configuration management CM,configuration management
CM,content management CM,content management
CM,Contract Manufacturer CM,Contract Manufacturer
CMA,content management application CMA,Content Management Application
CMD,Command Prompt
CMDB,configuration management database CMDB,configuration management database
CMDM,Collaborative Master Data Management CMDM,Collaborative Master Data Management
CMIO,Chief Medical Information Officer CMIO,Chief Medical Information Officer
@ -675,7 +676,9 @@ CWE,Common Weakness Enumeration
CWF,common working file CWF,common working file
CWNP,Certified Wireless Networking Professional CWNP,Certified Wireless Networking Professional
CX,consumer experience CX,consumer experience
CXF,Credential Exchange Format
CXO,chief experience officer CXO,chief experience officer
CXP,Credential Exchange Protocol
D-AMPS,Digital-Advanced Mobile Phone Service D-AMPS,Digital-Advanced Mobile Phone Service
D-VHS,Digital Video Home System D-VHS,Digital Video Home System
D2D,Disk to Disk D2D,Disk to Disk
@ -1005,6 +1008,7 @@ EOL,"End of Life, End of Line"
EOM,End of Message EOM,End of Message
EOP,Microsoft Exchange Online Protection EOP,Microsoft Exchange Online Protection
EOQ,Economic Order Quantity EOQ,Economic Order Quantity
EOT,End of Transmission
EPA,Microsoft Exchange Server Profile Analyzer EPA,Microsoft Exchange Server Profile Analyzer
EPC,Evolved Packet Core EPC,Evolved Packet Core
EPD,electronic paper display EPD,electronic paper display
@ -1111,6 +1115,7 @@ FHA,Federal Health Architecture
FHIE,Federal Health Information Exchange FHIE,Federal Health Information Exchange
FI,Fast Infoset FI,Fast Infoset
FICON,Fiber Connectivity FICON,Fiber Connectivity
FIDO,Fast Identity Online Alliance
FIFO,"First In, First Out" FIFO,"First In, First Out"
FILO,"First In, Last Out" FILO,"First In, Last Out"
FIM,federated identity management FIM,federated identity management
@ -1282,7 +1287,7 @@ gTLD,generic top-level domain name
GTM,strategy go-to-market strategy GTM,strategy go-to-market strategy
GUA,graphical password or graphical user authentication GUA,graphical password or graphical user authentication
GUI,Graphical User Interface GUI,Graphical User Interface
GUID,global unique identifier GUID,Globally Unique Identifier (see also UUID)
GUM,Global Update Manager GUM,Global Update Manager
GWAC,governmentwide acquisition contract GWAC,governmentwide acquisition contract
GXA,Global XML Web Services Architecture GXA,Global XML Web Services Architecture
@ -1392,6 +1397,7 @@ IBP,integrated business planning
IC,integrated circuit IC,integrated circuit
IC-BPMS,integration-centric business process management suite IC-BPMS,integration-centric business process management suite
ICANN,Internet Corporation for Assigned Names and Numbers ICANN,Internet Corporation for Assigned Names and Numbers
ICD,Interface Control Document
ICE,"In-Circuit Emulator, Information and Content Exchange" ICE,"In-Circuit Emulator, Information and Content Exchange"
IcM,incident management IcM,incident management
ICMP,Internet Control Message Protocol ICMP,Internet Control Message Protocol
@ -1475,8 +1481,7 @@ IRQ,interrupt request
IRR,internal rate of return IRR,internal rate of return
IRTF,Internet Research Task Force IRTF,Internet Research Task Force
IRU,Indefeasible Right of Use 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 IS-IS,Intermediate System-to-Intermediate System protocol
ISA,Industry Standard Architecture ISA,Industry Standard Architecture
ISAM,Indexed Sequential Access Method ISAM,Indexed Sequential Access Method
@ -2606,7 +2611,7 @@ USSD,Unstructured Supplementary Service Data
UTF,Unicode Transformation Format UTF,Unicode Transformation Format
UTM,unified threat management UTM,unified threat management
UUCP,UNIX-to-UNIX Copy Protocol UUCP,UNIX-to-UNIX Copy Protocol
UUID,Universal Unique Identifier UUID,Universally Unique Identifier (see also GUID)
UX,user experience UX,user experience
UXGA,Ultra Extended Graphics Array UXGA,Ultra Extended Graphics Array
V2P,virtual to physical V2P,virtual to physical

1 TERM MEANING
243 AST automated storage tiering
244 ASTM American Society for Testing and Materials
245 ASUG Americas' SAP Users' Group
246 ASWF Academy Software Foundation
247 ATA Advanced Technology Attachment
248 ATA American Telemedicine Association
249 ATA analog telephone adapter
469 CDR Computed Dental Radiography
470 CDSL Consumer Digital Subscriber Line
471 CDSS clinical decision support system
472 CDU Coolant Distribution Unit
473 CdTe cadmium telluride
474 CEBP communications-enabled business processes
475 CELL Cell processor
539 CL cluster log
540 CLASS Capacity Loading and Operation Sequence Scheduling
541 CLEC competitive local exchange carrier
542 CLI command line interface Command Line Interface, Command Line Interpreter, Common Language Infrastructure
CLI Command Line Interpreter
CLI Common Language Infrastructure
543 CLM Council For Logistics Management
544 CLO chief learning officer
545 CLOB Character Large OBject
548 CM configuration management
549 CM content management
550 CM Contract Manufacturer
551 CMA content management application Content Management Application
552 CMD Command Prompt
553 CMDB configuration management database
554 CMDM Collaborative Master Data Management
555 CMIO Chief Medical Information Officer
676 CWF common working file
677 CWNP Certified Wireless Networking Professional
678 CX consumer experience
679 CXF Credential Exchange Format
680 CXO chief experience officer
681 CXP Credential Exchange Protocol
682 D-AMPS Digital-Advanced Mobile Phone Service
683 D-VHS Digital Video Home System
684 D2D Disk to Disk
1008 EOM End of Message
1009 EOP Microsoft Exchange Online Protection
1010 EOQ Economic Order Quantity
1011 EOT End of Transmission
1012 EPA Microsoft Exchange Server Profile Analyzer
1013 EPC Evolved Packet Core
1014 EPD electronic paper display
1115 FHIE Federal Health Information Exchange
1116 FI Fast Infoset
1117 FICON Fiber Connectivity
1118 FIDO Fast Identity Online Alliance
1119 FIFO First In, First Out
1120 FILO First In, Last Out
1121 FIM federated identity management
1287 GTM strategy go-to-market strategy
1288 GUA graphical password or graphical user authentication
1289 GUI Graphical User Interface
1290 GUID global unique identifier Globally Unique Identifier (see also UUID)
1291 GUM Global Update Manager
1292 GWAC governmentwide acquisition contract
1293 GXA Global XML Web Services Architecture
1397 IC integrated circuit
1398 IC-BPMS integration-centric business process management suite
1399 ICANN Internet Corporation for Assigned Names and Numbers
1400 ICD Interface Control Document
1401 ICE In-Circuit Emulator, Information and Content Exchange
1402 IcM incident management
1403 ICMP Internet Control Message Protocol
1481 IRR internal rate of return
1482 IRTF Internet Research Task Force
1483 IRU Indefeasible Right of Use
1484 IS Information System Information System or Information Services
IS information system or information services
1485 IS-IS Intermediate System-to-Intermediate System protocol
1486 ISA Industry Standard Architecture
1487 ISAM Indexed Sequential Access Method
2611 UTF Unicode Transformation Format
2612 UTM unified threat management
2613 UUCP UNIX-to-UNIX Copy Protocol
2614 UUID Universal Unique Identifier Universally Unique Identifier (see also GUID)
2615 UX user experience
2616 UXGA Ultra Extended Graphics Array
2617 V2P virtual to physical

View File

@ -340,17 +340,18 @@ AOSTH,Adventures of Sonic the Hedgehog
AOTS,"Attack of the Show!" AOTS,"Attack of the Show!"
AOU,American Ornithologists' Union AOU,American Ornithologists' Union
AP,"Advanced Placement,Air Publication,Andhra Pradesh (Indian state code),Armed Forces Pacific (postal symbol),Associated Press,Auto Pilot" 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) APB,All Points Bulletin (police jargon)
APC,Armoured Personnel Carrier,Armour Piercing Capped (ammunition) APC,"Armoured Personnel Carrier, Armour Piercing Capped (ammunition)"
APCNR,Armour-Piercing,Composite Non-Rigid (ammunition) APCNR,"Armour-Piercing,Composite Non-Rigid (ammunition)"
APCR,Armour-Piercing,Composite Rigid (ammunition) APCR,"Armour-Piercing,Composite Rigid (ammunition)"
APDS,Armour-Piercing,Discarding-Sabot (ammunition) APDS,"Armour-Piercing,Discarding-Sabot (ammunition)"
APEC,Asia Pacific Economic Cooperation APEC,Asia Pacific Economic Cooperation
APEDS,AMSAA Performance Estimates Data System APEDS,AMSAA Performance Estimates Data System
APEX,Applied Physics Express 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 APHA,American Public Health Association
APHE,Armour-Piercing,High Explosive (ammunition) APHE,"Armour-Piercing, High Explosive (ammunition)"
APHIS,Animal and Plant Health Inspection Service APHIS,Animal and Plant Health Inspection Service
APL,"Acute Promyeloid Leukaemia,Anti-Personnel Landmine,Applied Physics Laboratory (Johns Hopkins University)" APL,"Acute Promyeloid Leukaemia,Anti-Personnel Landmine,Applied Physics Laboratory (Johns Hopkins University)"
APOD,Aerial Port (Airport) Of Debarkation APOD,Aerial Port (Airport) Of Debarkation
@ -370,13 +371,13 @@ ARC,Arc-second Raster Chart,Appalachian Regional Commission
ARCA,Automobile Racing Club of America ARCA,Automobile Racing Club of America
ARCENT,United States Army Central Command ARCENT,United States Army Central Command
ARDA,Advanced Research and Development Activity (became DTO 2006) 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 ARF,ASEAN Regional Forum
ARG,Argentina (ISO 3166 trigram) ARG,Argentina (ISO 3166 trigram)
ARH,Armed Reconnaissance Helicopter ARH,Armed Reconnaissance Helicopter
ARI,Acute Respiratory Infection,U.S. Army Research Institute for the Behavioral and Social Sciences 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 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) ARM,"Anti-Radiation Missile,Adjustable-rate mortgage,Armenia (ISO 3166 trigram)"
ARNet,Acquisition Reform Network ARNet,Acquisition Reform Network
ARP,Applied Research Programme ARP,Applied Research Programme
ARPA,Advanced Research Projects Agency ARPA,Advanced Research Projects Agency
@ -385,7 +386,7 @@ ARRF,Allied Rapid Reaction Force
ARRL,American Radio Relay League ARRL,American Radio Relay League
ARSC,Arctic Region Supercomputing Center ARSC,Arctic Region Supercomputing Center
ARSPACE,U.S. Army Space Command 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 ARTCC,Air Route Traffic Control Center
ARWG,Army Research Working Group ARWG,Army Research Working Group
AS,ActionScript AS,ActionScript
@ -1076,7 +1077,6 @@ DHA,DocosaHexaenoic Acid
DHHS,(U.S.) Department of Health and Human Services DHHS,(U.S.) Department of Health and Human Services
DHL,Dalsey,Hillblom,and Lynn (courier service) DHL,Dalsey,Hillblom,and Lynn (courier service)
DHRA,(U.S.) DoD Human Resources Activity DHRA,(U.S.) DoD Human Resources Activity
DHS,U.S. Department of Homeland Security
DHSS,UK Department of Health and Social Security DHSS,UK Department of Health and Social Security
DHTFYSS,U.S. Don't Have Time For You Silly S**** DHTFYSS,U.S. Don't Have Time For You Silly S****
DHY,Dahomey (ISO 3166 trigram; became BEN for Benin in 1977) DHY,Dahomey (ISO 3166 trigram; became BEN for Benin in 1977)
@ -2294,7 +2294,7 @@ IRQ,Iraq (ISO 3166 trigram)
IRS,U.S. Internal Revenue Service IRS,U.S. Internal Revenue Service
IRSN,Institut de radioprotection et de sûreté nucléaire (French,"Institute for Radiation Protection and Nuclear Safety") IRSN,Institut de radioprotection et de sûreté nucléaire (French,"Institute for Radiation Protection and Nuclear Safety")
IRST,Infra-red Search and Track 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 ISA,Individual Savings Account,Industry Standard Architecture,Instruction Set Architecture,International Seabed Authority
ISAAA,International Service for the Acquisition of Agri-biotech Applications ISAAA,International Service for the Acquisition of Agri-biotech Applications
ISAF,International Sailing Federation,International Security Assistance Force ISAF,International Sailing Federation,International Security Assistance Force
@ -2309,7 +2309,7 @@ ISEN,Internet Search Environment Number
ISF,Internal Security Force 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 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 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) ISL,Iceland (ISO 3166 trigram)
ISLN,International Standard Lawyer Number (used initially by LexisNexis Martindale-Hubbell) ISLN,International Standard Lawyer Number (used initially by LexisNexis Martindale-Hubbell)
ISM,Industrial,scientific or medical,Interstellar medium 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] ISOGP,Indian Society of Orthodontics for General Practitioners [2]
ISP,International Standardized Profile,Internet Service Provider,Information Systems Professional ISP,International Standardized Profile,Internet Service Provider,Information Systems Professional
ISPE,International Society for Pharmacoepidemiology 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 ISRO,Indian Space Research Organisation
ISS,International Shorebird Survey (North America),International Space Station ISS,International Shorebird Survey (North America),International Space Station
ISSCR,International Society for Stem Cell Research ISSCR,International Society for Stem Cell Research
@ -2962,7 +2962,6 @@ MLK,Martin Luther King,Jr.
MLL,Major League Lacrosse MLL,Major League Lacrosse
MLLW,Mean Lower Low Water (nautical charts) MLLW,Mean Lower Low Water (nautical charts)
MLP,My Little Pony MLP,My Little Pony
MLRS,Multiple-Launch Rocket System
MLS,Major League Soccer,Multiple Listing Service MLS,Major League Soccer,Multiple Listing Service
MLSE,Maple Leaf Sports & Entertainment (owner of several Toronto-based sports teams),Maximum likelihood sequence estimation MLSE,Maple Leaf Sports & Entertainment (owner of several Toronto-based sports teams),Maximum likelihood sequence estimation
MLSR,Missing,Lost or Stolen Report MLSR,Missing,Lost or Stolen Report
@ -3912,7 +3911,7 @@ PPS,post postscriptum,Precise/Precision Positioning Service (GPS),PolyPhenylene
PPV,Pay-per-view PPV,Pay-per-view
PQ,Province of Québec (obsolete postal code,replaced by QC),Parti Québécois,PR[edit] PQ,Province of Québec (obsolete postal code,replaced by QC),Parti Québécois,PR[edit]
Pr,"Pastor, Priest" Pr,"Pastor, Priest"
PR,Public Relations PR,"Public Relations, Personal Record"
Prb,Presbyter Prb,Presbyter
PRBO,Point Reyes Bird Observatory PRBO,Point Reyes Bird Observatory
PRC,People's Republic of China PRC,People's Republic of China
@ -4743,7 +4742,6 @@ UTEP, University of Texas at El Paso (pronounced you-tep)
UTM,Universal Transverse Mercator (geographical co-ordinate system) UTM,Universal Transverse Mercator (geographical co-ordinate system)
UU,Unitarian Universalism,University of Utah,Unseen University UU,Unitarian Universalism,University of Utah,Unseen University
UUA,Unitarian Universalist Association UUA,Unitarian Universalist Association
UUID,Universally Unique Identifier (see also GUID)
UUV,Unmanned Underwater Vehicle UUV,Unmanned Underwater Vehicle
UV,Burkina Faso (from Upper Volta),ultraviolet 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] 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]

Can't render this file because it has a wrong number of fields in line 8.

View File

@ -321,6 +321,7 @@ HEMAT,Heavy Expanded Mobility Ammunition Trailer
HEP,High Explosive Plastic HEP,High Explosive Plastic
HESH,High Explosive Squash Head HESH,High Explosive Squash Head
HE-T,High Explosive - Tracer HE-T,High Explosive - Tracer
HIMARS,High Mobility Artillery Rocket System
HMG,Heavy Machine u Gun HMG,Heavy Machine u Gun
HMO,Health Maintenance Organization HMO,Health Maintenance Organization
HOB,Height of Burst HOB,Height of Burst

Can't render this file because it has a wrong number of fields in line 63.

View File

@ -14,16 +14,18 @@ BMW, Bavarian Motor Works
BND,Bundesnachrichtendienst (Germany) BND,Bundesnachrichtendienst (Germany)
BVD, Bradley, Voorhees, and Day BVD, Bradley, Voorhees, and Day
CERN,European Organization for Nuclear Research 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 CPUC,California Public Utilities Commission
DOC,U.S. Department of Commerce DHS,Department of Homeland Security (USA)
DOD,U.S. Department of Defense DOC,Department of Commerce (USA)
DOE,U.S. Department of Energy DoD,Department of Defense (USA)
DOI,U.S. Department of the Interior DoE,Department of Energy (USA)
DOJ,U.S. Department of Justice DOI,Department of the Interior (USA)
DOL,U.S. Department of Labor DOJ,Department of Justice (USA)
DOS,U.S. Department of State DOL,Department of Labor (USA)
DOT,U.S. Department of Transportation DOS,Department of State (USA)
DOT,Department of Transportation (USA)
EASA,European Aviation Safety Agency EASA,European Aviation Safety Agency
ED,U.S. Department of Education ED,U.S. Department of Education
ESA,European Space Agency ESA,European Space Agency

Can't render this file because it has a wrong number of fields in line 15.

View File

@ -1,5 +1,5 @@
DOMAIN, DOMAIN,
a.root-servers.net, abc.com
airbnb.com, airbnb.com,
aka.ms, aka.ms,
api.met.no, api.met.no,
@ -10,8 +10,8 @@ amazon.com,
b.root-servers.net, b.root-servers.net,
bing.com, bing.com,
bitbucket.org, bitbucket.org,
c.root-servers.net,
client.dropbox.com, client.dropbox.com,
cnn.com,
contacts.google.com, contacts.google.com,
d.dropbox.com, d.dropbox.com,
d.root-servers.net, d.root-servers.net,
@ -98,4 +98,4 @@ www.whatsapp.com,
www.whitehouse.gov, www.whitehouse.gov,
www.windy.com, www.windy.com,
www.wikipedia.org, www.wikipedia.org,
www.youtube.com, www.youtube.com,
1 DOMAIN DOMAIN,
2 a.root-servers.net abc.com
3 airbnb.com airbnb.com,
4 aka.ms aka.ms,
5 api.met.no api.met.no,
10 b.root-servers.net b.root-servers.net,
11 bing.com bing.com,
12 bitbucket.org bitbucket.org,
c.root-servers.net
13 client.dropbox.com client.dropbox.com,
14 cnn.com,
15 contacts.google.com contacts.google.com,
16 d.dropbox.com d.dropbox.com,
17 d.root-servers.net d.root-servers.net,
98 www.whitehouse.gov www.whitehouse.gov,
99 www.windy.com www.windy.com,
100 www.wikipedia.org www.wikipedia.org,
101 www.youtube.com www.youtube.com,

View File

@ -1,5 +1,5 @@
FOLDERNAME, CATEGORY, URL, BRANCH, SHALLOW, 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, bazel, "build tool", "https://github.com/bazelbuild/bazel", master, yes,
cmake, "build tool", "https://github.com/Kitware/CMake", master, yes, cmake, "build tool", "https://github.com/Kitware/CMake", master, yes,
cmatrix, "fun tool", "https://github.com/abishekvashok/cmatrix", master, yes, cmatrix, "fun tool", "https://github.com/abishekvashok/cmatrix", master, yes,

1 FOLDERNAME CATEGORY URL BRANCH SHALLOW
2 base256 base256U dev tool git@github.com:fleschutz/base256.git git@github.com:fleschutz/base256U.git main yes
3 bazel build tool https://github.com/bazelbuild/bazel master yes
4 cmake build tool https://github.com/Kitware/CMake master yes
5 cmatrix fun tool https://github.com/abishekvashok/cmatrix master yes

View File

@ -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,William James,"The good we do today becomes the happiness of tomorrow.",
Various,Rene Descartes,"Conquer yourself rather than the world.", 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,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.

View File

@ -24,15 +24,17 @@
<details><summary>How to install PowerShell on Linux?</summary> <details><summary>How to install PowerShell on Linux?</summary>
1. **Execute on Linux with Snap support:** 1. **Your Linux supports Snap packages? Then execute:**
``` ```
$ snap install PowerShell $ sudo snap install PowerShell
$ ln -s /snap/bin/pwsh /usr/bin/pwsh $ sudo ln -s /snap/bin/pwsh /usr/bin/pwsh
``` ```
2. **Otherwise, 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 configure PowerShell as your default shell?** 3. **Want to set PowerShell as your default shell?**
* Check that the file **/etc/shells** contains the **/usr/bin/pwsh** line, otherwise add it. * 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). * Now execute: `chsh -s /usr/bin/pwsh <USERNAME>` (replace &lt;USERNAME&gt; by your user name).
4. **SSH login is too verbose?**
* Just execute: `echo > ~/.hushlogin`
</details> </details>
<details><summary>How to install PowerShell on MacOS?</summary> <details><summary>How to install PowerShell on MacOS?</summary>
@ -49,7 +51,7 @@
**NOTE:** the group policy object (GPO) settings of your organization might disallow changes. In that case contact your system administrator for help. **NOTE:** the group policy object (GPO) settings of your organization might disallow changes. In that case contact your system administrator for help.
</details> </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 2. **Otherwise, download and unzip it from:** https://github.com/fleschutz/PowerShell/archive/master.zip
@ -80,25 +82,25 @@
<details><summary>How to execute PowerShell scripts in Jenkins?</summary> <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.** 2. **Add or reference your PowerShell scripts in the Jenkins jobs or in your Jenkinsfiles.**
</details> </details>
<details><summary>What about PowerShell security?</summary> <details><summary>What about PowerShell security?</summary>
1. **Do NOT execute scripts from untrusted sources!** 1. **DO NOT execute scripts from untrusted sources! (rule applies to any executable)**
2. **Check the script content for strange things (that's impossible for executables).** 2. **CHECK the script content for strange things prior execution.**
3. **Prefer SSH Remoting instead of PowerShell Remoting** 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 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>
<details><summary>How to get the best PowerShell experience?</summary> <details><summary>How to get the ultimate PowerShell experience?</summary>
1. **Install *PowerShell* on all your Linux/Mac OS/Windows machines and configure it as default shell.** 1. **Install *PowerShell* (free) on all your Linux/Mac OS/Windows machines and configure it as your default shell.**
2. **For remote control install *SSH client & server* on all your Linux/Mac OS/Windows machines.** 2. **Install an *SSH client & server* (free) on all your Linux/Mac OS/Windows machines for remote control via SSH.**
3. **Install the free *Windows Terminal* on Windows with 50% transparency, font 'Fira Code' and no PowerShell banner message.** 3. **Install *Windows Terminal* (free) on Windows with 50% transparency, font 'Fira Code' and no PowerShell banner message.**
4. **To edit PowerShell scripts install the free *Visual Studio Code* with plugin 'PowerShell'.** 4. **Install *Visual Studio Code* (free) with plugin 'PowerShell' to edit PowerShell scripts.**
5. **Install the *Mega Collection of PowerShell scripts* and set the PATH environment variable to it.** 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'** 6. **Use an own PowerShell profile, e.g. execute: './update-powershell-profile.ps1'**
</details> </details>

View File

@ -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. This PowerShell script adds firewall rules for the given executable. Administrator rights are required.
Parameters Parameters
---------- ----------
```powershell ```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> -PathToExecutables <String>
Specifies the path to the executables. 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *alert.ps1* The *alert.ps1* Script
======================== ===========================
This PowerShell script handles and escalates the given alert message. This PowerShell script handles and escalates the given alert message.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./alert.ps1 [[-Message] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/alert.ps1 [[-Message] <String>] [<CommonParameters>]
-Message <String> -Message <String>
Specifies the alert message Specifies the alert message
@ -71,4 +71,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of alert.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script builds a Git repository by supporting build systems such as: autogen, cmake, configure, Gradle, Imakefile, Makefile, and Meson.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./build-repo.ps1 [[-path] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/build-repo.ps1 [[-path] <String>] [<CommonParameters>]
-path <String> -path <String>
Specifies the path to the Git repository (default is current working directory) Specifies the path to the Git repository (default is current working directory)
@ -28,7 +28,7 @@ Example
PS> ./build-repo.ps1 C:\Repos\ninja PS> ./build-repo.ps1 C:\Repos\ninja
Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results... 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 PS> ./build-repo.ps1 C:\Repos\ninja
⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results... ⏳ Building 📂ninja using CMakeLists.txt into 📂ninja/_Build_Results...
... ...
✔️ Built 📂ninja repository in 47 sec. Built 📂ninja repository in 47 sec.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -188,7 +188,7 @@ try {
$repoDirName = (Get-Item "$path").Name $repoDirName = (Get-Item "$path").Name
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Built 📂$repoDirName repository in $elapsed sec." " Built 📂$repoDirName repository in $elapsed sec."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *build-repos.ps1* The *build-repos.ps1* Script
======================== ===========================
This PowerShell script builds all Git repositories in a folder. This PowerShell script builds all Git repositories in a folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/build-repos.ps1 [[-ParentDir] <String>] [<CommonParameters>]
-ParentDir <String> -ParentDir <String>
Specifies the path to the parent folder Specifies the path to the parent folder
@ -74,7 +74,7 @@ try {
} }
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds [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 exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's autostart folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-autostart.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-autostart.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,12 +47,12 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "$HOME/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup" $path = Resolve-Path "~/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) {
throw "Autostart folder at 📂$Path doesn't exist (yet)" throw "Autostart folder at 📂$path doesn't exist (yet)"
} }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. 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 Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-crashdumps.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-crashdumps.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's desktop folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-desktop.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-desktop.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,20 +48,20 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "~/Desktop" $path = Resolve-Path "~/Desktop"
} else { } else {
$Path = [Environment]::GetFolderPath('DesktopDirectory') $path = [Environment]::GetFolderPath('DesktopDirectory')
} }
if (Test-Path "$Path" -pathType container) { if (Test-Path "$path" -pathType container) {
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success 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 { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-desktop.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-docs.ps1* The *cd-docs.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the documents folder. This PowerShell script changes the working directory to the documents folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-docs.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-docs.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,15 +48,15 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "$HOME/Documents" $path = Resolve-Path "~/Documents"
} else { } else {
$Path = [Environment]::GetFolderPath('MyDocuments') $path = [Environment]::GetFolderPath('MyDocuments')
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) {
throw "Documents folder at 📂$Path doesn't exist (yet)" throw "Documents folder at 📂$path doesn't exist (yet)"
} }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's downloads folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-downloads.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-downloads.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,20 +48,20 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "~/Downloads" $path = Resolve-Path "~/Downloads"
} else { } 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) { if (Test-Path "$path" -pathType container) {
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success 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 { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-downloads.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's Dropbox folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-dropbox.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-dropbox.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,17 +47,15 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "$HOME/Dropbox" $path = Resolve-Path "~/Dropbox"
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) { throw "No Dropbox folder at 📂$path - is Dropbox installed?" }
throw "Dropbox folder at 📂$Path doesn't exist (yet)" Set-Location "$path"
} "📂$path"
Set-Location "$Path"
"📂$Path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error: $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-dropbox.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-etc.ps1* The *cd-etc.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the /etc directory. This PowerShell script changes the working directory to the /etc directory.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-etc.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-etc.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,15 +48,15 @@ Script Content
try { try {
if ($IsLinx) { if ($IsLinx) {
$Path = "/etc" $path = "/etc"
} else { } else {
$Path = Resolve-Path "$env:WINDIR\System32\drivers\etc" $path = Resolve-Path "$env:WINDIR\System32\drivers\etc"
} }
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) {
throw "/etc directory at 📂$Path doesn't exist (yet)" throw "/etc directory at 📂$path doesn't exist (yet)"
} }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-fonts.ps1* The *cd-fonts.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the fonts folder. This PowerShell script changes the working directory to the fonts folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-fonts.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-fonts.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,12 +47,12 @@ Script Content
#> #>
try { try {
$Path = [Environment]::GetFolderPath('Fonts') $path = [Environment]::GetFolderPath('Fonts')
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) {
throw "Fonts folder at 📂$Path doesn't exist (yet)" throw "Fonts folder at 📂$path doesn't exist (yet)"
} }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's home directory.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-home.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-home.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -16,7 +16,7 @@ PS> ./cd-home.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./cd-home PS> ./cd-home.ps1
📂C:\Users\Markus 📂C:\Users\Markus
``` ```
@ -38,7 +38,7 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script changes the working directory to the user's home directory. This PowerShell script changes the working directory to the user's home directory.
.EXAMPLE .EXAMPLE
PS> ./cd-home PS> ./cd-home.ps1
📂C:\Users\Markus 📂C:\Users\Markus
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -47,17 +47,15 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path -Path "~" $path = Resolve-Path "~"
if (Test-Path "$Path" -pathType container) { if (-not(Test-Path "$path" -pathType container)) { throw "Home folder at $path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
}
throw "User's home folder at 📂$Path doesn't exist (yet)"
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-home.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

66
docs/cd-jenkins.md Normal file
View 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)*

View File

@ -1,5 +1,5 @@
Script: *cd-logs.ps1* The *cd-logs.ps1* Script
======================== ===========================
cd-logs.ps1 cd-logs.ps1
@ -38,9 +38,9 @@ function GetLogsDir {
} }
try { try {
$Path = GetLogsDir $path = GetLogsDir
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's music folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-music.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-music.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,20 +48,20 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "~/Music" $path = Resolve-Path "~/Music"
} else { } else {
$Path = [Environment]::GetFolderPath('MyMusic') $path = [Environment]::GetFolderPath('MyMusic')
} }
if (Test-Path "$Path" -pathType container) { if (Test-Path "$path" -pathType container) {
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success 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 { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-music.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

61
docs/cd-nextcloud.md Normal file
View 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)*

View File

@ -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. This PowerShell script changes the working directory to the user's OneDrive folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-onedrive.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-onedrive.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,17 +47,15 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "$HOME/OneDrive" $path = Resolve-Path "~/OneDrive"
if (-not(Test-Path "$Path" -pathType container)) { if (-not(Test-Path "$path" -pathType container)) { throw "No OneDrive folder at 📂$path - is OneDrive installed?" }
throw "OneDrive folder at 📂$Path doesn't exist (yet)" Set-Location "$path"
} "📂$path"
Set-Location "$Path"
"📂$Path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error: $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-onedrive.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's pictures folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-pics.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-pics.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,13 +48,13 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "$HOME/Pictures" $path = Resolve-Path "~/Pictures"
} else { } 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)" } if (-not(Test-Path "$path" -pathType container)) { throw "Pictures folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-public.ps1* The *cd-public.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the Public folder. This PowerShell script changes the working directory to the Public folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-public.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-public.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,13 +48,13 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "~/Public" $path = Resolve-Path "~/Public"
} else { } 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)" } if (-not(Test-Path "$path" -pathType container)) { throw "Public folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-recent.ps1* The *cd-recent.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the 'recent' folder. This PowerShell script changes the working directory to the 'recent' folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-recent.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-recent.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-recent.ps1 as of 08/15/2024 09:50:44)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *cd-recycle-bin.ps1* The *cd-recycle-bin.ps1* Script
======================== ===========================
cd-recycle-bin.ps1 cd-recycle-bin.ps1
@ -39,7 +39,7 @@ function GetCurrentUserSID { [CmdletBinding()] param()
try { try {
if ($IsLinux) { if ($IsLinux) {
$path = "$HOME/.local/share/Trash/" $path = "~/.local/share/Trash/"
} else { } else {
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)" $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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,15 +1,15 @@
Script: *cd-repo.ps1* The *cd-repo.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to a local Git repository. This PowerShell script changes the working directory to the given local Git repository.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/cd-repo.ps1 [[-folderName] <String>] [<CommonParameters>]
-folderName <String> -folderName <String>
Specifies the Git repository's folder name Specifies the folder name of the Git repository
Required? false Required? false
Position? 1 Position? 1
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-repo.ps1 rust PS> ./cd-repo.ps1 rust
📂C:\Repos\rust - current branch is: ## main ... origin/main 📂C:\Repos\rust · on branch: ## main ... origin/main
``` ```
@ -43,14 +43,14 @@ Script Content
```powershell ```powershell
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to a repository Sets the working directory to a repo
.DESCRIPTION .DESCRIPTION
This PowerShell script changes the working directory to a local Git repository. This PowerShell script changes the working directory to the given local Git repository.
.PARAMETER folderName .PARAMETER folderName
Specifies the Git repository's folder name Specifies the folder name of the Git repository
.EXAMPLE .EXAMPLE
PS> ./cd-repo.ps1 rust PS> ./cd-repo.ps1 rust
📂C:\Repos\rust - current branch is: ## main ... origin/main 📂C:\Repos\rust · on branch: ## main ... origin/main
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -62,25 +62,33 @@ param([string]$folderName = "")
try { try {
if ("$folderName" -eq "") { $folderName = Read-Host "Enter the Git repository's 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 if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
$path = "$HOME/Repos/" $path = "~/Repos"
} elseif (Test-Path "$HOME/repos/" -pathType Container) { } elseif (Test-Path "~/repos" -pathType Container) {
$path = "$HOME/repos/" $path = "~/repos"
} elseif (Test-Path "$HOME/Repositories/" -pathType Container) { # try long name } elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
$path = "$HOME/Repositories/" $path = "~/Repositories"
} elseif (Test-Path "$HOME/source/repos/" -pathType Container) { # try Visual Studio default } elseif (Test-Path "~/repositories" -pathType Container) {
$path = "$HOME/source/repos/" $path = "~/repositories"
} elseif (Test-Path "/Repos/" -pathType Container) { } elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
$path = "/Repos/" $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 { } 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" $path = Resolve-Path "$path"
Set-Location "$path" Set-Location "$path"
Write-Host "📂$path - current branch is: " -noNewline Write-Host "📂$path · on branch: " -noNewline
& git status --short --branch --show-stash & git status --short --branch --show-stash
exit 0 # success exit 0 # success
} catch { } catch {
@ -89,4 +97,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repo.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-repos.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-repos.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./cd-repos.ps1 PS> ./cd-repos.ps1
📂C:\Users\Markus\Repos 📂C:\Repos
``` ```
@ -34,14 +34,14 @@ Script Content
```powershell ```powershell
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's repos folder Sets the working directory to the Git repos folder
.DESCRIPTION .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 .PARAMETER subpath
Specifies an additional relative subpath (optional) Specifies an additional relative subpath (optional)
.EXAMPLE .EXAMPLE
PS> ./cd-repos.ps1 PS> ./cd-repos.ps1
📂C:\Users\Markus\Repos 📂C:\Repos
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -49,21 +49,28 @@ Script Content
#> #>
try { try {
if (Test-Path "$HOME/Repos/" -pathType Container) { # try short name if (Test-Path "~/Repos" -pathType Container) { # try short name in home dir
$path = "$HOME/Repos/" $path = "~/Repos"
} elseif (Test-Path "$HOME/repos/" -pathType Container) { } elseif (Test-Path "~/repos" -pathType Container) {
$path = "$HOME/repos/" $path = "~/repos"
} elseif (Test-Path "$HOME/Repositories/" -pathType Container) { # try long name } elseif (Test-Path "~/Repositories" -pathType Container) { # try long name
$path = "$HOME/Repositories/" $path = "~/Repositories"
} elseif (Test-Path "$HOME/source/repos/" -pathType Container) { # try Visual Studio default } elseif (Test-Path "~/repositories" -pathType Container) {
$path = "$HOME/source/repos/" $path = "~/repositories"
} elseif (Test-Path "/Repos/" -pathType Container) { } elseif (Test-Path "/Repos" -pathType Container) { # try short name in root dir
$path = "/Repos/" $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 { } 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" Set-Location "$path"
"📂$path" "📂$path"
exit 0 # success exit 0 # success
@ -73,4 +80,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-repos.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script changes the current working directory to the root directory (C:\ on Windows).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-root.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-root.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,9 +47,9 @@ Script Content
#> #>
try { try {
if ($IsLinux) { $Path = "/" } else { $Path = "C:\" } if ($IsLinux) { $path = "/" } else { $path = "C:\" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *cd-screenshots.ps1* The *cd-screenshots.ps1* Script
======================== ===========================
cd-screenshots.ps1 cd-screenshots.ps1
@ -33,21 +33,21 @@ Script Content
function GetScreenshotsFolder { function GetScreenshotsFolder {
if ($IsLinux) { if ($IsLinux) {
$Path = "$HOME/Pictures" $path = "~/Pictures"
if (-not(Test-Path "$Path" -pathType container)) { throw "Pictures folder at $Path doesn't exist (yet)" } 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" } if (Test-Path "$path/Screenshots" -pathType container) { $path = "$path/Screenshots" }
} else { } 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)" } 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" } if (Test-Path "$path\Screenshots" -pathType container) { $path = "$path\Screenshots" }
} }
return $Path return $path
} }
try { try {
$Path = GetScreenshotsFolder $path = GetScreenshotsFolder
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the PowerShell scripts folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-scripts.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-scripts.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -16,8 +16,8 @@ PS> ./cd-scripts.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./cd-scripts PS> ./cd-scripts.ps1
📂C:\Users\Markus\Repos\PowerShell\scripts 📂C:\Repos\PowerShell\scripts
``` ```
@ -38,8 +38,8 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script changes the working directory to the PowerShell scripts folder. This PowerShell script changes the working directory to the PowerShell scripts folder.
.EXAMPLE .EXAMPLE
PS> ./cd-scripts PS> ./cd-scripts.ps1
📂C:\Users\Markus\Repos\PowerShell\scripts 📂C:\Repos\PowerShell\scripts
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -58,4 +58,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-scripts.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-ssh.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-ssh.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -16,7 +16,7 @@ PS> ./cd-ssh.ps1 [<CommonParameters>]
Example Example
------- -------
```powershell ```powershell
PS> ./cd-ssh PS> ./cd-ssh.ps1
📂C:\Users\Markus\.ssh 📂C:\Users\Markus\.ssh
``` ```
@ -34,11 +34,11 @@ Script Content
```powershell ```powershell
<# <#
.SYNOPSIS .SYNOPSIS
Sets the working directory to the user's SSH folder Sets the working directory to the SSH folder
.DESCRIPTION .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 .EXAMPLE
PS> ./cd-ssh PS> ./cd-ssh.ps1
📂C:\Users\Markus\.ssh 📂C:\Users\Markus\.ssh
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -47,15 +47,16 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "~/.ssh" $path = "~/.ssh"
if (-not(Test-Path "$Path" -pathType container)) { throw "User's SSH folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Your secure shell (SSH) folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" $path = Resolve-Path "$path"
Set-Location "$path"
"📂$Path" "📂$Path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ Error: $($Error[0])"
exit 1 exit 1
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of cd-ssh.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *cd-temp.ps1* The *cd-temp.ps1* Script
======================== ===========================
cd-temp.ps1 cd-temp.ps1
@ -39,10 +39,10 @@ function GetTempDir {
} }
try { try {
$Path = GetTempDir $path = GetTempDir
if (-not(Test-Path "$Path" -pathType container)) { throw "Temporary folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Temporary folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-templates.ps1* The *cd-templates.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the templates folder. This PowerShell script changes the working directory to the templates folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-templates.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-templates.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,13 +48,13 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "~/Templates" $path = Resolve-Path "~/Templates"
} else { } 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)" } if (-not(Test-Path "$path" -pathType container)) { throw "Templates folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *cd-trash.ps1* The *cd-trash.ps1* Script
======================== ===========================
cd-trash.ps1 cd-trash.ps1
@ -39,7 +39,7 @@ function GetCurrentUserSID { [CmdletBinding()] param()
try { try {
if ($IsLinux) { if ($IsLinux) {
$path = "$HOME/.local/share/Trash/" $path = "~/.local/share/Trash/"
} else { } else {
$path = "C:\`$Recycle.Bin\$(GetCurrentUserSID)" $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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to one directory level up.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-up.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-up.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path ".." $path = Resolve-Path ".."
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to two directory level up.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-up2.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-up2.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "../.." $path = Resolve-Path "../.."
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to three directory levels up.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-up3.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-up3.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "../../.." $path = Resolve-Path "../../.."
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to four directory levels up.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-up4.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-up4.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "../../../.." $path = Resolve-Path "../../../.."
if (-not(Test-Path "$Path" -pathType container)) { throw "Folder at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-users.ps1* The *cd-users.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the users directory. This PowerShell script changes the working directory to the users directory.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-users.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-users.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "$HOME/.." $path = Resolve-Path "~/.."
if (-not(Test-Path "$Path" -pathType container)) { throw "Users directory at 📂$Path doesn't exist (yet)" } if (-not(Test-Path "$path" -pathType container)) { throw "Users directory at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script changes the working directory to the user's videos folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-videos.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-videos.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -48,13 +48,13 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
$Path = Resolve-Path "$HOME/Videos" $path = Resolve-Path "~/Videos"
} else { } 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)" } if (-not(Test-Path "$path" -pathType container)) { throw "Videos folder at 📂$path doesn't exist (yet)" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *cd-windows.ps1* The *cd-windows.ps1* Script
======================== ===========================
This PowerShell script changes the working directory to the Windows directory. This PowerShell script changes the working directory to the Windows directory.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./cd-windows.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/cd-windows.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -47,10 +47,10 @@ Script Content
#> #>
try { try {
$Path = Resolve-Path "$env:WINDIR" $path = Resolve-Path "$env:WINDIR"
if (-not(Test-Path "$Path" -pathType container)) { throw "Windows directory at 📂$Path doesn't exist" } if (-not(Test-Path "$path" -pathType container)) { throw "Windows directory at 📂$path doesn't exist" }
Set-Location "$Path" Set-Location "$path"
"📂$Path" "📂$path"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script downloads a random photo from Unsplash and sets it as desktop background.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/change-wallpaper.ps1 [[-Category] <String>] [<CommonParameters>]
-Category <String> -Category <String>
Specifies the photo category (beach, city, ...) 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *check-admin.ps1* The *check-admin.ps1* Script
======================== ===========================
This PowerShell script checks if the user has administrator rights. This PowerShell script checks if the user has administrator rights.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-admin.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-admin.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -67,4 +67,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-admin.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-apps.ps1* The *check-apps.ps1* Script
======================== ===========================
check-apps.ps1 check-apps.ps1
@ -24,50 +24,47 @@ Script Content
This PowerShell script queries the installed applications and prints it. This PowerShell script queries the installed applications and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-apps.ps1 PS> ./check-apps.ps1
✅ 119 Windows apps installed, 11 upgrades available ⚠️ 150 Win apps installed, 72 upgrades available, 5 crash dump(s) found
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
function GetCrashDumps { function CountCrashDumps {
[string]$path = Resolve-Path -Path "~\AppData\Local\CrashDumps" [string]$path = Resolve-Path -Path "~\AppData\Local\CrashDumps"
$count = 0
$files = (Get-ChildItem -path "$path\*.dmp" -attributes !Directory) $files = (Get-ChildItem -path "$path\*.dmp" -attributes !Directory)
foreach($file in $files) { $count++ } return $files.Count
return $count
} }
try { try {
$statusIcon = "✅" $status = "✅"
$statusMsg = ""
if ($IsLinux) { if ($IsLinux) {
Write-Progress "Querying installed applications..." Write-Progress "Querying installed applications..."
$numPkgs = (apt list --installed 2>/dev/null).Count $numPkgs = (apt list --installed 2>/dev/null).Count
$numSnaps = (snap list).Count - 1 $numSnaps = (snap list).Count - 1
Write-Progress -completed "Done." Write-Progress -completed "Done."
$statusMsg += "$numPkgs Debian packages, $numSnaps snaps installed" $reply = "$numPkgs Debian packages, $numSnaps snaps installed"
} else { } else {
Write-Progress "Querying installed apps..." Write-Progress "Querying installed apps..."
$Apps = Get-AppxPackage $apps = Get-AppxPackage
Write-Progress -completed "Done." Write-Progress -completed "Done."
$statusMsg = "$($Apps.Count) Win apps installed" $reply = "$($apps.Count) Win apps installed"
[int]$numNonOk = 0 [int]$numNonOk = 0
foreach($App in $Apps) { if ($App.Status -ne "Ok") { $numNonOk++ } } foreach($app in $apps) { if ($app.Status -ne "Ok") { $numNonOk++ } }
if ($numNonOk -gt 0) { $statusIcon = "⚠️"; $statusMsg += ", $numNonOk non-ok" } if ($numNonOk -gt 0) { $status = "⚠️"; $reply += ", $numNonOk non-ok" }
[int]$numErrors = (Get-AppxLastError) [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 $numUpdates = (winget upgrade --include-unknown).Count - 5
$statusMsg += ", $numUpdates upgrades available" $reply += ", $numUpdates upgrades available"
$crashDumps = GetCrashDumps $numCrashDumps = CountCrashDumps
if ($crashDumps -ne 0) { $statusIcon = "⚠️"; $statusMsg += " - found $crashDumps crash dump(s)" } if ($numCrashDumps -ne 0) { $status = "⚠️"; $reply += ", $numCrashDumps crash dump(s) found" }
} }
Write-Host "$statusIcon $statusMsg" Write-Host "$status $reply"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *check-bios.ps1* The *check-bios.ps1* Script
======================== ===========================
This PowerShell script queries the BIOS status and prints it. This PowerShell script queries the BIOS status and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-bios.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-bios.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-bios.ps1 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. This PowerShell script queries the BIOS status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-bios.ps1 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 .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,27 +48,26 @@ Script Content
try { try {
if ($IsLinux) { if ($IsLinux) {
Write-Progress "Querying BIOS details..."
$model = (sudo dmidecode -s system-product-name) $model = (sudo dmidecode -s system-product-name)
if ("$model" -ne "") { if ("$model" -eq "") { exit 0 } # no information
$version = (sudo dmidecode -s bios-version) Write-Progress "Querying BIOS details..."
$releaseDate = (sudo dmidecode -s bios-release-date) $version = (sudo dmidecode -s bios-version)
$manufacturer = (sudo dmidecode -s system-manufacturer) $releaseDate = (sudo dmidecode -s bios-release-date)
Write-Host "✅ BIOS model $model by $manufacturer (version $version of $releaseDate)" $manufacturer = (sudo dmidecode -s system-manufacturer)
} Write-Progress -completed "Done."
Write-Progress -completed "."
} else { } else {
$BIOS = Get-CimInstance -ClassName Win32_BIOS $details = Get-CimInstance -ClassName Win32_BIOS
$model = $BIOS.Name.Trim() $model = $details.Name.Trim()
$version = $BIOS.Version.Trim() $version = $details.Version.Trim()
$serialNumber = $BIOS.SerialNumber.Trim() $serial = $details.SerialNumber.Trim()
$manufacturer = $BIOS.Manufacturer.Trim() $manufacturer = $details.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)"
}
} }
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 exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-cpu.ps1* The *check-cpu.ps1* Script
======================== ===========================
check-cpu.ps1 check-cpu.ps1
@ -74,26 +74,29 @@ try {
$details = Get-WmiObject -Class Win32_Processor $details = Get-WmiObject -Class Win32_Processor
$cpuName = $details.Name.trim() $cpuName = $details.Name.trim()
$arch = "$arch, " $arch = "$arch, "
$deviceID = "$($details.DeviceID), " $deviceID = ", $($details.DeviceID)"
$speed = "$($details.MaxClockSpeed)MHz, " $speed = ", $($details.MaxClockSpeed)MHz"
$socket = "$($details.SocketDesignation) socket" $socket = ", $($details.SocketDesignation) socket"
} }
$cores = [System.Environment]::ProcessorCount $cores = [System.Environment]::ProcessorCount
$celsius = GetCPUTemperature $celsius = GetCPUTemperature
if ($celsius -eq 99999.9) { if ($celsius -eq 99999.9) {
$temp = "no temp" $temp = ""
} elseif ($celsius -gt 80) {
$temp = ", $($celsius)°C TOO HOT"
$status = "⚠️"
} elseif ($celsius -gt 50) { } elseif ($celsius -gt 50) {
$temp = "$($celsius)°C HOT" $temp = ", $($celsius)°C HOT"
$status = "⚠️" $status = "⚠️"
} elseif ($celsius -lt 0) { } elseif ($celsius -lt 0) {
$temp = "$($celsius)°C COLD" $temp = ", $($celsius)°C TOO COLD"
$status = "⚠️" $status = "⚠️"
} else { } else {
$temp = "$($celsius)°C OK" $temp = ", $($celsius)°C"
} }
Write-Progress -completed "Done." 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 exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script asks for credentials and checks them against saved ones ("$HOME\my.credentials" by default).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-credentials.ps1 [[-TargetFile] <String>] [<CommonParameters>]
-TargetFile <String> -TargetFile <String>
Specifies the target file ("$HOME\my.credentials" by default) Specifies the target file ("$HOME\my.credentials" by default)
@ -27,7 +27,7 @@ Example
```powershell ```powershell
PS> ./check-credentials.ps1 PS> ./check-credentials.ps1
Enter username and password, please. Enter username and password, please.
Your credentials are correct. Your credentials are correct.
``` ```
@ -52,7 +52,7 @@ Script Content
.EXAMPLE .EXAMPLE
PS> ./check-credentials.ps1 PS> ./check-credentials.ps1
Enter username and password, please. Enter username and password, please.
✔️ Your credentials are correct. Your credentials are correct.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -74,7 +74,7 @@ try {
$pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password)) $pw2 = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($credsFromFile.Password))
if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." } if ($pw1 -cne $pw2) { throw "Sorry, your password is wrong." }
"✔️ Your credentials are correct." " Your credentials are correct."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script determines and speaks the current day by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-day.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-day.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-day 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). This PowerShell script determines and speaks the current day by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-day PS> ./check-day
✔️ It's Sunday. It's Sunday.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -57,4 +57,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-day.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 Parameters
---------- ----------
```powershell ```powershell
PS> ./check-dns.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-dns.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-dns.ps1 PS> ./check-dns.ps1
DNS resolves 56.5 domains per second Internet DNS: 33.6ms lookup time
``` ```
@ -36,10 +36,10 @@ Script Content
.SYNOPSIS .SYNOPSIS
Check the DNS resolution Check the DNS resolution
.DESCRIPTION .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 .EXAMPLE
PS> ./check-dns.ps1 PS> ./check-dns.ps1
DNS resolves 56.5 domains per second Internet DNS: 33.6ms lookup time
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -47,24 +47,23 @@ Script Content
#> #>
try { try {
#Write-Progress "Measuring DNS resolution..."
$table = Import-CSV "$PSScriptRoot/../data/popular-domains.csv" $table = Import-CSV "$PSScriptRoot/../data/popular-domains.csv"
$numRows = $table.Length
$stopWatch = [system.diagnostics.stopwatch]::startNew() $stopWatch = [system.diagnostics.stopwatch]::startNew()
if ($IsLinux) { if ($IsLinux) {
foreach($row in $table){$nop=dig $row.Domain +short} foreach($row in $table){$nop=dig $row.Domain +short}
} else { } else {
Clear-DnsClientCache
foreach($row in $table){$nop=Resolve-DNSName $row.Domain} foreach($row in $table){$nop=Resolve-DNSName $row.Domain}
} }
[float]$elapsed = $stopWatch.Elapsed.TotalSeconds [float]$elapsed = $stopWatch.Elapsed.TotalSeconds * 1000.0
$speed = [math]::round($elapsed / $table.Length, 1)
#Write-Progress -completed "Measuring DNS resolution..." if ($speed -lt 10.0) {
$average = [math]::round($numRows / $elapsed, 1) Write-Output "✅ Internet DNS: $($speed)ms excellent lookup time"
if ($average -lt 10.0) { } elseif ($speed -lt 100.0) {
Write-Host "⚠️ DNS resolves $average domains per second only" Write-Output "✅ Internet DNS: $($speed)ms lookup time"
} else { } else {
Write-Host "✅ DNS resolves $average domains per second" Write-Output "⚠️ Internet DNS: $($speed)ms slow lookup time"
} }
exit 0 # success exit 0 # success
} catch { } catch {
@ -73,4 +72,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-dns.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script checks the given drive for free space left (10 GB by default).
Parameters Parameters
---------- ----------
```powershell ```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> -driveName <String>
Specifies the drive name to check (e.g. "C") Specifies the drive name to check (e.g. "C")
@ -110,4 +110,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-drive-space.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script queries the free space of all drives and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>] /Repos/PowerShell/scripts/check-drives.ps1 [[-minLevel] <Int64>] [<CommonParameters>]
-minLevel <Int64> -minLevel <Int64>
Specifies the minimum warning level (10GB by default) Specifies the minimum warning level (5GB by default)
Required? false Required? false
Position? 1 Position? 1
Default value 10 Default value 5368709120
Accept pipeline input? false Accept pipeline input? false
Accept wildcard characters? false Accept wildcard characters? false
@ -26,8 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-drives.ps1 PS> ./check-drives.ps1
Drive C: uses 49% of 1TB - 512GB free Drive C: uses 489GB (53%) of 930GB, D: uses 3TB (87%) of 4TB, E: is empty
Drive D: uses 84% of 4TB - 641GB free
``` ```
@ -48,51 +47,54 @@ Script Content
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the free space of all drives and prints it. This PowerShell script queries the free space of all drives and prints it.
.PARAMETER minLevel .PARAMETER minLevel
Specifies the minimum warning level (10GB by default) Specifies the minimum warning level (5GB by default)
.EXAMPLE .EXAMPLE
PS> ./check-drives.ps1 PS> ./check-drives.ps1
✅ Drive C: uses 49% of 1TB - 512GB free ✅ Drive C: uses 489GB (53%) of 930GB, D: uses 3TB (87%) of 4TB, E: is empty
✅ Drive D: uses 84% of 4TB - 641GB free
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
param([int64]$minLevel = 10) # 10 GB minimum param([int64]$minLevel = 5GB)
function Bytes2String { param([int64]$number) function Bytes2String { param([int64]$bytes)
if ($number -lt 1KB) { return "$number bytes" } if ($bytes -lt 1KB) { return "$bytes bytes" }
if ($number -lt 1MB) { return '{0:N0}KB' -f ($number / 1KB) } if ($bytes -lt 1MB) { return '{0:N0}KB' -f ($bytes / 1KB) }
if ($number -lt 1GB) { return '{0:N0}MB' -f ($number / 1MB) } if ($bytes -lt 1GB) { return '{0:N0}MB' -f ($bytes / 1MB) }
if ($number -lt 1TB) { return '{0:N0}GB' -f ($number / 1GB) } if ($bytes -lt 1TB) { return '{0:N0}GB' -f ($bytes / 1GB) }
if ($number -lt 1PB) { return '{0:N0}TB' -f ($number / 1TB) } if ($bytes -lt 1PB) { return '{0:N0}TB' -f ($bytes / 1TB) }
return '{0:N0}GB' -f ($number / 1PB) return '{0:N0}GB' -f ($bytes / 1PB)
} }
try { try {
Write-Progress "Querying drives..." Write-Progress "Querying drives..."
$drives = Get-PSDrive -PSProvider FileSystem $drives = Get-PSDrive -PSProvider FileSystem
$minLevel *= 1GB Write-Progress -completed "Done."
Write-Progress -completed " " $status = ""
$reply = "Drive "
foreach($drive in $drives) { foreach($drive in $drives) {
$details = (Get-PSDrive $drive.Name) $details = (Get-PSDrive $drive.Name)
if ($IsLinux) { $name = $drive.Name } else { $name = $drive.Name + ":" } if ($IsLinux) { $name = $drive.Name } else { $name = $drive.Name + ":" }
[int64]$free = $details.Free [int64]$free = $details.Free
[int64]$used = $details.Used [int64]$used = $details.Used
[int64]$total = ($used + $free) [int64]$total = ($used + $free)
if ($reply -ne "Drive ") { $reply += ", " }
if ($total -eq 0) { if ($total -eq 0) {
Write-Host "✅ Drive $name is empty" $reply += "$name is empty"
} elseif ($free -eq 0) { } 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) { } 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 { } else {
[int64]$percent = ($used * 100) / $total [int64]$percent = ($used * 100) / $total
Write-Host "✅ Drive $name uses $percent% of $(Bytes2String $total) - $(Bytes2String $free) free" $reply += "$name uses $(Bytes2String $used) ($percent%) of $(Bytes2String $total)"
} }
} }
Write-Host "$status $reply"
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-dusk.ps1* The *check-dusk.ps1* Script
======================== ===========================
check-dusk.ps1 check-dusk.ps1
@ -63,4 +63,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-dusk.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script checks the time until Easter Sunday and replies by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-easter-sunday.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-easter-sunday.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script checks the file system of a drive. It needs admin rights.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-file-system.ps1 [[-Drive] <String>] [<CommonParameters>]
-Drive <String> -Drive <String>
Specifies the drive to check Specifies the drive to check
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-file-system C 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 Specifies the drive to check
.EXAMPLE .EXAMPLE
PS> ./check-file-system C PS> ./check-file-system C
✔️ file system on drive C is clean file system on drive C is clean
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -75,4 +75,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-file-system.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script determines and prints the file type of the given file.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-file.ps1 [[-Path] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-file.ps1 [[-Path] <String>] [<CommonParameters>]
-Path <String> -Path <String>
Specifies the path to the file Specifies the path to the file
@ -170,4 +170,4 @@ function Check-Header { param( $path )
Check-Header $Path Check-Header $Path
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-file.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script queries the status of the firewall and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-firewall.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-firewall.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-gpu.ps1* The *check-gpu.ps1* Script
======================== ===========================
check-gpu.ps1 check-gpu.ps1
@ -65,4 +65,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-gpu.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script queries the hardware details of the local computer and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-hardware.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-hardware.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -18,7 +18,7 @@ Example
```powershell ```powershell
PS> ./check-hardware.ps1 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) Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
... ...
@ -43,7 +43,7 @@ Script Content
.EXAMPLE .EXAMPLE
PS> ./check-hardware.ps1 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) ✅ Intel(R) Core(TM) i5-6400 CPU @ 2.70GHz (CPU0, 2701MHz, socket U3E1, 30.1°C)
... ...
.LINK .LINK
@ -52,10 +52,11 @@ Script Content
Author: Markus Fleschutz | License: CC0 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-cpu.ps1"
& "$PSScriptRoot/check-ram.ps1" & "$PSScriptRoot/check-ram.ps1"
& "$PSScriptRoot/check-gpu.ps1" & "$PSScriptRoot/check-gpu.ps1"
& "$PSScriptRoot/check-motherboard.ps1"
& "$PSScriptRoot/check-bios.ps1" & "$PSScriptRoot/check-bios.ps1"
& "$PSScriptRoot/check-smart-devices.ps1" & "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-power.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 exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-hardware.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script queries the system health of the local computer (hardware, software, and network) and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-health.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-health.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -58,4 +58,4 @@ Script Content
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-health.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script checks the time until Indepence Day and replies by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-independence-day.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-independence-day.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script checks the given IPv4 address for validity.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-ipv4-address.ps1 [[-Address] <String>] [<CommonParameters>]
-Address <String> -Address <String>
Specifies the IPv4 address to check Specifies the IPv4 address to check
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-ipv4-address 192.168.11.22 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 Specifies the IPv4 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv4-address 192.168.11.22 PS> ./check-ipv4-address 192.168.11.22
✔️ IPv4 192.168.11.22 is valid IPv4 192.168.11.22 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -72,7 +72,7 @@ try {
if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" } if ($Address -eq "" ) { $Address = read-host "Enter IPv4 address to validate" }
if (IsIPv4AddressValid $Address) { if (IsIPv4AddressValid $Address) {
"✔️ IPv4 $Address is valid" " IPv4 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv4 address: $Address" 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 This PowerShell script checks the given IPv6 address for validity
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-ipv6-address.ps1 [[-Address] <String>] [<CommonParameters>]
-Address <String> -Address <String>
Specifies the IPv6 address to check Specifies the IPv6 address to check
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2 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 Specifies the IPv6 address to check
.EXAMPLE .EXAMPLE
PS> ./check-ipv6-address fe80::200:5aee:feaa:20a2 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 .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -86,7 +86,7 @@ try {
$Address = read-host "Enter IPv6 address to validate" $Address = read-host "Enter IPv6 address to validate"
} }
if (IsIPv6AddressValid $Address) { if (IsIPv6AddressValid $Address) {
"✔️ IPv6 $Address is valid" " IPv6 $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid IPv6 address: $Address" 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script queries the position of the International Space Station (ISS) and replies by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-iss-position.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-iss-position.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 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. 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 Parameters
---------- ----------
```powershell ```powershell
PS> ./check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-mac-address.ps1 [[-MAC] <String>] [<CommonParameters>]
-MAC <String> -MAC <String>
Specifies the MAC address to check Specifies the MAC address to check
@ -27,7 +27,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-mac-address 11:22:33:44:55:66 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 Specifies the MAC address to check
.EXAMPLE .EXAMPLE
PS> ./check-mac-address 11:22:33:44:55:66 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 .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -75,7 +75,7 @@ try {
$MAC = read-host "Enter MAC address to validate" $MAC = read-host "Enter MAC address to validate"
} }
if (IsMACAddressValid $MAC) { if (IsMACAddressValid $MAC) {
"✔️ MAC address $MAC is valid" " MAC address $MAC is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid MAC address: $MAC" 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-midnight.ps1* The *check-midnight.ps1* Script
======================== ===========================
check-midnight.ps1 check-midnight.ps1
@ -60,4 +60,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-midnight.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-month.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-month.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-month 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). This PowerShell script determines and speaks the current month name by text-to-speech (TTS).
.EXAMPLE .EXAMPLE
PS> ./check-month PS> ./check-month
✔️ It's December. It's December.
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -57,4 +57,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-month.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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). This PowerShell script determines the Moon phase and answers by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-moon-phase.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-moon-phase.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

62
docs/check-motherboard.md Normal file
View 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)*

View File

@ -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. This PowerShell script queries the network details of the local computer and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-network.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-network.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 === N E T W O R K ===
Online with 30ms latency (16ms..56ms, 0/10 loss) Firewall enabled
... ...
``` ```
@ -39,14 +39,14 @@ Script Content
```powershell ```powershell
<# <#
.SYNOPSIS .SYNOPSIS
Checks the network details Checks the network
.DESCRIPTION .DESCRIPTION
This PowerShell script queries the network details of the local computer and prints it. This PowerShell script queries the network details of the local computer and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-network.ps1 PS> ./check-network.ps1
N E T W O R K === N E T W O R K ===
Online with 30ms latency (16ms..56ms, 0/10 loss) Firewall enabled
... ...
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
@ -54,14 +54,17 @@ Script Content
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
Write-Host "`n N E T W O R K" -foregroundColor green Write-Host "`n === N E T W O R K ===" -foregroundColor green
& "$PSScriptRoot/list-ip-addresses.ps1"
& "$PSScriptRoot/ping-remote-hosts.ps1"
& "$PSScriptRoot/check-firewall" & "$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-dns.ps1"
& "$PSScriptRoot/check-vpn.ps1" & "$PSScriptRoot/check-vpn.ps1"
& "$PSScriptRoot/ping-local-hosts.ps1" & "$PSScriptRoot/list-ssh-key.ps1"
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-network.ps1 as of 08/15/2024 09:50:45)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,5 +1,5 @@
Script: *check-noon.ps1* The *check-noon.ps1* Script
======================== ===========================
check-noon.ps1 check-noon.ps1
@ -59,4 +59,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-noon.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -1,12 +1,12 @@
Script: *check-os.ps1* The *check-os.ps1* Script
======================== ===========================
This PowerShell script queries the operating system status and prints it. This PowerShell script queries the operating system status and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-os.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-os.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-os.ps1 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. This PowerShell script queries the operating system status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-os.ps1 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 .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -64,7 +64,7 @@ try {
$InstallDate = $OSDetails.InstallDate $InstallDate = $OSDetails.InstallDate
$ProductKey = (Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" -Name BackupProductKeyDefault).BackupProductKeyDefault $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 exit 0 # success
} catch { } catch {
@ -73,4 +73,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-os.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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. This PowerShell script checks the inbox of Outlook for new/unread mails.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-outlook.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-outlook.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:19)*

View File

@ -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 This PowerShell script checks the security status of the given password by haveibeenpwned.com
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-password.ps1 [[-password] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-password.ps1 [[-password] <String>] [<CommonParameters>]
-password <String> -password <String>
@ -94,4 +94,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-password.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,5 +1,5 @@
Script: *check-pending-reboot.ps1* The *check-pending-reboot.ps1* Script
======================== ===========================
check-pending-reboot.ps1 check-pending-reboot.ps1
@ -41,50 +41,48 @@ function Test-RegistryValue { param([parameter(Mandatory=$true)][ValidateNotNull
} }
try { try {
$Reason = "" $reply = "✅ No pending reboot"
if ($IsLinux) { if ($IsLinux) {
if (Test-Path "/var/run/reboot-required") { if (Test-Path "/var/run/reboot-required") {
$Reason = "found: /var/run/reboot-required" $reply = "⚠️ Pending reboot (found: /var/run/reboot-required)"
Write-Host "⚠️ Pending reboot ($Reason)"
} }
} else { } else {
$reason = ""
if (Test-Path -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired") { 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") { 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") { 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") { 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") { 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") { 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") { 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") { 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") { 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") { 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 "") { if ($reason -ne "") {
Write-Host "⚠️ Pending reboot (registry got $($Reason.substring(2)))" $reply = "⚠️ Pending reboot (registry got $($reason.substring(2)))"
} }
} }
if ($Reason -eq "") { Write-Host $reply
Write-Host "✅ No pending reboot"
}
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,12 +1,12 @@
Script: *check-pnp-devices.ps1* The *check-pnp-devices.ps1* Script
======================== ===========================
This PowerShell script checks all Plug'n'PLay devices connected to the local computer. This PowerShell script checks all Plug'n'PLay devices connected to the local computer.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-pnp-devices.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-pnp-devices.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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-pnp-devices.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,12 +1,12 @@
Script: *check-power.ps1* The *check-power.ps1* Script
======================== ===========================
This PowerShell script queries the power status and prints it. This PowerShell script queries the power status and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-power.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-power.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -17,7 +17,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-power.ps1 PS> ./check-power.ps1
Battery at 9% with 54min 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. This PowerShell script queries the power status and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-power.ps1 PS> ./check-power.ps1
⚠️ Battery at 9% with 54min remaining · power scheme 'HP Optimized' ⚠️ Battery 9% only with 54min remaining (power scheme is 'HP Optimized')
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -54,35 +54,34 @@ try {
$details = [System.Windows.Forms.SystemInformation]::PowerStatus $details = [System.Windows.Forms.SystemInformation]::PowerStatus
[int]$percent = 100 * $details.BatteryLifePercent [int]$percent = 100 * $details.BatteryLifePercent
[int]$remaining = $details.BatteryLifeRemaining / 60 [int]$remaining = $details.BatteryLifeRemaining / 60
$powerScheme = (powercfg /getactivescheme)
$powerScheme = $powerScheme -Replace "^(.*) \(",""
$powerScheme = $powerScheme -Replace "\)$",""
if ($details.PowerLineStatus -eq "Online") { if ($details.PowerLineStatus -eq "Online") {
if ($details.BatteryChargeStatus -eq "NoSystemBattery") { if ($details.BatteryChargeStatus -eq "NoSystemBattery") {
$reply = "✅ AC powered" $reply = "✅ AC powered"
} elseif ($percent -ge 95) { } elseif ($percent -ge 95) {
$reply = "✅ Battery $percent% full" $reply = "✅ Battery full ($percent%, power scheme is '$powerScheme')"
} else { } else {
$reply = "✅ Battery charging ($percent%)" $reply = "✅ Battery charging ($percent%, power scheme is '$powerScheme')"
} }
} else { # must be offline } else { # must be offline
if (($remaining -eq 0) -and ($percent -ge 60)) { if (($remaining -eq 0) -and ($percent -ge 60)) {
$reply = "✅ Battery $percent% full" $reply = "✅ Battery $percent% full (power scheme is '$powerScheme')"
} elseif ($remaining -eq 0) { } elseif ($remaining -eq 0) {
$reply = "✅ Battery at $percent%" $reply = "✅ Battery at $percent% (power scheme is '$powerScheme')"
} elseif ($remaining -le 5) { } elseif ($remaining -le 5) {
$reply = "⚠️ Battery at $percent% with ONLY $($remaining)min remaining" $reply = "⚠️ Battery LOW ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($remaining -le 30) { } elseif ($remaining -le 30) {
$reply = "⚠️ Battery at $percent% with only $($remaining)min remaining" $reply = "⚠️ Battery low ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} elseif ($percent -lt 10) { } elseif ($percent -lt 10) {
$reply = "⚠️ Battery at $percent% with $($remaining)min remaining" $reply = "⚠️ Battery $percent% only with $($remaining)min remaining (power scheme is '$powerScheme') "
} elseif ($percent -ge 80) { } elseif ($percent -ge 90) {
$reply = "✅ Battery $percent% full with $($remaining)min remaining" $reply = "✅ Battery full ($percent%, $($remaining)min remaining, power scheme is '$powerScheme')"
} else { } else {
$reply = "✅ Battery at $percent% with $($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 is '$powerScheme'"
} }
Write-Host $reply Write-Host $reply
exit 0 # success exit 0 # success
@ -92,4 +91,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-power.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,5 +1,5 @@
Script: *check-powershell.ps1* The *check-powershell.ps1* Script
======================== ===========================
check-powershell.ps1 check-powershell.ps1
@ -59,4 +59,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-powershell.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -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. This PowerShell script checks the given PowerShell script file(s) for validity.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-ps1-file.ps1 [[-filePattern] <String>] [<CommonParameters>]
-filePattern <String> -filePattern <String>
Specifies the file pattern to the PowerShell file(s) Specifies the file pattern to the PowerShell file(s)
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-ps1-file *.ps1 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) Specifies the file pattern to the PowerShell file(s)
.EXAMPLE .EXAMPLE
PS> ./check-ps1-file *.ps1 PS> ./check-ps1-file *.ps1
✔️ Valid PowerShell in myfile.ps1 Valid PowerShell in myfile.ps1
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -67,7 +67,7 @@ try {
$syntaxError = @() $syntaxError = @()
[void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError) [void][System.Management.Automation.Language.Parser]::ParseFile($file, [ref]$null, [ref]$syntaxError)
if ("$syntaxError" -ne "") { throw "$syntaxError" } if ("$syntaxError" -ne "") { throw "$syntaxError" }
"✔️ Valid PowerShell in $($file.Name)" " Valid PowerShell in $($file.Name)"
} }
exit 0 # success exit 0 # success
} catch { } catch {
@ -76,4 +76,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ps1-file.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,5 +1,5 @@
Script: *check-ram.ps1* The *check-ram.ps1* Script
======================== ===========================
check-ram.ps1 check-ram.ps1
@ -98,4 +98,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-ram.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -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. This PowerShell script verifies the integrity of a local Git repository and performs maintenance tasks.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-repo.ps1 [[-pathToRepo] <String>] [<CommonParameters>]
-pathToRepo <String> -pathToRepo <String>
Specifies the file path to the local Git repository (current working directory by default) Specifies the file path to the local Git repository (current working directory by default)
@ -121,7 +121,7 @@ try {
$repoDirName = (Get-Item "$FullPath").Name $repoDirName = (Get-Item "$FullPath").Name
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [int]$elapsed = $stopWatch.Elapsed.TotalSeconds
"✔️ Checked 📂$repoDirName repo in $($elapsed)s." " Checked 📂$repoDirName repo in $($elapsed)s."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -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. This PowerShell script verifies the data integrity of all Git repositories in a folder.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-repos.ps1 [[-parentDir] <String>] [<CommonParameters>]
-parentDir <String> -parentDir <String>
Specifies the file path to the parent folder 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 parent folder 📂C:\Repos... 16 subfolders
Checking 📂rust repository (1/16)... 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 parent folder 📂C:\Repos... 16 subfolders
⏳ Checking 📂rust repository (1/16)... ⏳ 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 .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -83,7 +83,7 @@ try {
} }
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds [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 exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -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). This PowerShell script checks the time until Saint Nicholas Day and replies by text-to-speech (TTS).
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-santa.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-santa.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,5 +1,5 @@
Script: *check-smart-devices.ps1* The *check-smart-devices.ps1* Script
======================== ===========================
check-smart-devices.ps1 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. This PowerShell script queries the status of the SSD/HDD devices (supporting S.M.A.R.T.) and prints it.
.EXAMPLE .EXAMPLE
PS> ./check-smart-devices.ps1 PS> ./check-smart-devices.ps1
✅ 1TB Samsung SSD 970 EVO via NVMe (37°C, 2388 hours, 289x on/off, v2B2QEXE7) - selftest OK ✅ 1TB Samsung SSD 970 EVO 1TB via NVMe (35°C, 6142h, 770x on/off, 34TB read, 64TB written, v2B2QEXE7, test passed)
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -48,18 +48,15 @@ function Bytes2String([int64]$bytes) {
} }
try { try {
#Write-Progress "(1/3) Searching for smartmontools..."
$result = (smartctl --version) $result = (smartctl --version)
if ($lastExitCode -ne "0") { throw "Can't execute 'smartctl' - make sure smartmontools are installed" } 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) { if ($IsLinux) {
$devices = $(sudo smartctl --scan-open) $devices = $(sudo smartctl --scan-open)
} else { } else {
$devices = $(smartctl --scan-open) $devices = $(smartctl --scan-open)
} }
#Write-Progress "Querying S.M.A.R.T devices..."
foreach($device in $devices) { foreach($device in $devices) {
$array = $device.split(" ") $array = $device.split(" ")
$dev = $array[0] $dev = $array[0]
@ -81,34 +78,41 @@ try {
} else { } else {
$capacity = "" $capacity = ""
} }
$infos = ""
if ($details.temperature.current -gt 50) { 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 = "⚠️" $status = "⚠️"
} else { } else {
$temp = "$($details.temperature.current)°C" $infos = "$($details.temperature.current)°C"
} }
if ($details.power_on_time.hours -gt 87600) { # 10 years 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 = "⚠️" $status = "⚠️"
} else { } else {
$hours = "$($details.power_on_time.hours) hours" $infos += ", $($details.power_on_time.hours)h"
} }
if ($details.power_cycle_count -gt 100000) { if ($details.power_cycle_count -gt 100000) {
$powerOn = "$($details.power_cycle_count)x on/off (!)" $infos += ", $($details.power_cycle_count)x on/off (!)"
$status = "⚠️" $status = "⚠️"
} else { } 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) { if ($details.smart_status.passed) {
$selftest = "selftest OK" $infos += ", test passed"
} else { } else {
$selftest = "selftest FAILED" $infos += ", test FAILED"
$status = "⚠️" $status = "⚠️"
} }
$firmwareVersion = $details.firmware_version Write-Host "$status $capacity$modelName via $protocol ($infos)"
Write-Host "$status $capacity$modelName via $protocol ($temp, $hours, $powerOn, v$firmwareVersion) - $selftest"
} }
#Write-Progress -completed "Done."
exit 0 # success exit 0 # success
} catch { } catch {
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])" "⚠️ 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 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,12 +1,12 @@
Script: *check-software.ps1* The *check-software.ps1* Script
======================== ===========================
This PowerShell script queries the software status of the local computer and prints it. This PowerShell script queries the software status of the local computer and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-software.ps1 [<CommonParameters>] /Repos/PowerShell/scripts/check-software.ps1 [<CommonParameters>]
[<CommonParameters>] [<CommonParameters>]
This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, This script supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction,
@ -20,7 +20,7 @@ PS> ./check-software.ps1
S O F T W A R E === S O F T W A R E ===
Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021) Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021)
... ...
@ -45,7 +45,7 @@ Script Content
.EXAMPLE .EXAMPLE
PS> ./check-software.ps1 PS> ./check-software.ps1
S O F T W A R E === S O F T W A R E ===
✅ Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021) ✅ Windows 10 Pro 64-Bit (v10.0.19045, since 5/2/2021)
... ...
.LINK .LINK
@ -54,15 +54,14 @@ Script Content
Author: Markus Fleschutz | License: CC0 Author: Markus Fleschutz | License: CC0
#> #>
Write-Host "`n S O F T W A R E" -foregroundColor green Write-Host "`n === S O F T W A R E ===" -foregroundColor green
& "$PSScriptRoot/check-os.ps1" & "$PSScriptRoot/check-os.ps1"
& "$PSScriptRoot/check-uptime.ps1" & "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-apps.ps1" & "$PSScriptRoot/check-apps.ps1"
& "$PSScriptRoot/check-powershell.ps1" & "$PSScriptRoot/check-powershell.ps1"
& "$PSScriptRoot/check-time-zone.ps1" & "$PSScriptRoot/check-time-zone.ps1"
& "$PSScriptRoot/check-swap-space.ps1" & "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-pending-reboot.ps1"
exit 0 # success exit 0 # success
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-software.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,12 +1,12 @@
Script: *check-subnet-mask.ps1* The *check-subnet-mask.ps1* Script
======================== ===========================
This PowerShell script checks the given subnet mask for validity. This PowerShell script checks the given subnet mask for validity.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-subnet-mask.ps1 [[-address] <String>] [<CommonParameters>] /Repos/PowerShell/scripts/check-subnet-mask.ps1 [[-address] <String>] [<CommonParameters>]
-address <String> -address <String>
Specifies the subnet mask to check Specifies the subnet mask to check
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-subnet-mask.ps1 255.255.255.0 PS> ./check-subnet-mask.ps1 255.255.255.0
subnet mask 255.255.255.0 is valid subnet mask 255.255.255.0 is valid
``` ```
@ -50,7 +50,7 @@ Script Content
Specifies the subnet mask to check Specifies the subnet mask to check
.EXAMPLE .EXAMPLE
PS> ./check-subnet-mask.ps1 255.255.255.0 PS> ./check-subnet-mask.ps1 255.255.255.0
✔️ subnet mask 255.255.255.0 is valid subnet mask 255.255.255.0 is valid
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -72,7 +72,7 @@ try {
if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" } if ($address -eq "" ) { $address = read-host "Enter subnet mask to validate" }
if (IsSubNetMaskValid $address) { if (IsSubNetMaskValid $address) {
"✔️ subnet mask $Address is valid" " subnet mask $Address is valid"
exit 0 # success exit 0 # success
} else { } else {
write-warning "Invalid subnet mask: $address" write-warning "Invalid subnet mask: $address"
@ -84,4 +84,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-subnet-mask.ps1 as of 08/15/2024 09:50:46)* *(page generated by convert-ps2md.ps1 as of 01/23/2025 12:15:20)*

View File

@ -1,12 +1,12 @@
Script: *check-swap-space.ps1* The *check-swap-space.ps1* Script
======================== ===========================
This PowerShell script queries the current status of the swap space and prints it. This PowerShell script queries the current status of the swap space and prints it.
Parameters Parameters
---------- ----------
```powershell ```powershell
PS> ./check-swap-space.ps1 [[-minLevel] <Int32>] [<CommonParameters>] /Repos/PowerShell/scripts/check-swap-space.ps1 [[-minLevel] <Int32>] [<CommonParameters>]
-minLevel <Int32> -minLevel <Int32>
Specifies the minimum level in MB (10 MB by default) Specifies the minimum level in MB (10 MB by default)
@ -26,7 +26,7 @@ Example
------- -------
```powershell ```powershell
PS> ./check-swap-space.ps1 PS> ./check-swap-space.ps1
Swap space uses 21% of 1GB - 1005MB free Swap space uses 1GB (21%) of 5GB
``` ```
@ -50,7 +50,7 @@ Script Content
Specifies the minimum level in MB (10 MB by default) Specifies the minimum level in MB (10 MB by default)
.EXAMPLE .EXAMPLE
PS> ./check-swap-space.ps1 PS> ./check-swap-space.ps1
✅ Swap space uses 21% of 1GB - 1005MB free ✅ Swap space uses 1GB (21%) of 5GB
.LINK .LINK
https://github.com/fleschutz/PowerShell https://github.com/fleschutz/PowerShell
.NOTES .NOTES
@ -75,7 +75,7 @@ try {
if ($IsLinux) { if ($IsLinux) {
$Result = $(free --mega | grep Swap:) $Result = $(free --mega | grep Swap:)
[int64]$total = $Result.subString(5,14) [int64]$total = $Result.subString(5,15)
[int64]$used = $Result.substring(20,13) [int64]$used = $Result.substring(20,13)
[int64]$free = $Result.substring(32,11) [int64]$free = $Result.substring(32,11)
} else { } else {
@ -91,14 +91,14 @@ try {
if ($total -eq 0) { if ($total -eq 0) {
Write-Output "⚠️ No swap space configured" Write-Output "⚠️ No swap space configured"
} elseif ($free -eq 0) { } elseif ($free -eq 0) {
Write-Output "⚠️ Swap space of $(MB2String $total) is full" Write-Output "⚠️ Swap space with $(MB2String $total) is FULL !!!"
} elseif ($free -lt $minLevel) { } elseif ($free -lt $minLevel) {
Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) free" Write-Output "⚠️ Swap space has only $(MB2String $free) of $(MB2String $total) left!"
} elseif ($used -lt 3) { } elseif ($used -lt 3) {
Write-Output "✅ Swap space unused - full $(MB2String $free) free" Write-Output "✅ Swap space has $(MB2String $total) reserved"
} else { } else {
[int64]$percent = ($used * 100) / $total [int64]$percent = ($used * 100) / $total
Write-Output "✅ Swap space at $percent% of $(MB2String $total) - $(MB2String $free) free" Write-Output "✅ Swap space uses $(MB2String $used) ($percent%) of $(MB2String $total)"
} }
exit 0 # success exit 0 # success
} catch { } catch {
@ -107,4 +107,4 @@ try {
} }
``` ```
*(generated by convert-ps2md.ps1 using the comment-based help of check-swap-space.ps1 as of 08/15/2024 09:50:46)* *(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