Merge pull request #8633 from kurtsarens/patch-27

Update configure-server-endpoints.md
This commit is contained in:
Denise Vangel-MSFT 2020-11-13 09:22:00 -08:00 committed by GitHub
commit 1a9c96115d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)