adjusted for removal of Remove-File cmdlet
This commit is contained in:
@@ -28,5 +28,6 @@ Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose }
|
||||
Catch { Write-Error $_.Exception.Message }
|
||||
|
||||
# Delete the desktop icon
|
||||
"${Env:PUBLIC}\Desktop\Emberkom Backup.LNK",
|
||||
"${Env:PUBLIC}\Desktop\Emberkom Cloud Backup.LNK" | Remove-File
|
||||
Write-Output "Removing desktop icon"
|
||||
Remove-Item -Path "${Env:PUBLIC}\Desktop\Emberkom Backup.LNK" -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "${Env:PUBLIC}\Desktop\Emberkom Cloud Backup.LNK" -Force -ErrorAction SilentlyContinue
|
||||
Reference in New Issue
Block a user