System Center

SCCM-Installing Visual Studio Enterprise 2015

Hi All, last week I had a requirement from a customer to install Visual Studio 2015 with PowerShell option, automated for all their developers. So, I’ll share here the experience. 1- 1st, you need to create the adminfile.xml. This file will be used to customize the installation. To do this you need to run the installer (in my case vs_enterprise.exe) with /CreateAdminFile 2- once you have the xml file, open it on notepad and search for PowerShellToolsV1. where Selected=”no” change to Selected=”yes”. Note that i’m not talking about Yes, has to be yes. it is case sensitive. 3- the 3rd line, BundleCustomizations, change NoCacheOnlyMode, NoWeb, NoRefresh and SuppressRefreshPrompt to =”yes” (again, case sensitive) 4- open the xml via internet explorer, if IE cannot open or generates an error, there is a problem with the XML and the installation will fail 5- copy the xml file to a share folder (i’m…

SCCM-Running RBAC queries on SQL Mgmt

Hi All, SCCM 2012 R2 introduced the RBAC to reports, what I mean by that is that now, users will be only able to see what they have rights to see. This is done by the introduction of the @UserID parameter to the reports. This parameter is hidden, so you don’t even know that it is there. however, if you try to run a report query on a SQL Management Studio, it will not like. As workaround, you can change the @UserID for ‘disabled’ and it will not validate the security. More info at http://blogs.technet.com/b/configmgrdogs/archive/2014/07/14/creating-custom-rbac-enabled-reports-in-configmgr-2012-r2.aspx as you can imagine, it is really good, you can get any report query and change the @UserID for ‘disabled’ and test the query, or do the other way around, however, this is not good if you want really know what is returning is what it should return, is it? So, imagine an example: Query1:…

SCCM-Software Update Compliance taking long time

Hi All, have you ever wonder why the Software Update Compliance takes long time to report the correct date? often that I get this question from a customer that wants to know what the status just after a software update deployment, but when I mean just after, I mean just few minutes. there are lots of things that could cause the status not being showing correctly, like network, etc. that is outside ConfigMgr, but in this post, lets talk about the main one, state messages. When using SCCM 2012/2012 R2, the default detailed level setting when deployment a software update group is to report only success and errors messages. this is quite ok for most environments where you go to the deployment node and check things from there, but you’ll not get the compliance for each update. there are 3 options: all messages, only errors messages and the default one…

SCCM-Windows Update 6.2.x on Windows 10?

Hi All, I have been reviewing a report I did for a customer where all Windows 10 machines were reporting Windows Update Agent 6.2.x. what caused my customer to send few people on few windows 10 machines and try to troubleshoot windows update issues where it did not exist. of course, after couple of hours/day, they realise this was a data issue instead of their environment issue. When I started to review, I looked at my lab and I had the same. Executing a query on fn_rbac_UpdateScanStatus, I saw all my windows 10 machines also reporting Windows Update Agent 6.2.x So something was wrong. but why? 1st step was to check if the files on the client where the correct version. if you want to know where I discovered which file to look, click here. As you can see, the file was with the windows 10 version…so I checked Powershell…

MVP Summit – Hackaton

Hi All, during the MVP Summit, we had a nice work with the Product Team where the MVP group asked some features to be added to the product and that could be coded in a Week and that may be added to the project in a later version (as we hope those will make it) I have to say that we had great projects, in total 10 projects led by MVP’s and coded by Microsoft… Team 1 – Active Have you ever needed to know what machines are active? you need this, they delivered a way to see what machines are online, they integrated with Cortana and etc. I have to say, really great project Team 2 – Wizards Have you ever used the console to do stuff and needed to select the same option over and over? this is the “fix”. It will allow you to save the options…

SCCM-Compliance Setting Script error 0x87d00321

Hi All, When working with Compliance Settings, I normally end up using scripts and often, I get the error 0x87d00321. If you use CMTrace, you’ll see that the error is: The script execution has timed out. Source: System Center Configuration Manager —– Now, we need to understand how it works and how to change. The script timeout information is saved under the class SMS_SCI_ClientComp, Component Name Configuration Management Agent on a lazy property called ScriptExecutionTimeout. The default values is 60, it means that the script will be timed out after 60 seconds of execution. The value, can be seen when using the following powershell script  

  Now the trick part, how to change? As you can imagine, not that trick if you have PowerShell. The script below changes the default 60 seconds to 600 seconds,  

  if you want this behaviour to be changed or have…

SCCM-Installing a Updated version of the Console

Hi All, when you install SCCM for the 1st time, it will automatically install (if selected) the SCCM Console on the client, and this is great as there are many people out there that use the server instead of a remote console. Anyway, when you install an update, let’s say, CU1 for 2012 R2 SP1, it will again, automatically update the server and will allow you to create a package that you can deploy to a collection and update the remote consoles, same happen for the KB that Microsoft releases outside the CU style. So, let’s say that you have a collection, that is based on Hardware Inventory-> Installed Applications, so you know all machines that have the SCCM Console installed. When installing a new console, you need to wait the machine to submit a hardware inventory and after that, it will appear on the collection and get updated.. Now…

SCCM Automation with PowerShell – after the Webinar

Hi All, thanks everyone that joined me on the SCCM Automation with PowerShell – Software Updates Advanced. i hope everyone enjoyed and if you’re not able to view the recording, you can access it clicking here All scripts can be found here, they are in a zip format everyone entered in a draw to win a copy of my e-book PowerShell & SCCM, the winners have already been contacted and given the instructions to get their free book and they are: Jason R., Carlos I., Siddharth S. Thanks everyone, and see you in the next webinar.

Starting discussion: Intune or SCCM

Hi All, I’d like to start this post saying that this is my only opinion and may/may not be the same opinion as Microsoft or any other person and it is based on my experience working on a series companies over the years (from many sectors of the economy and from many countries) So, let’s start. I often get this question, Should we use Microsoft Intune or SCCM? and just few times, they say, should we integrate Intune with SCCM or use it stand alone? Before answering this question, we need to know a bit of the history. And let’s start with SCCM. SCCM born in 1994 as SMS (or System Management Systems) as the same says, it was a system created to manage systems and was created in a 4-6 years update cycle, what I mean by that is that Microsoft release a new version every 4 to 6…

SCCM Automation with PowerShell – after the Webinar

Hi All, thanks everyone that joined me on the SCCM Automation with PowerShell – back to basics webinar. 1st of all, i’d like to apologize for the audio and video issue that some of you had. We received less than 1% complain and we’re working to make sure this will not happen again. I also would like to apologize for the lack of time we had and we’re not able to run the FAQ as we had planned. Anyway, i hope everyone enjoyed and if you’re not able to view the recording, you can access it clicking here The PowerPoint and scripts can be found here, they are in a zip format I would also take this opportunity to answer some of the questions related to the webinar: 1-Can we make executable of this script? Yes, it is possible to create .exe file from a powershell file. a free solution…