Michael Wu

The Life of a Cloud Engineer

  • Home
  • Resume
  • Blog
  • Contact

Posted on 04.01.16

How to deploy the LAPS by SCCM – Part 1

In this series of posts, I will demonstrate the steps to deploy Local Administrator Password Solution(LAPS) by SCCM. This is the first post that shows the prerequisites for the deployment. You can also check the other posts by the below links:

  • How to deploy the LAPS by SCCM – Part 2
  • How to deploy the LAPS by SCCM – Part 3

Why Use SCCM?

The “Local Administrator Password Solution” (LAPS) provides management of local account passwords of domain joined computers. Passwords are stored in Active Directory (AD) and protected by ACL, so only eligible users can read it or request its reset. Our goal is to deploy LAPS without affecting end users, and users will not be able to remove the program. You can also deploy the solution by Group Policy, login script, manual install, etc. However, using SCCM to deploy LAPS has some benefits:

  1. You can monitor the progress of deployment
  2. LAPS can be deployed by your chosen time

Resources

  • Download LAPS
  • Read More About LAPS

Test environment

  • Microsoft Windows Server 2012 R2 Standard
  • System Center 2012 R2 Configuration Manager SP1 (Site version: 5.00.8239.1000)

Get DLL files

First, You will need AdmPwd.dll files on both x64 and x86 version (if you have x86 machines)

  • Download LAPS.x64.msi and LAPS.x86.msi
  • Install all LAPS feature on your workstation

LAPS_install

  • Find the AdmPwd.dll file in the %ProgramFiles%\LAPS\CSE folder, you will need both x64 and x86 version
  • Rename the file to AdmPwd64.dll and AdmPwd32.dll
  • Put the files in the shared resource folder so SCCM can find them

Create a Package in SCCM

We will use package to contain the DLL files since the files will need to be copied to client machines.

  • Select “This package contains source files” and point to where your AdmPwd.dll located

LAPS_SCCM1

  • Select Do not create a program, we will create programs later, click Next to finish

LAPS_SCCM2

Create Programs in the Package

The programs will have two actions, copy file to the local machine and register the DLL.

  • In Create Program Wizard, select Standard program

LAPS_SCCM_CreateProgram

  • Copy the below command into Command line. This will copy the DLL file to $env:windir (C:\Windows\) using PowerShell, you can replace $env:windir to your preference.
    Note: I tried to put the DLL file in $env:windir\System32\ but it failed to register.
     In Program can run option, select Whether or not a user is logged on. Click Next to finish. Repeat the same procedure for x86 version. 
Powershell.exe Copy-Item .\AdmPwd64.dll -Destination $env:windir\AdmPwd.dll -Force

LAPS_SCCM_CreateProgram2

  • You should see two programs in the package

LAPS_SCCM_CreateProgram3

Now, you have the Package ready for the Task Sequence deployment. Next, we will go through the deployment process.

 Read More

  • How to deploy the LAPS by SCCM – Part 2
  • How to deploy the LAPS by SCCM – Part 3

Categories:SCCM

Recent Posts

  • Automating Resource Restriction in Azure subscriptions with Budget Alert, Automation Account, and Azure Policy
  • How to configure the Security Center via Azure Resource Manager (ARM) template
  • How to restrict Account Operators to see the password in LAPS
  • How to join a VM to a domain by PowerShell in Azure
  • How to push an existing repository from VS Code to Azure DevOps by PowerShell

Search

Categories

  • Azure
  • IIS
  • PowerShell
  • SCCM
  • VMware
  • Windows Server

Contact

Email: [email protected] | Powered By the 太初網路

Copyright © 2024 mikewu.org Disclaimer

Connect

FacebookTwitterGoogle +Linkedin