Add quotes for wmic node
Quoting wmic node option prevents the command from failing when the destination node dns name contains a hyphen
This commit is contained in:
@@ -158,7 +158,7 @@ atomic_tests:
|
||||
- description: |
|
||||
Target must be a reachable Domain Controller, and current context must be domain admin
|
||||
prereq_command: |
|
||||
wmic /node:#{target_host} shadowcopy list brief
|
||||
wmic /node:"#{target_host}" shadowcopy list brief
|
||||
get_prereq_command: |
|
||||
echo Sorry, can't connect to target host, check: network, firewall or permissions (must be admin on target)
|
||||
executor:
|
||||
|
||||
Reference in New Issue
Block a user