mirror of
https://github.com/zoicware/RemoveWindowsAI.git
synced 2025-12-17 07:06:29 +01:00
change .name to .pspath
This commit is contained in:
@@ -1406,7 +1406,7 @@ function Remove-AI-Files {
|
||||
foreach ($keyword in $aiKeyWords) {
|
||||
foreach ($location in $regLocations) {
|
||||
Get-ChildItem $location -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.PSChildName -like "*$keyword*" } | ForEach-Object {
|
||||
Remove-Item "registry::$($_.Name)" -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item $_.PSPath -Recurse -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user