This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Get the recently posted news on the front page of Reddit! Alternatively, target a subreddit | |
.DESCRIPTION | |
Get the recently posted news on the front page of Reddit! Alternatively, target a subreddit | |
.EXAMPLE | |
Get-RedditFeed -NumberOfResults 10 | |
.EXAMPLE | |
Get-RedditFeed -SubReddit r/Powershell -NumberOfResults 5 | |
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Deletes all files in a specific directory with "(n)" in their name (where 'n' indicates a number). Useful for cleaning up downloads | |
.DESCRIPTION | |
Deletes all files in a specific directory with "(n)" in their name (where 'n' indicates a number). Useful for cleaning up duplicate downloads | |
.EXAMPLE | |
Remove-DuplicateDownloads -TargetPath C:\Users\User1\Downloads | |
#> | |
function Remove-DuplicateDownloads | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Find files with names that contain diacritical marks, and send this list to a specified email address. | |
#> | |
function Get-Diacritic { | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Find files with names that contain diacritical marks, and send this list to a specified email address. | |
#> | |
function Get-Diacritic { | |
[CmdletBinding()] | |
Param | |
( | |
[Parameter(ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem '.\FileShare' -Recurse | Where {$_.Name -match "[\u00C0-\u00FF]"} | ft @{Expression={$_.Name};Label="File Name";width=20},@{Expression={$_.Directory};Label="Directory";width=22},@{Expression={$_.CreationTime};Label="Created";width=20},@{Expression={$_.LastWriteTime};Label="Last Modified";width=21},@{Expression={$_.Length};Label="Size";width=8} |