Skip to content

Commit ede2630

Browse files
authored
Merge pull request #461 from smallstep/josh/ws1-script-assignment
Workspace ONE script assignment
2 parents 349115e + 325d03d commit ede2630

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

tutorials/connect-intune-to-smallstep.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
updated_at: November 06, 2025
2+
updated_at: November 18, 2025
33
title: Connect Intune to Smallstep
44
html_title: Connect Microsoft Intune to Smallstep Tutorial
55
description: Connect Microsoft Intune to Smallstep for Windows device identity. Step-by-step guide for enterprise device trust with MDM integration.
@@ -132,7 +132,7 @@ In this step, we’ll tie everything together by creating Windows policy to enro
132132
3. Download the Intermediate Certificate
133133
4. Copy and temporarily save the **SCEP server URL** shown on the page, eg. `https://agents.example.ca.smallstep.com/scep/integration-intune-b967f507`
134134
2. Visit [Team Settings](https://smallstep.com/app/?next=/settings/team)
135-
1. Copy and temporarily save the **Team ID** value
135+
1. Copy and temporarily save the **Team Name** and **Team ID** values
136136

137137
### 6. Create a Policy in Intune
138138

@@ -161,11 +161,11 @@ In this step, we’ll tie everything together by creating Windows policy to enro
161161
2. Team Slug: (paste the Team ID you saved earlier)
162162
3. Certificate URI:
163163
```
164-
capi:store-location=machine;store=My;issuer=Smallstep (<TeamSlug>) Agents Intermediate CA;cn=step-agent-bootstrap
164+
capi:store-location=machine;store=My;issuer=Smallstep (<team-name>) Agents Intermediate CA;cn=step-agent-bootstrap
165165
```
166-
Replace `<TeamSlug>` in the “Certificate URI” with your team’s slug.
166+
Replace `<team-name>` in the “Certificate URI” with your full team name.
167167
If your team was created before October, 2024,
168-
your issuer CA may have a common name without the team slug ("Smallstep Agents Intermediate CA").
168+
your issuer CA may have a common name without the team name ("Smallstep Agents Intermediate CA").
169169
Not sure? Check your [Authority list](https://smallstep.com/app/?next=/cm/authorities).
170170
4. Leave the other settings as is.
171171
5. Choose “OK”

tutorials/connect-workspace-one-to-smallstep.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Within a few minutes after adding the connection, you should see all of your Wor
6969
2. Choose **Add** and then **Windows**
7070
1. In the General tab, provide a name for the script, such as “Smallstep Agent Enrollment”
7171
2. On the Details tab, ensure the **Language** is “Powershell” and the **Execution Context & Privileges** is “System Context”
72-
3. Use the following snippet as the **Code**, making sure to replace `<team-id>` with the Team ID value you copied from the Smallstep UI earlier.
72+
3. Use the following snippet as the **Code**, making sure to replace `<team-id>` with the Team ID value you copied from the Smallstep UI earlier. `<team-name>` should be replaced with your full Team name shown in the Smallstep dashboard.
7373

7474
```xml
7575
$RegistryPath = "HKLM:\Software\Policies\Smallstep"
@@ -79,13 +79,18 @@ Within a few minutes after adding the connection, you should see all of your Wor
7979
}
8080

8181
Set-ItemProperty -Path "HKLM:\Software\Policies\Smallstep" -Name "TeamSlug" -Value "<team-id>"
82-
Set-ItemProperty -Path "HKLM:\Software\Policies\Smallstep" -Name "Certificate" -Value "capi:store-location=machine;store=My;issuer=Smallstep (<team-id>) Agents Intermediate CA;cn=$env:DEVICE_ID"
82+
Set-ItemProperty -Path "HKLM:\Software\Policies\Smallstep" -Name "Certificate" -Value "capi:store-location=machine;store=My;issuer=Smallstep (<team-name>) Agents Intermediate CA;cn=$env:DEVICE_ID"
8383
```
8484

8585
If your team was created before October, 2024,
8686
your issuer CA may have a common name without the team slug ("Smallstep Agents Intermediate CA").
8787
Not sure? Check your [Authority list](https://smallstep.com/app/?next=/cm/authorities).
88-
4. In the Variables tab, click **Add**. Set the variable **Key** to `DEVICE_ID` and the variable **Value** to `{DeviceUuId}`
88+
4. In the Variables tab, click **Add**. Set the variable **Key** to `DEVICE_ID` and the variable **Value** to `{DeviceUuId}`
89+
5. Click **Save** to save the script.
90+
6. Select the newly created script and click the **Assign** button.
91+
7. Name the assignment as desired and select the appropriate Smart Group. Click **Next**.
92+
8. For **Deployment**, select "Run Once Immediately" for the **Triggers**. Click **Add**.
93+
9. Click **Save and Publish**. Click **Publish** on the additional prompt if one is shown.
8994

9095
### 4. Deploy and configure the Smallstep Agent
9196

0 commit comments

Comments
 (0)