Forum Discussion
AB21805
Apr 26, 2022Bronze Contributor
how to remove a wifi profile off a device
Hi all,
How do I remove a wifi profile off a device via intune? So its completely forgotten
- I think these options are correct, running it as system and no need for 64 bit since it's a netsh-thing 🙂
10 Replies
- Did that work out for you?
- AB21805Bronze ContributorHi Harm
This doesnt seem to have worked well I cant tell if its been deployed yet as I am unsure how to check the status of excluded groups for config profiles. I set it to exclude a group containing the test laptop like over an hour ago and the device has checked in with intune aswel several times. Is there a way via powershell to do this instead?- You could run a PowerShell script with this content, if you use the normal Scripts pane in Endpoint Manager it will only run once and remove the wireless profile you specify
netsh wlan delete profile name="SSID that you want to remove" i=*
Information:
C:\Users\HarmV> netsh wlan delete profile
One or more parameters for the command are not correct or missing.
Usage: delete profile [name=]<string> [[interface=]<string>]
Parameters:
Tag Value
name - Name of the profile to delete.
interface - Interface name.
Remarks:
Remove a wireless network profile from an interface or all interfaces.
Parameter name is required. It is the name of the profile to be deleted.
Parameter interface is optional. If it is given then the profile will
be deleted from specified interface only. If it is omitted then the
profile will be deleted from all the interfaces that have such a profile.
Profile name can have wildcard characters and multiple profiles with
matching name will be removed.
Examples:
delete profile name="Profile 1" interface="Wireless Network Connection"
delete profile name="Profile 1" i=*
- AB21805Bronze ContributorI have just set the test now I will let you know.
If you add a group to the Exclude asssignment, it should be removed after the next device sync I think? Not tested myself, but I think it should work based on Troubleshoot device profiles in Microsoft Intune | Microsoft Docs)