mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-17 15:57: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`:
|
||||
|
||||
```powershell
|
||||
$ErrorActionPreference = "SilentlyContinue"
|
||||
# Load agent scripting object
|
||||
$AgentCfg = New-Object -ComObject AgentConfigManager.MgmtSvcCfg
|
||||
# Remove OMS Workspace
|
||||
$AgentCfg.RemoveCloudWorkspace($WorkspaceID)
|
||||
$AgentCfg.RemoveCloudWorkspace("WorkspaceID")
|
||||
# Reload the configuration and apply changes
|
||||
$AgentCfg.ReloadConfiguration()
|
||||
|
||||
```
|
||||
## Related topics
|
||||
- [Onboard Windows 10 devices](configure-endpoints.md)
|
||||
|
Loading…
x
Reference in New Issue
Block a user