Added exe_info.ps1

This commit is contained in:
Markus Fleschutz 2020-09-25 14:47:09 +02:00
parent d55615ef56
commit 932d6cc63c
4 changed files with 18 additions and 3 deletions

View File

@ -5,6 +5,10 @@ Useful cross-platform PowerShell scripts, to be used on the command-line (CLI) o
Scripts Explained
-----------------
* **exe_info.ps1** - prints basic information of the given executable file
* **lscmdlets.ps1** - lists all PowerShell cmdlets
* **lsmods.ps1** - lists all PowerShell modules
* **lsproc.ps1** - lists the local computer processes
* **MD5.ps1** - prints the MD5 checksum of the given file
* **moon.ps1** - prints the current moon phase
* **password.ps1** - generates and prints a single new password

11
Scripts/exe_info.ps1 Normal file
View File

@ -0,0 +1,11 @@
#!/snap/bin/powershell
#
# Syntax: exe_info.ps1 <file>
# Description: prints basic information of the given executable file
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0
#
param([string]$File)
get-childitem $File | % {$_.VersionInfo} | Select *
exit 0

View File

@ -1,7 +1,7 @@
#!/snap/bin/powershell
#
# Syntax: lscmdlets.ps1
# Description: lists the PowerShell cmdlets
# Description: lists all PowerShell cmdlets
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0

View File

@ -1,7 +1,7 @@
#!/snap/bin/powershell
#
# Syntax: lsmod.ps1
# Description: lists the PowerShell modules
# Syntax: lsmods.ps1
# Description: lists all PowerShell modules
# Author: Markus Fleschutz
# Source: github.com/fleschutz/PowerShell
# License: CC0