{"id":7802,"date":"2024-03-20T06:00:13","date_gmt":"2024-03-20T06:00:13","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7802"},"modified":"2024-03-20T06:00:16","modified_gmt":"2024-03-20T06:00:16","slug":"stop-continue-connecting-on-wifi","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/stop-continue-connecting-on-wifi","title":{"rendered":"Stop &#8220;Continue connecting?&#8221; on WiFi"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/03\/image-11.png\"><img loading=\"lazy\" decoding=\"async\" width=\"368\" height=\"286\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/03\/image-11.png\" alt=\"\" class=\"wp-image-7803 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/03\/image-11.png 368w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2024\/03\/image-11-300x233.png 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/a><\/figure>\n\n\n\n<p>Issue was the old expired Certificates were on the Personal store , removing the old ones fixed this<\/p>\n\n\n\n<p>You can automate this in Intune below <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#=============================================================================================================================\r\n#\r\n# Script Name:     Detect_Expired_Issuer_Certificates.ps1\r\n# Description:     Detect expired certificates issued by \"CN=&lt;your CA here>\" in either Machine\r\n#                  or User certificate store\r\n# Notes:           Change the value of the variable $strMatch from \"CN=&lt;your CA here>\" to \"CN=...\"\r\n#                  For testing purposes the value of the variable $expiringDays can be changed to a positive integer\r\n#                  Don't change the $results variable\r\n#\r\n#=============================================================================================================================\r\n\r\n# Define Variables\r\n$results = @()\r\n$expiringDays = 0\r\n$strMatch = \"CN=&lt;your CA here>\"\r\n\r\ntry\r\n{\r\n    $results = @(Get-ChildItem -Path Cert:\\LocalMachine\\My -Recurse -ExpiringInDays $expiringDays | where {$_.Issuer -match $strMatch})\r\n    $results += @(Get-ChildItem -Path Cert:\\CurrentUser\\My -Recurse -ExpiringInDays $expiringDays | where {$_.Issuer -match $strMatch}) \r\n    if (($results -ne $null)){\r\n        #Below necessary for Intune as of 10\/2019 will only remediate Exit Code 1\r\n        Write-Host \"Match\"\r\n        Return $results.count\r\n        exit 1\r\n    }\r\n    else{\r\n        #No matching certificates, do not remediate\r\n        Write-Host \"No_Match\"        \r\n        exit 0\r\n    }   \r\n}\r\ncatch{\r\n    $errMsg = $_.Exception.Message\r\n    Write-Error $errMsg\r\n    exit 1\r\n}<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">#=============================================================================================================================\r\n#\r\n# Script Name:     Remediate_Expired_Issuer_Certificates.ps1\r\n# Description:     Raise a Toast Notification if expired certificates issued by \"CN=...\"\r\n#                  to user or machine on the machine where detection script found them. No remediation action besides\r\n#                  the Toast is taken.\r\n# Notes:           Change the values of the variables $Title and $msgText\r\n#\r\n#=============================================================================================================================\r\n\r\n## Raise toast to have user contact whoever is specified in the $msgText\r\n\r\n# Define Variables\r\n$delExpCert = 0\r\n$Title = \"Title\"\r\n$msgText = \"message\"\r\n\r\n# Main script\r\n[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null\r\n[Windows.UI.Notifications.ToastNotification, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null\r\n[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null\r\n\r\n$APP_ID = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe'\r\n\r\n$template = @\"\r\n&lt;toast>\r\n    &lt;visual>\r\n        &lt;binding template=\"ToastText02\">\r\n            &lt;text id=\"1\">$Title&lt;\/text>\r\n            &lt;text id=\"2\">$msgText&lt;\/text>\r\n        &lt;\/binding>\r\n    &lt;\/visual>\r\n&lt;\/toast>\r\n\"@\r\n\r\n$xml = New-Object Windows.Data.Xml.Dom.XmlDocument\r\n$xml.LoadXml($template)\r\n$toast = New-Object Windows.UI.Notifications.ToastNotification $xml\r\n[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($APP_ID).Show($toast)<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Issue was the old expired Certificates were on the Personal store , removing the old ones fixed this You can automate this in Intune below<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7802","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7802"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7802\/revisions"}],"predecessor-version":[{"id":7804,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7802\/revisions\/7804"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}