I'm need of a script that removes the packages which are in 'Waiting to install package' state from a Distribution point. Am getting error in reading -namespace syntax.
This is my code
$pkg = Get-WMIObject -Namespace Root\SMS\Site_<sitecode> -query "Select * from SMS_DistributionPoint where ServerNALPath like '%<name>%' and InstallStatus like 'Waiting to install package'"
Kindly help.
Thanks
Parameswaran Ramakrishnan