Azure-Samples / Azure-Samples/DSRegTool
winHTTP and winInet section fails and cannot continue
- 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
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```
### Minimal steps to reproduce
>
**Dsregcmd section**
Using `dsregcmd /status` output:
```
AzureAdJoined : NO
EnterpriseJoined : NO
DomainJoined : YES
```
**DSRegtool Section**
On a hybrid joined device that is not connecting to AAD correctly.
execute: `.\DSRegtool.ps1`
Enter `3` as the command.
At `winHTTP` and `winInet` section script fails and cannot continue.
### Any log messages given by the failure
>
```
Start-ScheduledTask: C:\Users\alex\Downloads\DSRegTool-main\DSRegTool.ps1:1908
Line |
1908 | $Task | Start-ScheduledTask -AsJob -ErrorAction Stop | Wait-Job | …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot validate argument on parameter 'InputObject'. The argument is null or empty. Provide an argument that is
| not null or empty, and then try the command again.
```
### Expected/desired behavior
> Script should continue after the section in which it fails.
### OS and Version?
> Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
OS Name: Microsoft Windows 11 Enterprise
OS Version: 10.0.22621 N/A Build 22621
### Versions
> DSRegTool V3.7
### 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.