713 questions
0
votes
1
answer
86
views
How to write ROOT\ccm\SoftMgmtAgent CacheInfoEx entries with Powershell
When I try to write to the class CacheInfoEx, I'm getting the error at the bottom, even when trying to clone an existing entry. How can I write a new ciminstance to CacheInfoEx?
$className = "...
0
votes
1
answer
134
views
SCCM Task Sequence Continuation after Reboot
Trying to automate the application of the boot mitigations from the blacklotus vulnerability. Need to have either a task sequence or powershell script continue after a reboot, but remote users don't ...
0
votes
1
answer
190
views
Installing SCCM Package via Powershell? Not even Running?
I'm trying to execute a PowerShell script (EvolvenInstaller.ps1) that wraps a batch script, but it never installs correctly when deployed through SCCM. I've tested the script outside of SCCM, and it ...
0
votes
0
answers
148
views
SCCM Task Sequence - Powershell (Application Uninstall)
i have created a Task sequence to uninstall a Application via Powershell. i am not able to Find where the issue is. when i Deploy it in Test Device Collection. in Software Center Status shows ...
0
votes
1
answer
102
views
VBS Script - Silent Command Line [closed]
Can Any one please help me out this. i can run this command but Message pops up 'Yes' or 'No' in Command line. How i can pass through this in command line silently. I need this to put in SCCM Task ...
0
votes
1
answer
60
views
How to get list of exclusion files and folders on SCCM / MECM [closed]
I have a request for a report to get the list of Excluded files and folders / file types and processes of SCCM Antimalware Policy. I found a lot of information, but not those ones.
EDIT: sorry, can't ...
1
vote
0
answers
440
views
Using SCCM to force a reboot via powershell doesn't show the countdown
I'm trying to trigger the SCCM reboot countdown timer on a Windows machine using PowerShell. The countdown window appears as expected, but when the timer reaches 0, the system does not reboot. Instead,...
0
votes
1
answer
118
views
How do I remove an individual resource to a collection in SCCM (C#)
I am not well enough versed in the world of WMI to know what's going wrong, but it LOOKS like things should work but don't.
I was able to ADD a resource using the following code:
private void Add_SCCM(...
0
votes
1
answer
643
views
Unable to Get Deployment Status of Devices in SCCM via PowerShell
I have created a powershell script that checks a Deployment ID in sccm and then pulls all the members in the deployment and checks the deployment status for the members.
The script is able to pull the ...
0
votes
0
answers
59
views
Join v_GS_Installed_Software with v_configurationitems or v_UpdateInfo in SQL
I'm working with the v_GS_Installed_Software table to check the installed software on various machines. I want to join this table with v_configurationitems or v_UpdateInfo to access additional columns ...
0
votes
1
answer
110
views
I need a script for SCCM detection key to Match Value Data
/* I need a script SCCM detection key for match "Value Data" in "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" Without using "ValueName" Match "...
1
vote
2
answers
740
views
How does one read a registry value using SCCM
We would like to be able to detect if a user is running either 32-Bit or 64-bit Outlook.
Based on the returned value, we'll be running the appropriate script.
Using SCCM, how can we read the value &...
0
votes
0
answers
152
views
Powershell script to uninstall a software when running via SCCM does not identify the registry keys of that software
I'm trying to uninstall a software using this code
$path = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{Product-cod-1}"
function Uninstall_SW {
Write-Host "Starting ...
0
votes
1
answer
420
views
Moving Applications in SCCM
new here but have been using the site a long time. I am trying to create a powershell script so i can automate the google chrome updates I do I am unable to get the application to create in the right ...
0
votes
1
answer
167
views
Registry Entries to Custom WMI class
i am hoping some one can help me with an issue that i am having. I am need to create a Custom WMI class in root/cmiv2 and add entries from the registry into to that custom class. Ideally i would like ...
0
votes
1
answer
214
views
Use case for integrating Chocolatey with SCCM
System Center Configuration Manager seems to have the features for publishing packaged applications so that employees of an enterprise can install applications from a central repository using the ...
0
votes
0
answers
1k
views
SCCM - WinPE - "Unable to download PXE variable file" in SMSTS.Log
I am having an issue in Windows PE when trying to build a Dell XPS 8960 via SCCM. The device PXE boots into the WinPE environment without issue, but then it stops before any GUI's are displayed and ...
0
votes
1
answer
130
views
Powershell SMS_CombinedDeviceResources gives an error message
I have an AD group with members. Now, I want to know on what computers each member is logged on. To do that, I created the following script:
$SCCMServer = "sccmserver"
$SCCMSiteCode ...
0
votes
1
answer
261
views
How can I get the MSI Property: Version value (as found in MECM's detection method rule) using Powershell?
Within MECM, when I setup a Detection Rule and I browse to the MSI file, it not only imports the Product Code, but also an MSI version number.
Using (Get-Item $msiPath).VersionInfo | fl, the output is ...
0
votes
0
answers
100
views
Dell BIOS Updates Script Freezes
I need to be able to update the BIOS on over 5,000 Dell computers when there is a critical BIOS update. I've messed with batch files and Powershell. This is the latest Powershell. When I run it, it ...
0
votes
0
answers
401
views
Initial patch install checking via SCCM query
I want to make a better query for Windows Server OS patching (2016 & 2019). The one listed below is what I wrote that my company currently uses. If a newly built servers OS install time is ...
0
votes
1
answer
140
views
XML root element missing in SCCM
I encountered a problem that caused the SCCM configuration manager console to stop displaying application information due to a XML corruption.
looked around a bit on the internet and found the ...
0
votes
2
answers
671
views
How to restart chrome/Edge without user involved
My company has Chrome and Edge installed on some of our development servers for our dev team to use with their processes. In both cases, patches are automatically pushed to the browsers, however they ...
0
votes
1
answer
717
views
Get SCCM Deployment's Tab properties using PowerShelll
I am trying to get an Application Deployment's all tab properties using PowerShell command. Please see below image to get more idea about what I am talking about.
[
Here, I need each setting of each ...
1
vote
1
answer
503
views
Powershell Get-Process behavior - Can't find process under certain conditions
I am working on a powershell script that looks for a defined process in order to stop it (and restart it, if it was running before) in order to perform an update of that software.
We use the Microsoft ...
0
votes
0
answers
97
views
Can I run an separate instance of PowerShell from a Config Manager (SCCM) detection script?
As part of my detection PowerShell script I'm running AdobeUninstaller.exe, their console app that lists installed Creative Cloud software. To get the output from that app I have to redirect the ...
0
votes
0
answers
91
views
Try catch block doesn't hit during Task Sequence
I have a peculiar situation where the try catch block doesn't hit in the script I have made.
Start-Transcript -Path C:\Trans.txt -Force -IncludeInvocationHeader
try
{
$CDBJson = Get-Content -Path &...
0
votes
1
answer
287
views
Command net localgroup Administrateurs $user /DELETE works as a script in MCM but not in Intune, why?
I'm running a remediation script with this command:
net localgroup Administrateurs $user /DELETE
The script runs fine as a standalone PowerShell script AND as a script executed in MCM (SCCM) but when ...
0
votes
1
answer
2k
views
CMPivot to get registry keys
I'm trying to get the content of regirty keys using CMPivot.
I'm able to it, th issue is when i display the information it creates new column whhile the names are the same (it adds 1 at the end of the ...
0
votes
1
answer
194
views
Add-CMScriptDeploymentType issue in SCCM
So, I'm trying to create a script to help my team with the creation of application packages, so that things are a little quicker, and more cookie cutter with fewer little differences between ...
0
votes
0
answers
2k
views
SCCM uninstall rule is in conflict with install rule
Application A is originally installed by a deployment targeting a collection (Collection A) that populates based off a query.
I have Device A sitting in an AD Group called 'Uninstall Application A'.
...
0
votes
1
answer
150
views
Not able to add users from csv file in to Remote desktop Users group
I am able to import .csv file and its working for me without any error, but not able to add the users in Remote Desktop Users list. Can any one know the solution.
Import-csv -Path "C:\Users\...
-1
votes
1
answer
415
views
Deploying Virtualbox via SCCM
Im going to deploy Virtualbox via SCCM and Im curious if there is still necessity to push oracle certificate with certuil (separate from instalation)?
If so, how did u get and manage certificate?
I ...
0
votes
1
answer
1k
views
Powershell SCCM - query distribution point config to get if pxe enable unknown computer support etc
I've made the following script :
cls
$siteCode = 'AB1'
$serverName = 'S203S1'
# Query SCCM to find the specific Distribution Point
$dp = Get-CMDistributionPoint -SiteSystemServerName $serverName
$...
0
votes
0
answers
778
views
SCCM/MECM - Task Sequence - Run command "as a different account" issues
I'm here today to talk about a MECM task sequence I'm having a problem with.
Context:
The idea is to make the TS available in the software center so that the process can be launched by a user from his ...
0
votes
0
answers
103
views
Custom SCCM / MECM / ConfigMgr PowerShell script issue
The objective of this PowerShell script is to accept a SCCM / ConfigMgr DP Group as input, & output into .csv file, the list of all unique package IDs distributed to it.
ISSUE: It returns empty ...
1
vote
1
answer
285
views
WMI Query an Array which has an Object embedded
I am trying to write a PowerShell Script, which queries on a local Client the SCCM WMI Tree root\ccm\ClientSDK
we want to have the info was PostInstallaction an Application is using (Yes we know ...
0
votes
1
answer
308
views
SCCM client with dual windows boot on the same computer
On a hundred PCs, I deployed via SSCM a dual boot with two Windows:
Part 1:
Computer name "PC-Part1"
Windows 11
Domain1.local
10.0.0.0/8
SCCM Server site name "SCCM-1"
Part 2:
...
1
vote
2
answers
6k
views
"Not found" error when creating Driver Packages in SCCM/MECM
I am trying to import drivers and when I get to the part where I have to create a driver package I get an error that says "Not found" when I specify a network path (UNC) where Configuration ...
0
votes
1
answer
566
views
How can I silently deploy an MSI installation at the user level using the SCCM tool?
I have an MSI installer which supports only user level installation, how can I deploy that silently deploy to all the users using SCCM tool without user interaction?
0
votes
1
answer
777
views
How can I see the IP of whom accessed a system using CM Remote Control?
I was trying to check on the IP address of a mysterious remote session.
We are phasing out SCCM/MECM, and currently are unable to run reports and audit remote sessions.
I have checked Event Viewer in ...
0
votes
1
answer
2k
views
Getting SCCM task sequence status on a client machine
I'm creating a Windows VM in azure and want to execute a Powershell script to perform the following tasks:
install SCCM client
reboot, and SCCM task sequence will start in a few minutes.
wait for the ...
0
votes
2
answers
846
views
How to integrate a REST API with SCCM for ServiceNow to consume it?
I created my rest api with node and typescript, but since I have no knowledge of SCCM, I need to understand if it would be possible to make this integration for ServiceNow to consume this api.
I need ...
0
votes
1
answer
562
views
Configuration Manager Configuration Baseline evaluation schedule in the deployment vs client settings
How does the Configuration Manager Configuration Baseline evaluation schedule in the deployment settings work in conjunction with the evaluation schedule in the client settings? Does the evaluation ...
0
votes
1
answer
118
views
Msiexec a MSI package with passive got different results in administrator command prompt and normal command prompt
I tried to make up wxs to build a MSI package. The target is to passive install in Standard User account. This MSI copies files, writes HKCU registry, creates folder under %LOCALAPPDATA% and creates a ...
0
votes
1
answer
163
views
How does an add-in for SCCM get the commandline parameter?
I am troubleshooting an in-house PowerShell script (compiled in PowerShell Studio) that is used to schedule distributing SCCM package content to our DPs (SCCM 2012). The script has a parameter for $...
0
votes
0
answers
510
views
Set-ciminstance failing in powershell script task sequence
Running a server build task sequence in SCCM and encountering the following error when a configuration script runs to assign a different drive letter to one of the drives.
The command being ran from ...
0
votes
1
answer
828
views
Connect to SCCM server from REST API in C#
This is my first question here. I'm new to SCCM connections so I really don't know what is going on. I have my references to the following assemblies:
using Microsoft.ConfigurationManagement....
0
votes
0
answers
468
views
Powershell script to install all the updates from MS software center
I have a machine (windows 2012 R2) with MECM/SCCM client (MS software center).
Is there any powershell script which I could run on my machine to install all the avaiable software patches/updates ?
1
vote
0
answers
23
views
Unable to cast object of type 'System.Management.Automation.PSObject' to type 'System.Array' [duplicate]
Using the SCClient Powershell module, I'm trying to install an individual update from a list of updates in the Software Center.
I can create a variable like this:
$ids = Get-SCCLientPendingUpdate *...