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:
Vincent N
2021-10-07 12:29:11 +02:00
committed by GitHub
parent e7c67c6ebc
commit fdf942f6d1
+1 -1
View File
@@ -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: