CM 2012
36 Topicsupdating content of the application in SCCM using WMI
Hi, I wan to Call Update Content API on Application in Sccm using WMI Object. I tried with below code ManagementPath MgmtPath1 = new ManagementPath($"SMS_SoftwareUpdatesPackage.PackageID='{applicationID}'"); ManagementClass ProcessClass1 = new ManagementClass(Scope, MgmtPath1, null); ManagementObject managementObject = ProcessClass1.CreateInstance(); if (managementObject != null) { var inParams = managementObject.GetMethodParameters("AddUpdateContent"); inParams.Properties["ContentIDs"].Value = new UInt32[] { }; inParams.Properties["ContentSourcePath"].Value = new String[] { @"\\LocalHost\publish\7-Zip (x64)\16\4\" }; inParams.Properties["bRefreshDPs"].Value = false; ManagementBaseObject outParams1 = managementObject.InvokeMethod("AddUpdateContent", null, null); ///An Exception is thrown here } But it is throwing an Error "Invalid Method Param(s)" or "Not Found" Exception . Am I Missing here anything? what would be the best way to call it?402Views0likes1CommentApplying a second task sequence over a image via PXE or USB
Hi, I'm currently exploring offline builds(Via USB), Once the offline USB has been created and has proven to be successful is there a way to run a second task sequence via PXE or USB that wont overwrite the existing image we have applied (Second TS will contain joining the domain and software) The USB build has no network interaction, we had the idea of running a second task sequence (When a network connection is available) which would then join the device to the domain and complete the remaining tasks that require a network connection. I'm struggling to find a way to get the second TS to work as I keep getting the error message below: "Please ensure you are running this exe inside a properly configured Operating system deployment task sequence" No matter the task sequence we get the same error (Each TS seems to want to apply a OS) i'm not 100% sure if there is another option to create a TS without a boot image (Custom TS do not work as they cant be selected to create offline media or made available to be presented when using PXE) Any advice / help would be great.659Views0likes1CommentBest Practices for Enabling Active Directory Forest Discovery in SCCM
Hi All, We are going to enable the AD Forest Discovery in our Configuration Manager environment and before do that I wanted to make sure the best practices to doing that. I have below concerns when we enabling the AD forest discovery. appreciate the help on this. Can we enable only AD forest discovery and keep System discovery disable in the environment. What are the disadvantages of doing that? When we enabling AD forest discovery, when do we need to enable "automatic IP subnet boundary creation" and what are the disadvantages of not enabling that? Is it ok if I enable only "Automatic IP range boundary creation" without enabling "automatic IP subnet boundary"? When to enable "Publish the site to AD forest" and what are the disadvantages of not enabling it? Thanks in advance, Dilan858Views0likes2CommentsHow to Configure Reporting Service URL with Port 443
Hi All, I am in a process of implementing Configuration Manager with HTTPS. I am using Certificate authority to create PKI certificates. However, I am having question, How we could implement reporting services with https. I have seen couple article for how to configure https in reporting services with self sign certificate but I didn't see anything for how to configure the same certificate created in Certificate Authority. Appreciates if anyone can guide me on this. thanks in advance Dilan992Views0likes4CommentsUpgrade Windows 11 (Compliant Issue)
Hey, We want to upgrade from Windows 10 21H1 towards Windows 11 22H2 but SCCM is indicating that the workstation is compliant but nothing is installed. Upgrade from We are on SCCM 2211. The console shows that the updated is required Selected update Status SCCM console On forums I read that blank screen indicates that workstation is not properly connected to SUP but other updates are installing fluently. Compliancy Some forums indicated that registry keys can block upgrading but we don't have any registry keys that indicates that we have to stay on current version Any help is much appreciated Sincerely Christoph8.2KViews0likes13Commentsnon OSD task sequence will not run - stuck on "installing" (v.2211)
Good morning, I've recently taken over for our previous systems administrator who left the company abruptly and I'm still in the process of learning configmgr while trying to run the show here. We recently had an update to our HR system. I had deployed the new URL shortcut to all computers which went off without a hitch. However, now we've fully retired the old system and i'm trying to delete the old shortcut off of the desktops which is not working. I'm trying to use a 2 step task sequence to delete 2 files from the PC, the lnk file as well as the ICO file. - Troubleshooting I had tried the following on a few test machines. cmd /c del "c:\users\public\desktop\myhr (mfa).lnk" /F /Q cmd /c del "c:\users\public\desktop\myhr*.lnk" /F /Q cmd /c del "c:\users\public\desktop\myhr*.*" /F /Q while none of those worked, i setup a test and placed a file calledtest.txt underc:\temp ran the following cmd /c del c:\temp\test.txt /f /q cmd /c del /f /q c:\temp\test.txt after that, I opened up command prompt as admin, was able to delete everything i needed using the above commands... tried it with non admin, deleted everything out just fine. I went back to the TS and added creds to the TS to test, still stuck on "installing" after that i decided to try powershell (set with bypass as the execution policy) Remove-Item "C:\Users\Public\Desktop\MyHR (MFA).lnk" Still stuck on installing. Wrote a batch file, stuck it into a package, called to the package with the script within a task sequence and was able to delete the file.So i currently have a work around with a batch file, but i'd like to get the task sequences back if possible so i can quickly write PS and CMD steps for stuff like this. - Checked the following SMSTS.log - never updates and i have a feeling this is because it doesn't actually start the TS other machines - tried on some VM's as well as other desktops, had the same exact issue unsure of what else to check as this is new to me. Thanks in advance!Solved1.2KViews0likes2CommentsMigrated MDT database now PXE boot doesn't seem to be talking with it
Hi, I moved the MDT database from one server to another so I could upgrade it from SQL express 2012 to SQL express 2022. I've copied the database to the new location after installing SQL 2022, it has all the same user permissions and config. I then updated the database in the MDT share to the new location and I can browse it and enter new computers into the database fine. I updated the CustomSettings.ini and Bootstrap.ini to point to the new location however when I run the task sequence it doesn't look like it interacts with the MDT database at all. Is there something else I'm missing to update after the migration? do I need to recreated the WinPE boot images or task sequences at all? any help would be apricated on where next to look.389Views0likes0CommentsMicrosoft Patching is not working until User logon to the newly imaged device
Hi All, I have a customer that they have two separate SCCM and WSUS environments in the same domain and they use SCCM for OS imaging and WSUS for patch updates. The problem is end user hast to logon to the device after imaging the OS using SCCM to kick start the patching process from WSUS. My client's understanding is that it should work without user logon to the device since GPO targeted to all authenticated users. Please also note that the computer objects and other settings are working without any issues. I would appreciate if anyone come across such a behavior and there is any workaround that we can do kick start the patching regardless of user login or is this behavior by design? Thanks, Dilan535Views0likes0Comments