mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-08 09:04:18 +01:00
Add list-recycle-bin.ps1
This commit is contained in:
parent
9c7a29cc8c
commit
bc7ed352fa
@ -110,6 +110,7 @@ list-processes.ps1, lists the local computer processes
|
||||
list-profiles.ps1, lists your PowerShell profiles
|
||||
list-random-passwords.ps1, prints a list of random passwords
|
||||
list-random-pins.ps1, prints a list of random PIN's
|
||||
list-recycle-bin.ps1, lists the content of the recycle bin folder
|
||||
list-scripts.ps1, lists all PowerShell scripts in this repository
|
||||
list-services.ps1, lists the services on the local computer
|
||||
list-sql-tables.ps1, lists the SQL server tables
|
||||
|
|
@ -122,6 +122,7 @@ Mega Collection of PowerShell Scripts
|
||||
* [list-empty-files.ps1](Scripts/list-empty-files.ps1) - lists empty files within the given directory tree
|
||||
* [list-files.ps1](Scripts/list-files.ps1) - lists all files in the given folder and also in every subfolder
|
||||
* [list-hidden-files.ps1](Scripts/list-hidden-files.ps1) - lists hidden files within the given directory tree
|
||||
* [list-recycle-bin.ps1](Scripts/list-recycle-bin.ps1) - lists the content of the recycle bin folder
|
||||
* [list-unused-files.ps1](Scripts/list-unused-files.ps1) - lists unused files in a directory tree
|
||||
* [list-workdir.ps1](Scripts/list-workdir.ps1) - lists the current working directory
|
||||
* [make-install.ps1](Scripts/make-install.ps1) - installs built executables and libs to the installation directory
|
||||
|
14
Scripts/list-recycle-bin.ps1
Executable file
14
Scripts/list-recycle-bin.ps1
Executable file
@ -0,0 +1,14 @@
|
||||
<#
|
||||
.SYNTAX list-recycle-bin.ps1
|
||||
.DESCRIPTION lists the content of the recycle bin folder
|
||||
.LINK https://github.com/fleschutz/PowerShell
|
||||
.NOTES Author: Markus Fleschutz / License: CC0
|
||||
#>
|
||||
|
||||
try {
|
||||
(New-Object -ComObject Shell.Application).NameSpace(0x0a).Items() | Select-Object Name,Size,Path
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "ERROR: line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
exit 1
|
||||
}
|
Loading…
Reference in New Issue
Block a user