Skip to content

Commit

Permalink
Update vm.common.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
day1player committed Sep 26, 2023
1 parent 28d1440 commit b11a6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common.vm/tools/vm.common/vm.common.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b11a6c1

Please sign in to comment.