Remove desktop icons forcefully
This commit is contained in:
parent
e6f7934c7e
commit
aa78b5f335
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function Remove-DesktopIcon {
|
|||
$fullName = "$userDir/$path";
|
||||
|
||||
if (Test-Path -PathType Leaf $fullName) {
|
||||
Remove-Item $fullName;
|
||||
Remove-Item -Force $fullName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue