How to Unjoin a Device from a Network: Step-by-Step GuideRemoving (unjoining) a device from a network can be straightforward or require several administrative steps depending on the network type, device operating system, and the management tools in place. This guide covers common scenarios: home Wi‑Fi, workplace domain/Active Directory and Azure AD, mobile device management (MDM), routers, and cloud services. Each section explains why you might unjoin, preparatory checks, step‑by‑step instructions, and troubleshooting tips.
When and why you might unjoin a device
- Security: A lost or compromised device should be removed to prevent unauthorized access.
- Decommissioning: Replacing hardware or disposing of a device.
- Troubleshooting: Network issues sometimes require rejoining a network.
- Ownership changes: Device transferred to another user or department.
- Policy enforcement: Removing devices that no longer meet compliance or licensing requirements.
1) Unjoin a device from a home Wi‑Fi network
Preparation:
- Have the Wi‑Fi password and router admin credentials (if you plan to block/forget devices).
- Decide whether to simply “forget” the network on the device or block the device at the router level.
Unjoin (device-side):
- Windows ⁄11:
- Open Settings > Network & Internet > Wi‑Fi.
- Click “Manage known networks.”
- Select the network and click “Forget.”
- macOS:
- Open System Settings/Preferences > Network > Wi‑Fi > Advanced.
- Select the network in the Preferred Networks list and click “–” (minus) or “Remove.”
- iOS/iPadOS:
- Settings > Wi‑Fi. Tap the info (i) next to the network and choose “Forget This Network.”
- Android:
- Settings > Network & internet > Wi‑Fi. Long‑press the network and choose “Forget” (or tap gear icon then Forget).
Unjoin (router-side / block device):
- Log in to the router’s admin page (usually at 192.168.0.1, 192.168.1.1, or via the manufacturer app).
- Find connected devices (often under “Attached Devices,” “Client List,” or “LAN Status”).
- Identify the device by MAC address or hostname.
- Use “Block,” “Deny,” “Blacklist,” or create a MAC‑filter rule to prevent reconnection.
- Optionally change the Wi‑Fi password to force all devices to reauthenticate; share the new password only with allowed devices.
Troubleshooting:
- Device still connects: ensure it’s not using another saved network profile or guest network; clear saved profiles and reboot router.
- Device appears but is unknown: check MAC address vendor to identify manufacturer; change router SSID/password if concerned.
2) Unjoin a Windows device from an Active Directory domain
Preparation:
- Administrative access to the local machine and the domain (domain admin credentials may be needed).
- Back up important data and ensure you have local administrative credentials for the device after leaving the domain (domain accounts may lose sign‑in access).
Steps:
- Sign in locally with a user who has administrator rights on the device (not a domain account or use cached domain admin with local admin rights).
- Open Settings > System > About (Windows ⁄11) then click “Change settings” under “Device specifications” (or open Control Panel > System > Advanced system settings > Computer Name tab).
- Click “Change…” next to “To rename this computer or change its domain or workgroup, click Change.”
- Select “Workgroup” and enter a workgroup name (e.g., WORKGROUP) or leave default.
- When prompted, provide credentials of a domain account authorized to remove the computer from the domain.
- Restart the computer when prompted.
- After reboot, sign in with a local account. Remove any leftover domain profiles if desired (Settings > Accounts > Family & other users or use System Properties > Advanced > User Profiles > Settings).
Post‑unjoin checklist:
- Reconfigure local user accounts and permissions.
- Update group policy expectations — GPOs will no longer apply.
- Repoint network shares, printers, and scripts that used domain credentials.
- Remove the computer object from Active Directory (optional but recommended) via AD Users and Computers to avoid stale entries.
Troubleshooting:
- “Access denied” when leaving domain: ensure the account used is a domain admin or has permission to remove computers.
- Lost domain sign‑in after restart: have a local admin account created before unjoining.
3) Unjoin a device from Azure Active Directory (Azure AD)
Preparation:
- You’ll need either the user’s credentials (for self‑service unjoin) or admin rights in Azure AD (for remote device management).
- Back up local data if device is user’s primary machine.
Unjoin (device-side, Windows ⁄11):
- Settings > Accounts > Access work or school.
- Select the connected Azure AD account or MDM enrollment, click “Disconnect” (or “Info” then “Disconnect”).
- Confirm and follow prompts; you might need Azure AD credentials to confirm.
- Restart if prompted.
Unjoin (Azure AD portal – admin):
- Sign in to Microsoft Entra admin center (Azure portal).
- Go to Devices > All devices.
- Locate the device and choose “Delete” to remove it from Azure AD.
- Optionally, initiate a remote wipe or retire via Endpoint Manager if device is still online.
Post‑unjoin:
- Device will lose Azure AD conditional access and SSO to corporate resources.
- Revoke user tokens or reset passwords as needed.
Troubleshooting:
- “Disconnect” missing: device might be MDM‑enrolled; unenroll via Settings > Accounts > Access work or school > select the management profile > Remove. If blocked, check company portal app or contact IT.
4) Unjoin devices managed by Mobile Device Management (MDM)
Preparation:
- Identify MDM system (Intune, Jamf, VMware Workspace ONE, MobileIron, etc.).
- Decide whether to retire/wipe or just unenroll.
Unenroll (common patterns):
- User device:
- Look for the Company Portal or Management profile on the device.
- Use the app: open Company Portal > Devices > select device > Remove or Unenroll.
- On iOS: Settings > General > VPN & Device Management (or Profiles & Device Management) > select management profile > Remove Management (requires passcode).
- On Android: Settings > Security > Device admin apps (or Settings > Accounts) and revoke admin then uninstall Company Portal.
- Admin portal:
- Sign into the MDM console.
- Choose device(s) and select “Retire,” “Unenroll,” or “Wipe” depending on intent.
- Confirm. Many MDMs allow selective wipe to remove corporate data only.
Considerations:
- Retire vs Wipe: Retire removes corporate accounts and profiles; wipe resets device to factory state.
- Removing MDM can revoke access to corporate email, Wi‑Fi, and VPN profiles.
Troubleshooting:
- Cannot remove profile: device may be supervised/DEP enrolled; contact IT to release from supervision or use Apple Business Manager / automated device enrollment removal.
- Enrollment reappears: ensure device isn’t automatically re‑enrolling via zero‑touch enrollment or company provisioning.
5) Unjoin from a workgroup, peer network, or shared resource
Workgroup (Windows):
- Workgroup is the peer network model; to leave, change the computer’s name/domain settings to either a different workgroup or domain as described in the AD section.
- Removing shared folders: stop sharing folder (right‑click folder > Properties > Sharing > Advanced Sharing > uncheck “Share this folder”).
Network shares and NAS:
- Remove device access through NAS UI: delete user account, revoke SMB share permissions, or remove the device’s IP/MAC from allowed lists.
- For cloud‑synced shares (Dropbox, Google Drive, OneDrive): unlink the device in the account’s settings or web dashboard.
Printers and other resources:
- Remove device from print server or network printer allowed lists.
- On the device, remove the printer from Settings > Devices > Printers & scanners (Windows) or System Settings > Printers & Scanners (macOS).
6) Unjoin a device from corporate VPN or Zero Trust platform
VPN client:
- Remove VPN profiles from the client application or OS network settings.
- Revoke client certificates from the VPN server so the device cannot reconnect.
Zero Trust / Conditional Access:
- Remove the device from the trusted device list in your identity provider (IdP) or endpoint management portal.
- Revoke device-specific tokens and certificates.
7) Verifying the device is fully unjoined
- Check the device no longer appears in device lists (router, AD, Azure AD, MDM console).
- Attempt to authenticate using the removed credentials; authentication should fail or require re‑enrollment.
- Confirm group policies, SSO, or managed apps are no longer applied.
- Verify that shared resources (file shares, printers, internal websites) are inaccessible or require new credentials.
8) Best practices and security considerations
- Create local admin accounts before unjoining domain/AD to avoid losing access.
- Back up user data and export important configurations (VPN profiles, certificates).
- Revoke or rotate credentials and certificates associated with the device.
- Remove stale device objects from AD/Azure AD and inventory systems to maintain accurate asset records.
- If device was lost or stolen, perform a remote wipe and rotate keys/passwords immediately.
- Document the unjoin process for compliance/audit records.
9) Troubleshooting common problems
- Device still listed in directory after removal: delete the object from AD/Azure AD; replication delay may occur.
- Cannot sign in after leaving domain: sign in with a local account or use a local admin password reset tool.
- Device re‑enrolls automatically: check enrollment policies and zero‑touch configurations; disable auto‑enroll for that user/device.
- Network resources inaccessible after unjoin: ensure DNS and routing aren’t dependent on domain membership; reconfigure local settings if necessary.
10) Quick reference — commands and useful tips
- To remove a Windows machine from domain via command line (run as admin):
- Using PowerShell:
Remove-Computer -UnjoinDomaincredential (Get-Credential) -PassThru -Verbose -Restart
- Using PowerShell:
- To force removal of a computer object from Active Directory (run on a domain controller or AD admin machine):
- Use Active Directory Users and Computers console: locate computer object, right‑click > Delete.
- To locate devices on a router: check “Connected Devices” or run an nmap scan on your local network:
nmap -sP 192.168.1.0/24
If you tell me which specific environment you’re working with (home router brand, Windows/macOS/Linux, Active Directory vs Azure AD vs Intune, or a particular MDM), I’ll provide exact step‑by‑step instructions tailored to that setup.
Leave a Reply