none
PowerShell Remove-Item Tag RRS feed

  • Question

  • Remove-Item tag is not working at time using Powershell 2 script in Windows 2008 R2 (64)

    if (Test-Path
    ${InstallPath}\${Area}) {

                                                    Remove-Item ${InstallPath}\${Area}\* -ErrorVariable errs
    -recurse -force
                                                    if ($errs.Count
    -ne 0) {
                                                                   
    Write-Host "Error: (T) Failed to remove
    ${InstallPath}\${Area}"
                                                                   
    Exit-Error

                                                   
    }

    Can you please suggest some work around or Powershell updgrade 4 will resolve the issue.

    Wednesday, November 5, 2014 12:05 PM