Skip to content

Commit 49843e7

Browse files
committed
Update WS1 deployment script docs.
1 parent 0afaabe commit 49843e7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,23 @@ 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 “Poweshell” 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
New-Item -Path "HKLM:\Software\Policies\Smallstep"
7676
Set-ItemProperty -Path "HKLM:\Software\Policies\Smallstep" -Name "TeamSlug" -Value "<team-id>"
77-
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"
77+
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"
7878
```
7979

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

8590
### 4. Deploy and configure the Smallstep Agent
8691

0 commit comments

Comments
 (0)