Forum Discussion
robmo
Apr 08, 2024Brass Contributor
Intune Win32 app detection method
Hi, I am attempting to create an Intune Win32 App package that will apply a custom theme to our computers. custom.theme and lockscreen.jpg get copied to C:\Windows\Resources\Themes. A folder na...
- Apr 09, 2024You should have something that writes to STDOUT; you can use Write-Output with the text you write to the log file... Detections work with something STDOUT and an Exit 0 for detected or Exit 1 (or higher) for not detected and start the installation.
robmo
Brass Contributor
The logging was really about debugging. If I'm confident this is working properly, I would be comfortable with removing the logging feature.
Apr 09, 2024
I always use Start-Transcript c:\temp\xyz.log at the top of the script (xyz is an example) and Stop-Transcript at the end. That way, you see the script's output like you would when running it in a console.
- robmoApr 09, 2024Brass ContributorThis is running during Autopilot pre-provision so there isn't anything to see at that stage.
Adding the write-output to my exits has fixed my issue.
Thank you very much for help out!
Rob- Apr 09, 2024Good to hear that it works, no problem!