Skip to content

winHTTP and winInet section fails and cannot continue #8

Description

@eptastic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions