So OS caption is already collect as part of Hardware inventory and there are even built-in report for OS details. Have you looked at them?
Running Script in SCCM
Hello, I am working with SCCM for the first time, and I've been tasked to run a powershell a script to gather information from machines across my company. I followed this tutorial (https://learn.microsoft.com/en-us/mem/configmgr/apps/deploy-use/create-deploy-scripts) and used one of the scripts suggested ("Write-Output (Get-WmiObject -Class Win32_operatingSystem).Caption") to make sure everything was working before executing the main script. However, after setting it up and approving it (in the Software Library), I tried to run the script in one of the device collections and it didn't run in any of hte devices (The SCCM clients are all Windows Servers). I have checked the client logs, but I didn't find any meaningful information. Since I'm not the responsible for SCCM here, I would like to get this sorted without messing around with too many configurations. Thank you in advance
Thank you for your answer. I will try to make my question more clear. I need to gather some information from the machines that I can only do using a powershell script (it is not the version of the OS). The machines are up and running and I can execute and confirm the execution of configuration baselines. All this machines have CM installed.
Sign in to comment