Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-IntuneWin32AppDetectionRuleScript.ps1 error in scriptcontent #41

Closed
uwefranke opened this issue Apr 28, 2022 · 2 comments
Closed

New-IntuneWin32AppDetectionRuleScript.ps1 error in scriptcontent #41

uwefranke opened this issue Apr 28, 2022 · 2 comments

Comments

@uwefranke
Copy link

error in scriptcontent (line 50)

that work at me
#$ScriptContent = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes([System.IO.File]::ReadAllBytes("$($ScriptFile)") -join [Environment]::NewLine)) $ScriptContent = [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes((Get-Content -Path "$($ScriptFile)" -Raw -Encoding UTF8)))

@mooock
Copy link

mooock commented Aug 30, 2022

Spend 4 hours troubleshooting this issue. didn't understand the intune log only showing numbers until i tried decoding the base64 output code. I can confirm this code also worked for me

@NickolajA
Copy link
Member

Thank you for reporting, I've made the changes required and they'll be released shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants