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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user