mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-18 00:07:23 +00:00
Merge pull request #8633 from kurtsarens/patch-27
Update configure-server-endpoints.md
This commit is contained in:
commit
1a9c96115d
@ -249,12 +249,14 @@ To offboard the Windows server, you can use either of the following methods:
|
|||||||
2. Open an elevated PowerShell and run the following command. Use the Workspace ID you obtained and replacing `WorkspaceID`:
|
2. Open an elevated PowerShell and run the following command. Use the Workspace ID you obtained and replacing `WorkspaceID`:
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
|
$ErrorActionPreference = "SilentlyContinue"
|
||||||
# Load agent scripting object
|
# Load agent scripting object
|
||||||
$AgentCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg
|
$AgentCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg
|
||||||
# Remove OMS Workspace
|
# Remove OMS Workspace
|
||||||
$AgentCfg.RemoveCloudWorkspace($WorkspaceID)
|
$AgentCfg.RemoveCloudWorkspace("WorkspaceID")
|
||||||
# Reload the configuration and apply changes
|
# Reload the configuration and apply changes
|
||||||
$AgentCfg.ReloadConfiguration()
|
$AgentCfg.ReloadConfiguration()
|
||||||
|
|
||||||
```
|
```
|
||||||
## Related topics
|
## Related topics
|
||||||
- [Onboard Windows 10 devices](configure-endpoints.md)
|
- [Onboard Windows 10 devices](configure-endpoints.md)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user