Skip to content

Commit 10df8d2

Browse files
authored
Merge pull request #19452 from TheJonCallahan/docs-editor/intune-endpoints-1769464065
Update AFD Diag Tool with SYSTEM instruction
2 parents 34e2288 + aa7f05c commit 10df8d2

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

intune/intune-service/fundamentals/intune-endpoints.md

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,41 @@ Before running the script, ensure you have:
354354

355355
### Usage
356356

357-
Run the script from an Intune-managed device to test connectivity to the Intune network endpoints using Azure Front Door.
357+
Run the script from an Intune-managed device to test connectivity to the Intune network endpoints using Azure Front Door. The script can be run in the context of the logged-on user or as the Local System account (Device context).
358358

359-
Open **PowerShell** and use the following syntax:
359+
#### Script Execution
360360

361+
**Option 1: Run as Current User**
362+
363+
Open **PowerShell** as the current user, navigate to the directory containing the script and run with the following command:
364+
365+
```powershell
366+
.\Test-IntuneAFDConnectivity.ps1
367+
```
368+
369+
**Option 2: Run as System (Device Context)**
370+
371+
To test connectivity as the device itself, use [PsExec](/sysinternals/downloads/psexec) from [Microsoft Sysinternals](/sysinternals/downloads/pstools).
372+
373+
1. Download [PsExec](/sysinternals/downloads/psexec)
374+
375+
1. Open **PowerShell** as an Administrator. Navigate to the directory containing **PsExec**.
376+
377+
3. Run the following command to run the script as SYSTEM:
378+
379+
```powershell
380+
.\psexec.exe -accepteula -i -s powershell.exe
381+
```
382+
383+
1. In the new PowerShell window, navigate to the directory containing the script and run with the following command:
384+
385+
```powershell
386+
.\Test-IntuneAFDConnectivity.ps1
387+
```
388+
389+
### Options and Commands
390+
391+
Use the following options based on your environment:
361392

362393
|Cloud|Command|Notes|
363394
| -------- | -------- | -------- |

0 commit comments

Comments
 (0)