- [x] bug report -> please search issues before submitting
### Minimal steps to reproduce
> run the script and test the SCP
For every test, the DC is not recognized because the script do not know the DNS Name of the network.
### Any log messages given by the failure
>
### Expected/desired behavior
replace :
line 1138 `$DCName=""`
line 1139 `$DCTest=nltest /dsgetdc:`
with :
line 1138 `$DCName=""`
line 1139 `$DomainName=Get-NetConnectionProfile | Select-Object -ExpandProperty Name`
line 1140 `$DCTest=nltest /dsgetdc:$DomainName`
### OS and Version?
> Windows 11
### Versions
>
### Mention any other details that might be useful
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
This issue is for a: (mark with an
x)