Azure-Samples / Azure-Samples/DSRegTool
Function VerifySCP
- Dominant language
- PowerShell
- Stars
- 82
- Forks
- 27
- PR merge metrics
- No merged PRs in 30d
Description
> Please provide us with the following information:
> ---------------------------------------------------------------
### This issue is for a: (mark with an `x`)
```
- [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.
Contributor guide
Assessment
This issue has not been assessed yet.