Posts

Showing posts from March, 2019

Favorite Powershell Scripts

Mock sitemap This simple script gives us an overview of all pages - we just need to clean up the bin and obj folder listings  - do some simple replaces and turn it into links or a sitemap It creates a list of all of the filetypes specified into an output text file Below I have specified on .aspx files but you could do something like .htm,asp,aspx instead to include multiple file types. Get-ChildItem D:\mydirectory\My.WebApplication -recurse -include *.aspx| ForEach-Object { $_.FullName } > D:\mydirectory\My.WebApplication\output.txt More Powershell Resources PowerShell Scripts Repository Stackify Power Shell Commands Cheatsheet