About 127,000 results
Open links in new tab
  1. Delete files older than 15 days using PowerShell

    Jun 16, 2014 · I would like to delete only the files that were created more than 15 days ago in a particular folder. How could I do this using PowerShell?

  2. powershell - Remove lines from a text file if it contains a string ...

    56 I am trying to remove all the lines from a text file that contains a partial string using the below PowerShell code:

  3. PowerShell Delete File If Exists - Stack Overflow

    Feb 17, 2022 · Could you help me with a powershell script? I want to check if multiple files exist, if they exist then delete the files. Than provide information if the file has been deleted or …

  4. How can I recursively delete an entire directory with PowerShell 2.0?

    What is the simplest way to forcefully delete a directory and all its subdirectories in PowerShell? I am using PowerShell V2 in Windows 7. I have learned from several sources that the most …

  5. Remove Top Line of Text File with PowerShell - Stack Overflow

    Jan 16, 2010 · Remove Top Line of Text File with PowerShell Asked 15 years, 11 months ago Modified 3 years, 7 months ago Viewed 198k times

  6. SharePoint | Delete Version History using PnP PowerShell

    Feb 18, 2024 · Oh, and one last point: if you don't want to do this again, remember to disable version control (if you're not using it, of course). The SharePoint Diary scripts, especially the …

  7. What's the fastest way to delete a large folder in Windows?

    418 Using Windows Command Prompt: rmdir /s /q folder Using Powershell: powershell -Command "Remove-Item -LiteralPath 'folder' -Force -Recurse" Note that in more cases del …

  8. powershell - Remove-Item (and [System.IO.File]::Delete () ) …

    Apr 27, 2021 · Remove-Item (and [System.IO.File]::Delete () ) removes file that is in use Asked 4 years, 8 months ago Modified 4 years, 8 months ago Viewed 2k times

  9. PowerShell Basics: How to Delete Files Older Than X Days

    Mar 26, 2020 · A deletelog.txt file is created to report on all file and folders that have now been removed. As always, please share below your PowerShell automation scripts to possibly add …

  10. Powershell delete folder files based on date range criteria

    Sep 23, 2020 · Powershell delete folder files based on date range criteria Asked 5 years, 3 months ago Modified 5 years, 3 months ago Viewed 5k times