Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Unable to find and delete registry keys using powershell -Error - Remove-Item : A device attached to the system is not functioning.

$
0
0

Hi,

I am not able to make this script run. Please help me.

$systems = get-content "C:\cb\systems.txt"
Write-Host $systems
foreach ($system in $systems)
{

Invoke-Command -ComputerName $system{ Pushd

sl HKLM:SOFTWARE\

$path = Test-Path cbd
write-host $path

Remove-Item cbd

popd
}}


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>