Skip to content

Commit

Permalink
Separate the scripts in sections
Browse files Browse the repository at this point in the history
For better searchability.
Now a heading for the action of applying the scripts is needed.
  • Loading branch information
CarlosNihelton committed Oct 21, 2024
1 parent 2fe8b1f commit 6211dba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/howto/enforce-agent-startup-remotely-registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ to learn more. Those scripts run on a predefined schedule and if the detection s
key value that represents the enablement of the UP4W background agent startup task. The contents of both scripts are
presented below. **Make sure to save them encoded in UTF-8**, as required by Intune.

Detection script:
### Detection script

```powershell
$Path = "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\CanonicalGroupLimited.UbuntuPro_79rhkp1fndgsc\UbuntuProAutoStart"
Expand All @@ -64,7 +64,7 @@ Catch {
}
```

Remediation script:
### Remediation script

```powershell
$Path = "HKCU:\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\CanonicalGroupLimited.UbuntuPro_79rhkp1fndgsc\UbuntuProAutoStart"
Expand All @@ -84,6 +84,8 @@ try{
```

### Running the scripts with Intune

Access your organisation's [Intune Admin Center](https://intune.microsoft.com) and when logged in go to **Devices > Monitor > Manage Devices > Scripts and remediations**.
![Scripts and remediations option revealed in the Intune portal](./assets/intune-remediations.png).

Expand Down

0 comments on commit 6211dba

Please sign in to comment.