Azure-Samples / Azure-Samples/TestDeviceRegConnectivity

Stoops execution with Argument is NULL exception

オープン
#7 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
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 で問題を再現し、次に、Start-ScheduledTask が $Task を受け取る Test-DeviceRegConnectivity.ps1 の 26 行目を調べます。周辺の Register-ScheduledTask の処理を読み、返された値をスケジュールされたタスクの cmdlet の要件と比較します。接続テストが NULL 引数エラーなしで完了すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
powershell
領域
operating-systems
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。