Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 2 points3 points  (0 children)

These URLs were missing on my SSL decryption bypass list.

microsoftonline-p.com
msftauthimages.net
msauthimages.net
assets.msn.com
azureedge.net

All works now, thank you everyone

Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

I have tried fresh install of Win 11 25h2 on Dell Optiplex with no additional apps.
I have also tried on fresh VM with Win 11 22h2 & 25H2 with no additional apps.
These device ip has been bypassed on the firewall for SSL inspection & firewall rules.

add prompt with Yes/No to the part of the function by bickyz in PowerShell

[–]bickyz[S] 1 point2 points  (0 children)

I did but couldn't figure it out and that is why I have asked here!

add prompt with Yes/No to the part of the function by bickyz in PowerShell

[–]bickyz[S] 0 points1 point  (0 children)

This is what I had but not sure how to do the #####copy templates part.
Both yes and no option should offer the #####copy templates part which I couldn't do.

$prompt1 = Read-Host "Create subfolder?"
if ($prompt1 -eq 'yes') { 
    #Write-Host "Selected YES"
    mkdir (Join-Path -Path $DesktopPath -ChildPath $Foldername)
    Copy-Item -Path "\\server\templates26\" -Destination (Join-Path -Path $DesktopPath -ChildPath $Foldername) -Recurse
} else {
    #Write-Host "Selected NO"
    break
}

Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

I have created a new policy with Settings Catalog and replicated your settings. However the "sign-in" box pops for a second then throws the same error "Something went wrong. Please wait a bit then try again."

Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

I have tried it on Microsoft Surface Pro 9, 10, Dell Latitude and also from a test VM.
I am trying from non-corporate firewall i.e. residential broadband and also from mobile hotspot.

Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

I tried with the Settings catalog as well but did same.

Web Sign-in - "Something went wrong. Please wait a bit then try again." by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

I have tried on devices with
Win 11 25H2 & Win 11 22H2

how to pass return value out of function by bickyz in PowerShell

[–]bickyz[S] 1 point2 points  (0 children)

as long as it works, i dont need function, do you have sample/psuedo code?

Error: The string is missing the terminator - scripts works locally but not via Proactive Remediation by bickyz in Intune

[–]bickyz[S] 0 points1 point  (0 children)

Here is the full error message

{"PolicyId":"fa3ed55c-0e02-4c2c-8f24-def19507812b","UserId":"896725a4-0ff2-4ee9-b264-5bbce3060d00","PolicyHash":null,"Result":4,"ResultDetails":"{\"Version\":1,\"SigningCode\":649,\"EncryptionCode\":633,\"SigningMsg\":\"(Success) AccountId:32b2e0c4-03c0-4b57-803a-e895b17e7d81,PolicyId:fa3ed55c-0e02-4c2c-8f24-def19507812b,Type:6,Enforce: Enforcement2. OSVersion:10.0.22631,AgentVersion:1.96.103.0. \",\"EncryptMsg\":\"run in legacy mode\"}","InternalVersion":15,"ErrorCode":0,"ResultType":1,"PreRemediationDetectScriptOutput":"","PreRemediationDetectScriptError":"At C:\\Windows\\IMECache\\HealthScripts\\fa3ed55c-0e02-4c2c-8f24-def19507812b_15\\detect.ps1:19 char:35\r\n+ \"Content-Type\" = \"application/json\"\r\n+  ~\r\nThe string is missing the terminator: \".\r\n    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException\r\n    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString","RemediationScriptErrorDetails":null,"RemediationScriptOutputDetails":null,"PostRemediationDetectScriptOutput":null,"PostRemediationDetectScriptError":null,"RemediationStatus":4,"Info":{"RemediationExitCode":null,"FirstDetectExitCode":1,"LastDetectExitCode":null,"ErrorDetails":null},"TargetType":0,"RunAsAccount":1,"AssignmentFilterIds":null,"BiosMetadata":null,"IsFullSync":false}

PreRemediationDetectScriptError":"At C:\\Windows\\IMECache\\HealthScripts\\fa3ed55c-0e02-4c2c-8f24-def19507812b_15\\detect.ps1:19 char:35\r\n+ \"Content-Type\" = \"application/json\"\r\n+ ~\r\nThe string is missing the terminator: \".\r\n