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
Windows for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Other
2 answers
Sort by: Most helpful
-
-
XinGuo-MSFT 22,231 Reputation points
2024-02-13T02:11:44.9666667+00:00 Hi,
I can run your scripts successfully. How did the Run details show on your end?