Azure-Samples / Azure-Samples/TestDeviceRegConnectivity

Stoops execution with Argument is NULL exception

Đang mở
#7 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PowerShell
Star
35
Fork
14
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

> 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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự cố trên một PC Windows 11 Enterprise đã tham gia Azure AD, sau đó kiểm tra Test-DeviceRegConnectivity.ps1 tại dòng 26, nơi Start-ScheduledTask nhận $Task. Đọc phần xử lý Register-ScheduledTask xung quanh đó và so sánh giá trị được trả về với các yêu cầu của cmdlet tác vụ đã lập lịch. Hoàn tất khi bài kiểm tra kết nối hoàn thành mà không có lỗi đối số NULL.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
powershell
Lĩnh vực
operating-systems
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.