From 6ad53ead58f68aa1b6740d9537303b9d9d33489e Mon Sep 17 00:00:00 2001 From: David Yoder Date: Thu, 18 Nov 2021 20:14:45 -0500 Subject: [PATCH] make script delete itself --- Install-AteraAgent.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Install-AteraAgent.ps1 b/Install-AteraAgent.ps1 index 2cee5b6..399b98d 100644 --- a/Install-AteraAgent.ps1 +++ b/Install-AteraAgent.ps1 @@ -55,4 +55,5 @@ If ( $INSTALL ) { } Else { LogMsg "Atera agent is already installed on this endpoint." } +Remove-Item $MyInvocation.MyCommand.Path -Force