Find Files Larger than a Specific Size with PowerShell
The following command will find and list all files that are larger than 500MB in the entire C:\ drive. Get-ChildItem C:\ -recurse | where-object {$_.length -gt 524288000} | Sort-Object length…
The following command will find and list all files that are larger than 500MB in the entire C:\ drive. Get-ChildItem C:\ -recurse | where-object {$_.length -gt 524288000} | Sort-Object length…
Plug the USB drive into your computer’s USB port.Search for the “cmd” application in the Windows start menu, right-click on the item, and select “Run as administrator” from the context…
To edit the default profile, open powershell and run 'notepad $profile'. Then copy the code below into it. you may need to run Set-ExecutionPolicy -Scope CurrentUser Unrestricted so that you…
the code below can be used to replace characters in a file and rename it. Get-ChildItem -Recurse -Filter * | Rename-Item -NewName { $_.Name -replace "_", "-" }
convert the file name so that only the first letter on the file is upper case rest of them lower case. $text = [System.Threading.Thread]::CurrentThread.CurrentCulture.TextInfo Get-ChildItem -Path . -Filter *.txt |…