I Made a tool again. This time I meet a problem in Application Packaging Project. Where we wanted to collect our applications we packed in one sorted folder place. So here is the application folder builder. It creates in this way:

Root folder\Vendor\AppName\AppVersion\Lang\

Under Lang folder it creates subfolders:

@Original_Media = Source original media
@Work_Files = Put your Installshield project
EXE = The Final media, we upload to SCCM site
MSI = The Final media, we upload to SCCM site

Download here: ApplicationFolderBuilder1.0.0.1


applicationFolderBuilder1 applicationFolderBuilder2 applicationFolderBuilder3 applicationFolderBuilder4 applicationFolderBuilder5 applicationFolderBuilder6 applicationFolderBuilder7 applicationFolderBuilder8


Source media will be pasted in the @Original_Media folder


You Can choose your own root folder under settings.


Hi there !

I hope everything is allright. Now it’s been a long time since I last wrote on the blog.
Yes, what have I done ? Yeah, I have worked hard in a migrate projects in a large company. Where I was one of many packaging engineers – to package 1200 applications. From an old Windows environment to a new one. Where I ran into a problem when we moved many computer object to an application group to another. Of course , we had a powershell script to do this work. But this was still a problem when you had a lot to do, for the moment . Therefore , I made a gui that less experienced powershell users could use, to help me move computer objects . This is the result :


1. Windows 7 or newer
2. RSAT-tool for windows 7 or 8, and enable the Active Directory powershell Module
3. Permission to  move Active Directory computer objects.

Download the tool here: MoveAdDevices1.0.3











New Features added to version 1.0.3:

Now you can select type of object you want to move from the Group. Devices or Users-objects




Hi, Emil here. Have you ever wonder howto connect to a configuration manager 2012 site from Powershell? Okay, follow the steps below to success:


  • SCCM 2012 Console
  • Powershell 3.0
  • Be a member of SCCM Site Administrators group

1. Install Required Stuff and add you to Sccm Site Admin group.

After you have installed you required stuff like Powershell 3.0 and SCCM 2012 Console on your client or server, you are ready to go to next steps.

2. Start the builtin Windows PowerShell Integrated Scripting Environment (ISE) as a SCCM-Site-administrator.

3. Load the Configuration Manager Module. Type and run following Line:

Import-Module ((Split-Path $env:SMS_ADMIN_UI_PATH) + "\ConfigurationManager.psd1")

4. After you imported the ConfigMgr Module. Now you can go to that psdrive with following line:

Set-Location -Path ((Get-PSDrive -PSProvider CMSite).Name + ":\")

5. Now you are ready to do some rocken roll with your Sccm Site. ex: Try following line, to see all cmdlets for Configuration Manager 2012.

Get-Command -Module ConfigurationManager

Isn’t that cool?

And Here some cool script you can put at beginning of your script, to validate if the configMgr Module is loaded or not. If not loaded – load the module. Else go to cmSite Drive.

# Load the Configuration Manager Module.</pre>
<code> If (!(Get-Module -Name ConfigurationManager))
Import-Module ((Split-Path $env:SMS_ADMIN_UI_PATH) + "\ConfigurationManager.psd1")
Set-Location -Path ((Get-PSDrive -PSProvider CMSite).Name + ":\")
Set-Location -Path ((Get-PSDrive -PSProvider CMSite).Name + ":\")
} # End Of script - Load the Configuration Manager Module.</code>


Here is some script to force a Sccm Client’s Machine Policy Cycle on remote client in a domain.

But first. You need to be sure you have enable the service ”Windows Remote Managment” on that client in the domain.
And be sure you run the script in correct logon context.

Link: http://msdn.microsoft.com/en-us/library/aa384372(v=vs.85).aspx


$ComputerName = Read-host("Enter The computername")</code>

<code>Invoke-Command -ComputerName $ComputerName -ScriptBlock {
Invoke-WmiMethod -Namespace "Root\CCM" -Class SMS_Client -Name TriggerSchedule -ArgumentList "{00000000-0000-0000-0000-000000000021}"

Reporting service Point in SCCM can be really handy sometimes, when you need to lookup something in a AD domain. Specially when you will see how an deployment has been running.

I discover something strange on a customer’s reporting services. The SSRP Service has been created Loads of Folders with name ConfigMgr_SiteCode.OLD.0 And when I tried to Select every folders and remove them, the internet explorer hanged itself.


old reports

So I created this powershell script to remove all OLD folders.

Remove SCCM Reporting Services Folders ConfigMgr_SiteCode.OLD.*

This Script will help us to remove SCCM Reporting Services folder, that has name ConfigMgr_SiteCode.OLD.*


Enter the ConfigMgr Site Server Name:

Enter the Sitecode:



# Get data
$ConfigMgrServerName = Read-Host("Enter the ConfigMgr Site Server Name")
$ConfigMgrSiteCode = Read-Host("Enter the sitecode")

# Connect to Reporting Services
$URL = ("http://" + $ConfigMgrServerName + "/ReportServer/ReportService2005.asmx?WSDL")
$ConnectToReportService = New-WebServiceProxy -Uri $URL -UseDefaultCredential

# Get all report folders
$RemoveOldReportFolders = $ConnectToReportService.ListChildren("/", $True)

# Remove all Folder with name ConfigMgr_SiteCode.OLD.*
$RemoveOldReportFolders | Where-Object {$_.Name -like ("ConfigMgr_" + $ConfigMgrSiteCode + ".OLD.*")} | ForEach-Object {$ConnectToReportService.DeleteItem($_.Path); "Deleted Folder: " + $_.Name}

The Result:
old reports after


Today I want to show you some steps you can do to kill some processes from CustomAction:

1. Start your InstallShield Project and goto to Custom Action and Sequences

Skärmavbild 2013-09-10 kl. 21.14.11

2. Right-click on text CustomAction and choose New Kill Process

Skärmavbild 2013-09-10 kl. 21.17.27

3. Rename the KillProcess Action

Skärmavbild 2013-09-10 kl. 21.21.14

4. Drag the Action KillWinWord to Installation Execute Sequences

Skärmavbild 2013-09-10 kl. 21.25.00

5. Goto Property Manager and choose New Property

Skärmavbild 2013-09-10 kl. 21.27.47

6. In Name column,type following: ISTerminateProcesses and Type in Value Column: WINWORD.exe

Skärmavbild 2013-09-10 kl. 21.28.40

7. Save your project and do a rebuild on your project

8. Test your new CustomAction form a test machine