About 63 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 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 information if the...

  3. 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:

  4. powershell - Remove-Item (and [System.IO.File]::Delete () ) removes ...

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

  5. Powershell Invoke-Command Remove-Item Remote Server

    Jul 30, 2012 · I want to delete files on a particular folder of a remote server. I execute the following in Powershell:

  6. Validating PowerShell operations - Delete file | Microsoft Community …

    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, I need to …

  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, 7 months ago Modified 1 year, 2 months ago Viewed 44k times

  8. 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 obvious

  9. Delete directory regardless of 260 char limit - Stack Overflow

    May 6, 2013 · Combination of tools can work best, try doing a dir /x to get the 8.3 file name instead. You could then parse out that output to a text file then build a powershell script to delete the paths that …

  10. powershell - Delete downloaded remote file with WinSCP script - Stack ...

    Feb 9, 2023 · 1 I have a PowerShell script that is working great to grab some files from a remote SFTP. But I can not get the code to delete the files after download. Here is what I have.