I want to install particular package on the server via powershell.
Get-WmiObject -Namespace ROOT\ccm\ClientSDK -Class CCM_Application -ComputerName Y31056 | Select-Object AllowedActions, Fullname
And i can list which software are installed or not installed on the server. So i want to install only specific package on the software center.
AllowedActions Fullname
-------------- --------
{Install} CMTrace
{Install} SCCMpackageV1
{Install} SQL Server 2014 SP2
I want run the script to install the SCCMpackageV1 via powershell, but little bit confused how to achieve it.
$SoftwareApp = Get-WmiObject -Namespace ROOT\ccm\ClientSDK -Class CCM_Application -ComputerName Y31056 | Select-Object AllowedActions, Fullname
$SoftwareApp.install.SCCMpackageV1
I've google it that simple install command should work, but i did not received any output. Software as well not installed.