diff --git a/src/PatchOrchestrationApplication/NodeAgentService/src/InstallAndRunService.bat b/src/PatchOrchestrationApplication/NodeAgentService/src/InstallAndRunService.bat
index fc90dc4..8fefbfe 100644
--- a/src/PatchOrchestrationApplication/NodeAgentService/src/InstallAndRunService.bat
+++ b/src/PatchOrchestrationApplication/NodeAgentService/src/InstallAndRunService.bat
@@ -52,7 +52,9 @@ REM icacls %workingDir% /grant "Network Service":(OI)(CI)F /T
REM Stop the service and uninstall the current version
sc stop %serviceName%
-powershell -File "KillService.ps1"
+
+REM POSNodeSvc stucks sometimes while stopping. This will unblock that.
+taskkill /IM "NodeAgentNTService.exe" /F
sc delete %serviceName%
REM Cleanup the %workingDir% for all predecided folders.
diff --git a/src/PatchOrchestrationApplication/NodeAgentService/src/KillService.ps1 b/src/PatchOrchestrationApplication/NodeAgentService/src/KillService.ps1
deleted file mode 100644
index c53829b..0000000
--- a/src/PatchOrchestrationApplication/NodeAgentService/src/KillService.ps1
+++ /dev/null
@@ -1,16 +0,0 @@
-try {
- $id = Get-WmiObject -Class Win32_Service -Filter "Name LIKE 'POSNodeSvc'" | Select-Object -ExpandProperty ProcessId
- if($id -ne $null)
- {
- $process = Get-Process -Id $id
- if($process.Id -ne $null)
- {
- taskkill /F /PID $process.Id
- }
- }
-}
-catch {
- # do nothing.
-}
-
-
diff --git a/src/PatchOrchestrationApplication/NodeAgentService/src/NodeAgentService.csproj b/src/PatchOrchestrationApplication/NodeAgentService/src/NodeAgentService.csproj
index 5030908..b8d5eb6 100644
--- a/src/PatchOrchestrationApplication/NodeAgentService/src/NodeAgentService.csproj
+++ b/src/PatchOrchestrationApplication/NodeAgentService/src/NodeAgentService.csproj
@@ -13,9 +13,9 @@
True
-
-
-
+
+
+
@@ -46,9 +46,6 @@
PreserveNewest
-
- PreserveNewest
-