About 102,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. 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, 7 months ago Modified 4 years, 7 months ago Viewed 2k 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. How to delete all temp files using powershell - Stack Overflow

    Jul 26, 2018 · How to delete all temp files using powershell Asked 7 years, 5 months ago Modified 1 year ago Viewed 43k times

  8. Find specific file and delete it if exists - Stack Overflow

    Dec 1, 2016 · 6 I am using a couple of variables but normally I use the object returned from the Get-ChildItem cmdlet to find files and use an if statement that is altered. But how can I find a …

  9. 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 …

  10. Validating PowerShell operations - Delete file | Microsoft …

    Jun 7, 2022 · Validating PowerShell operations - Delete file Hi, What is the most accurate and efficient way to be certain PowerShell has executed a task with no discrepancies? In this case, …