sccm.haas.se
16Feb/170

List all subfolders, but only one level deep in a directory.

Posted by mathias

I’m just putting this here because I was so satisfied that I could do this with one line in Powershell instead of a whole lot more in DOS or VBScript.

List all subfolders in a folder with a depth of one (all folders only in the first level of a directly) to a file and sort everything nicely. You need Powershell v5 or you’ll get an error from some of the parameters.

Get-ChildItem -Directory -Path "C:\temp" -Recurse -Depth 1 -name | Sort-Object |fl | Out-File -FilePath "c:\temp\test.txt"
12Jun/142

Install .Net 3.5 as a feature from the task sequence

Posted by mathias

Sometimes what seems so easy turns out to be a little bit more complicated.

If you install the MDT-extensions for SCCM 2012 you will get the excellent option to add roles and features. It turns out that only .Net Framework 4.5 will actually install and not 3.5 if you’re installing Windows 8 / Server 2012. The media is on the source media (*.iso/DVD) but not a part of Windows by default.

Install Roles

» Continue Reading

16Oct/1317

SCCM Task Sequence Hangs

Posted by mathias

A lot of people use a Task Sequence to deploy applications after the Operating System has been installed.  A customer of mine had an incident where the TS hung  because Hotfix KB2761938 wasn’t installed on the clients. This stopped the clients from  receiving applications. Except for installing the hotfix on the clients there’s a pretty easy fix for this.

But first, here are the symptoms of a hung Task Sequence:

.ExecMgr_OnContentAvailable invalid request GUID handle

» Continue Reading

10Sep/130

Running a User Discovery for ONE user…

Posted by mathias

Isn’t it annoying when a customer has a “bad” AD-structure that makes it impossible to run user-discovery or system discovery often enough? By “bad” AD-structure I mean putting computers or users for an entire organization in one OU for example. The drawback of not being able to run User/System-discovery often enough is that users will have to wait for their applications after the computer is installed since SCCM doesn’t know about the group memberships until the discovery tasks are run.

I’ve come up with a method for inventoring only one computer/user. In this first post of two I’ll describe the process for users, which is useful if you run user-based installations. » Continue Reading

9Sep/130

Report of all Packages in a Folder

Posted by mathias

Yes, you can place the cursor on the Package Folder in the SCCM-console and select
Show->Export List to export all packages in a folder. BUT. There seems to be a limit to maximum 500 packages so you will not get all packages in your folder if you have a lot of them. AND maybe someone in management want the report as a webreport too… So here are the three things you need to do.

1. Create the Report. Easy, I’ve got it here for you:

SELECT v_Package.PackageID, v_Package.Name, vSMS_Folders.Name AS Expr1
FROM v_Package INNER JOIN
 vFolderMembers ON v_Package.PackageID = vFolderMembers.InstanceKey INNER JOIN
 vSMS_Folders ON vFolderMembers.ContainerNodeID = vSMS_Folders.ContainerNodeID
WHERE (vSMS_Folders.Name LIKE @Foldername)
 » Continue Reading
30Aug/132

Bitlocker Status Report

Posted by mathias

With Windows 7, creating a report in SCCM for all your computers is really simple. First you need to expand your sms_def.mof file to gather the Bitlocker status data that is stored in WMI on your clients.

Insert this at the bottom of
%Program Files%\Microsoft Configuration Manager\inboxes\clifiles.src\hinv\sms_def.mof 

[ SMS_Report (TRUE),
 » Continue Reading
7Feb/110

It’s alive! (The blog…)

Posted by mathias

Welcome to my blog about Microsoft System Center Configuration Manager 2007 and 2012 ! This will be my diary for my SCCM endeavours. My name is Mathias Haas and I work as a consultant for the Sweden based firm Connecta AB. I am also a teacher at Addskills AB in SCCM 2007. I’ve been thinking of starting a blog for years now and finally, I’ve gotten to it.

I hope you’ll like it.

Tagged as: No Comments