From 98571828d864ec4a8b40c3ed8a22a5282038cfa3 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Fri, 8 Oct 2021 05:41:49 -0400 Subject: [PATCH] delete desktop icon after install --- Install-EmberkomCloudBackup.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Install-EmberkomCloudBackup.ps1 b/Install-EmberkomCloudBackup.ps1 index 6bc0ec0..beb640e 100644 --- a/Install-EmberkomCloudBackup.ps1 +++ b/Install-EmberkomCloudBackup.ps1 @@ -43,4 +43,8 @@ Catch { LogErr $_.Exception.Message } ## Note: the product edition must be set *after* the user is added LogMsg "Setting Emberkom Cloud Backup agent edition to ""$AgentEdition""" Try { Set-MBSAgentSetting -Edition $AgentEdition -Verbose } -Catch { LogErr $_.Exception.Message } \ No newline at end of file +Catch { LogErr $_.Exception.Message } + +## Delete the desktop icon +"${Env:PUBLIC}\Desktop\Emberkom Backup.LNK", +"${Env:PUBLIC}\Desktop\Emberkom Cloud Backup.LNK" | Remove-File \ No newline at end of file