Add missing quotes in wmic forgotten in fdf942f (#1645)

Quoting wmic node option prevents the command from failing when the destination node dns name contains a hyphen

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
Vincent N
2021-10-15 22:11:17 +02:00
committed by GitHub
parent e0add88f40
commit cc313367cd
+1 -1
View File
@@ -163,7 +163,7 @@ atomic_tests:
echo Sorry, can't connect to target host, check: network, firewall or permissions (must be admin on target)
executor:
command: |
wmic /node:#{target_host} shadowcopy call create Volume=#{drive_letter}
wmic /node:"#{target_host}" shadowcopy call create Volume=#{drive_letter}
name: command_prompt
elevation_required: true