mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-21 01:18:18 +02:00
Add example output
This commit is contained in:
parent
4f18f35820
commit
1d8f6b36e5
@ -5,6 +5,12 @@
|
|||||||
Lists all automatic variables of PowerShell
|
Lists all automatic variables of PowerShell
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-automatic-variables
|
PS> ./list-automatic-variables
|
||||||
|
|
||||||
|
Variable Content
|
||||||
|
-------- -------
|
||||||
|
$false False
|
||||||
|
$HOME C:\Users\Markus
|
||||||
|
...
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
Lists all PowerShell cmdlets
|
Lists all PowerShell cmdlets
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-cmdlets
|
PS> ./list-cmdlets
|
||||||
|
|
||||||
|
CommandType Name Version Source
|
||||||
|
----------- ---- ------- ------
|
||||||
|
Function Add-BCDataCacheExtension 1.0.0.0 BranchCache
|
||||||
|
Function Add-BitLockerKeyProtector 1.0.0.0 BitLocker
|
||||||
|
...
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
Lists all commits in a Git repository (format is: list|compact|normal|JSON)
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-commits
|
PS> ./list-commits
|
||||||
|
|
||||||
|
ID Date Committer Description
|
||||||
|
-- ---- --------- -----------
|
||||||
|
ccd0d3e Wed Sep 29 08:28:20 2021 +0200 Markus Fleschutz Fix typo
|
||||||
|
291d785 Wed Sep 29 08:18:28 2021 +0200 Markus Fleschutz Update README.md
|
||||||
|
...
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
@ -19,7 +25,7 @@ try {
|
|||||||
$Null = (git --version)
|
$Null = (git --version)
|
||||||
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
if ($lastExitCode -ne "0") { throw "Can't execute 'git' - make sure Git is installed and available" }
|
||||||
|
|
||||||
"🢃 Fetching latest tags..."
|
write-progress "🢃 Fetching latest tags..."
|
||||||
& git -C "$RepoDir" fetch --all --quiet
|
& git -C "$RepoDir" fetch --all --quiet
|
||||||
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
if ($lastExitCode -ne "0") { throw "'git fetch' failed" }
|
||||||
|
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
Lists the network shares of the local computer
|
Lists the network shares of the local computer
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-network-shares
|
PS> ./list-network-shares
|
||||||
|
|
||||||
|
Name Path Description
|
||||||
|
---- ---- -----------
|
||||||
|
Users C:\Users
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
Lists the local computer services
|
Lists the local computer services
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-services
|
PS> ./list-services
|
||||||
|
|
||||||
|
Status Name DisplayName
|
||||||
|
------ ---- -----------
|
||||||
|
Running AarSvc_886c2 Agent Activation Runtime_886c2
|
||||||
|
Running Apple Mobile De... Apple Mobile Device Service
|
||||||
|
...
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
|
@ -5,6 +5,12 @@
|
|||||||
Lists the user groups on the local computer
|
Lists the user groups on the local computer
|
||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./list-user-groups
|
PS> ./list-user-groups
|
||||||
|
|
||||||
|
Name Description
|
||||||
|
---- -----------
|
||||||
|
HomeUsers HomeUsers Security Group
|
||||||
|
Ssh Users Members of this group can remotely access this computer over SSH protocol.
|
||||||
|
...
|
||||||
.NOTES
|
.NOTES
|
||||||
Author: Markus Fleschutz · License: CC0
|
Author: Markus Fleschutz · License: CC0
|
||||||
.LINK
|
.LINK
|
||||||
|
Loading…
Reference in New Issue
Block a user