Azure-Samples / Azure-Samples/TestDeviceRegConnectivity
Stoops execution with Argument is NULL exception
- 主要语言
- PowerShell
- 星标
- 35
- 派生
- 14
- PR 合并指标
- 30 天内没有已合并 PR
描述
> 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
> run the script on a Win11 PC jopined to Azure AD
### Any log messages given by the failure
> =====================================================
> Test Device Registration Connectivity
> =====================================================
>
>Test-DeviceRegConnectivity log file has been created.
>
>Testing Internet Connectivity...
>Checking winHTTP proxy settings...
> Access Type : PROXY
>Proxy Server List : DirectAccess (kein Proxyserver).
>Proxy Bypass List :
>
>Checking winInet proxy settings...
> Proxy Enabled : No
>Proxy Server List :
>Proxy Bypass List :
> AutoConfigURL :
>
>Testing Device Registration Endpoints...
>Testing connection via winHTTP proxy...
>Start-ScheduledTask : Das Argument für den Parameter "InputObject" kann nicht überprüft werden. Das Argument ist NULL
>oder leer. Geben Sie ein Argument an, das nicht NULL oder leer ist, und führen Sie den Befehl erneut aus.
>In C:\Users\matzensv\Downloads\TestDeviceRegConnectivity-main
>(1)\TestDeviceRegConnectivity-main\Test-DeviceRegConnectivity.ps1:26 Zeichen:13
>+ $Task | Start-ScheduledTask -AsJob -ErrorAction Stop | Wait-Job | ...
>+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> + CategoryInfo : InvalidData: (:) [Start-ScheduledTask], ParameterBindingValidationException
> + FullyQualifiedErrorId : ParameterArgumentValidationError,Start-ScheduledTask
### Expected/desired behavior
> running smoothly without erropr messages
### OS and Version?
> Windows 11 Enterprise
### Versions
> what versions?
### Mention any other details that might be useful
> Register-ScheduledTask seems to simply return NULL in this case
> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.
贡献指南
调研方向
首先,在已加入 Azure AD 的 Windows 11 Enterprise PC 上重现该问题,然后检查 Test-DeviceRegConnectivity.ps1 的第 26 行,其中 Start-ScheduledTask 接收 $Task。阅读周围的 Register-ScheduledTask 处理,并将返回值与计划任务 cmdlet 的要求进行比较。当连接测试完成且不再出现 NULL-argument 错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- powershell
- 领域
- operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100