From b11a6c12681fa7aa1ac76b696f41bc5e07edeb30 Mon Sep 17 00:00:00 2001 From: Jake Date: Tue, 26 Sep 2023 11:07:51 -0600 Subject: [PATCH] Update vm.common.psm1 --- packages/common.vm/tools/vm.common/vm.common.psm1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/common.vm/tools/vm.common/vm.common.psm1 b/packages/common.vm/tools/vm.common/vm.common.psm1 index 7d26474e7..eced15120 100755 --- a/packages/common.vm/tools/vm.common/vm.common.psm1 +++ b/packages/common.vm/tools/vm.common/vm.common.psm1 @@ -1104,8 +1104,8 @@ function VM-Configure-Prompts { # Set cmd prompt ## Configure the command - $mandiantVM = $Env:VMname -replace ' ', '' # setx command cannot have spaces - $command = "cmd /c 'setx PROMPT $mandiantVM`$S`$d`$s`$t`$_`$p$+`$g'" + $VMname = $Env:VMname -replace ' ', '' # setx command cannot have spaces + $command = "cmd /c 'setx PROMPT $VMname`$S`$d`$s`$t`$_`$p$+`$g'" ## Convert to base64 $base64 = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($command)) ## Run command