Microsoft Endpoint Configuration Manager
443
A Docker Container with the MECM (fka SCCM) Admin Console. This will allow automated processes to run inside of containers.
Be sure to launch this container with two environment variables specified:
%SMSSITESERVER%%SMSSITECODE%& docker run --rm -it -e SMSSITESERVER=foobar.example.com -e SMSSITECODE=FOO vertigoray/mecm
There is a MOF file that needs to have these variables injected into it.
This is done for you by calling C:\Initialize-MOF.ps1 during container startup.
Create the test file.
We'll call it run.ps1:
& C:\Initialize-MOF.ps1
$u, $p = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($env:SMSCREDS)).Split('|', 2)
$creds = New-Object System.Management.Automation.PSCredential($u, (ConvertTo-SecureString $p -AsPlainText -Force))
Import-Module "${env:SMS_ADMIN_UI_PATH}\..\ConfigurationManager.psd1"
New-PSDrive -Name $env:SMSSITECODE -PSProvider 'CMSite' -Root $env:SMSSITESERVER -Credential $creds
Get-CMDevice
Run the container, calling the file:
$creds = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes('user|P@$$w0rd!!'))
& docker run --rm -it -e SMSSITESERVER=foobar.example.com -e SMSSITECODE=FOO -e SMSCREDS=$creds powershell -Exe Bypass -NonI -NoP -File run.ps1
Note: Assumes that you know how to get the run.ps1 file into the container.
Use of the MECM Admin Console may be subject to licensing restrictions:
Customers with active Software Assurance (SA) on Configuration Manager licenses or with equivalent subscription rights as of October 1, 2016 have rights to use the October 2016 version 1606 release of Configuration Manager. Customers with rights to Configuration Manager on or after October 1, 2016 will find two licensed options upon installation: current branch and long-term servicing branch (LTSB).
For the complete terms and conditions for the products you purchase through Microsoft Volume Licensing programs, see Licensing Terms and Documentation.
Content type
Image
Digest
Size
2.6 GB
Last updated
almost 5 years ago
docker pull vertigoray/mecm