login vsi company logo login vsi company logo 250x40

 

Avoid VDI problems. Test with Login VSI.

Learn how our industry-standard software solutions can benefit your business

Learn more about our products

  • Home
  • Blog
  • Login AM
  • SCCM Control Component - Prevent Interference with Login AM 2012

SCCM Control Component - Prevent Interference with Login AM 2012

SCCM Control Component - Prevent Interference with Login AM 2012

If you are, out of business reasons, in the situation that your servers can not completely be managed by Login AM or you need to share your maintenance window with, for example SCCM, then you need to be sure that none of these deployment solutions interfere with each other. 

For this situation we developed a component that takes care of the SCCM 2007 Agent.

To be able to deploy and maintain clients with Login AM, without having problems with the SCCM Agent, a custom component with the goal to control the SCCM Agent has been developed. This blog describes the SCCM Control Component.

This custom component is placed under the Solution 4 Component.

custom component for controling the sccm agent

Custom component for controling the SCCM Agent

The component has a System ActionSet with two phases:

system actionset

System ActionSet

System - StartUpBegin

This phase is started after every reboot of the Login AM Client. It contains two tasks.

system startupbegin sccm copy

System StartIpBegin - SCCM copy

First task is the SCCM-Copy.ps1 script – it copies all necessary files like the SCCM-automation.dll from the S4_Sources folder to the %S4_Files%\Framework\SCCM folder on the client.

The second task is the SCCM-Client-disable.ps1 script that is responsible for disabling the SCCM service if there are no deployments currently running, otherwise the script will wait until the SCCM Agent service is inactive.

System - StartUpEnd

This phase contains a custom action set that executes a script responsible for enabling the SCCM agent again. Script name is SCCM-Client-enable.ps1.

system startupend sccm client enable

System StartUpEnd - SCCM Client enable

Integration in component set Login AM

The custom component SCCM Control needs to be integrated in a component. As the scripts needs to run during deployment phase and every maintenance task, the best place to integrate it has been the Solution4 Base component set.

As the SCCM Client needs to be disabled before the Login AM Deployment starts it is necessary to change the startupBeginOrderNumber as shown in the screen shot below.

solution 4 sccm control

Solution 4 SCCM Control

Changes to standard Login AM framework

To be able to control the SCCM Agent also during Login AM Initialization we needed to change one small thing to the standard Login AM framework files.

The file that has been modified is Initialize-Solution4.ps1 and is located in the following folder:

%S4_Files%\Components\Solution4\Framework\Extensions\Framework\General

The section that has been modified is the section that builds the init script on the S4 client. The section is between row 116 and 123.

The change in this file is that if a file named pre-init.ps1 exists in the S4-Files location, this will be executed before the standard init.ps1 script is executed. In this case the pre-init.ps1 script does nearly the same as the SCCM-disable.ps1 script, it disables the SCCM Agent service.

#Create Init script
Set-Content -path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "$s4_files\Init.ps1 -e $S4_EnvironmentID" | out-null
Add-Content -path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "schtasks.exe /Delete /TN `"Solution4 Initialization`" /F"

After:

#Create Init script
If (Test-Path -Path "$S4_files\pre-init.ps1") {
	Set-Content -Path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "$s4_files\Pre-Init.ps1" | out-null
	Add-Content -path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "$s4_files\Init.ps1 -e $S4_EnvironmentID" | out-null
} Else {
	Set-Content -path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "$s4_files\Init.ps1 -e $S4_EnvironmentID" | out-null
}
Add-Content -path "\\$ComputerName\admin$\Initialize-Solution4.ps1" 
-value "schtasks.exe /Delete /TN `"Solution4 Initialization`" /F"

This modification will probably move into the standard of future Login AM versions so that every customer has the possibility to execute necessary tasks before the initialization of Login AM.

The necessary scripts and the component itself can be found here and are provided “as is” without warranty.

 


 

Start using Login VSI today

Our industry-standard software is built to help you avoid problems, lower costs and improve performance. Request a Quote or get your free Trial below, and benefit from our award-winning services.

Free Price Request  Your Free Trial

 


About the company Login VSI

The company Login VSI provides end-user performance insights for virtualized desktop and server-based computing environments. Enterprise IT departments use flagship product Login VSI (for load testing) and Login PI (for continuity testing) in all phases of their virtual desktop deployment—from planning to deployment to change management—to build and safeguard a good performance, a high availability, and (as a result) a good and consistent end-user experience. For more information about Login VSI or for a free test license contact us.

Tags: How-to, Microsoft, Login AM

Popular Blogs

Login VSI Blog - Ongoing Effects CPU Flaws

The Ongoing Effects of Intel CPU Flaws

The Ongoing Effects of Intel CPU Flaws Over the last year, we’ve seen many Intel CPU hardware flaws come to light and when news first broke about Meltdown & Spectre there was a lot of panic: "should we patch?", "What’s the performance impact?", "Can we still rely on this hardware?" Continue Reading
Login VSI Blog - Updating to Windows 10 1903? Make Sure to Test!

Updating to Windows 10 1903? Make Sure to Test!

Updating to Windows 10 1903? Make Sure to Test! It’s that time of the year again. Microsoft have released their spring update and the first IT-Pro’s are getting ready to move their VDI environment over. Continue Reading
Login AT Express offers Application Compatibility Testing for up to 50 applications for FREE

[Press Release] Login VSI introduces free license for award winning solution, Login AT

Login AT Express offers Application Compatibility Testing for up to 50 applications for FREE Atlanta, USA, May 22, 2019: Login VSI, the industry standard for VDI and SBC performance testing, announced today the availability of a new, free version of Login AT for Bulk Application Compatibility Testing. Continue Reading
Login VSI Blog - LVTE 2109 - Technology Advocates & Experts

Login VSI Technology Advocates and Experts 2019

About a year ago Login VSI, the industry standard in VDI performance testing, announced a new program Recognizing those individuals that have built and displayed extensive knowledge of the Login VSI software solutions, and visibly contribute to the End-User Computing (EUC) Community. Continue Reading
Introducing Login PI 3.4

Introducing Version 3.4 of Login PI

What’s New & Different - Introducing Version 3.4 of Login PI We've updated Login PI, the benchmark in unplanned-change and gradual-deterioration detection for VDI. New features include improving the way information is collected & distributed, the way customized workloads are created & the way actual tests are executed. Continue Reading
Login VSI Blog - What's New in Login PI 3.5

What's New in Login PI 3.5?

What's New in Login PI 3.5? Netscaler, SLA Reporting, Event Logging features and so much more! At the end of June, we released a new version of Login PI 3 bursting with new features and enhancements. There are so many that I could write pages of blog about it, but let’s just keep it simple and focus on some of the big items. Continue Reading
Cookie Settings