mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-23 05:01:37 +01:00
Added exe_info.ps1
This commit is contained in:
parent
d55615ef56
commit
932d6cc63c
@ -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
11
Scripts/exe_info.ps1
Normal 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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user