Hi,
I need to run a Python Zerologon_tester.py script within a powershell script but have no idea how to do this
The python script zerologon_tester.py uses the following syntax:
.\zerologon_tester.py <DomainControllerHostname> <IP>
I want to use a powershell script such as the following and add the domain hostname and IP address into the python script using variables for the syntax, something as follows:
import-module activedirectory
$env:PATHEXT += ";.py"
$dchostname = get-addomaincontroller -filter * | select-object name,ipv4addpress
foreach ($dc in $dchostname){
.\zerologon_tester.py $dc.name $dc.ipv4address
}
I also need to make sure that the next execution only follows the completions of the preceding one
Many thanks