Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
raumdonut committed Aug 26, 2024
1 parent ee771b5 commit 424678c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ jobs:
env:
VALIDATE_ALL_CODEBASE: true
IGNORE_GITIGNORED_FILES: true

# To report GitHub Actions status checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Pascal
Copyright (c) 2024 Pascal

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 5 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# Set a supervisor password on Lenovo Thinkpads

> [!CAUTION]
> This is currently a Proof of Concept (PoC) and needs testing. It works only for Matrix42 Empirum.
> [!IMPORTANT]
> Import the PreOS Package into your Matrix42 Environment.
> [Import PreOS Packages](https://help.matrix42.de/010_SUEM/020_UEM/20Client_Management/OS_Deployment/WinPE/2_WinPE_konfigurieren#Via_Matrix42_Marketplace)
> The ThinkPad must be booted via PXE in System Deployment Boot Mode.
> The ThinkPad must be booted via PXE in System Deployment Boot Mode.
> Learn more here: [Lenovo CDRT SDBM](https://docs.lenovocdrt.com/ref/bios/sdbm/#activating-system-deployment-boot-mode)
A PreOS Package for Matrix42 Empirum to initially set the BIOS supervisor password on Lenovo ThinkPads.

We use the System Deployment Boot Mode introduced on the ThinkPad T490 (Comet Lake) to set an initial supervisor password. Here you can find an overview of the supported models: [Supported Models](https://docs.lenovocdrt.com/ref/bios/sdbm/#supported-systems)

> [!CAUTION]
> This only works on Thinkpads with no Supervisorpassword set!
## Features

- Checks if the device is from lenovo. If not it exits.
- Checks via an array if the model is not supported:
"$notSupportedList" which is currently populated with t480s/t490s modelnames. Add more unsupported models in your environment
- Sets the BIOS password. The BIOS password is set via the package variable “LenovoBIOSPW”.

## Download and Usage

1. Clone the repository.
2. Extract the archive to %EmpirumServer%\Configurator$\PackageStore\PreOSPackages and import the package into your Software Depot (Matrix42 Management Console > Configuration > Depot).
3. Move the package within the depot register "Matrix42 PreOS Packages" before the "Windows Installation" package and activate it for deployment ("Ready to install").
Expand Down
Binary file not shown.
14 changes: 9 additions & 5 deletions source/SetLenovoBIOSPassword 0.1/EmpirumPackageData.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<EmpirumPackage UUID="eac0d90a-aa3a-46b9-a27e-266650aeb041" Name="SetLenovoBIOSPassword 0.1" Type="OSPackage" Version="1.0">
<EmpirumPackage UUID="eac0d90a-aa3a-46b9-a27e-266650aeb041" Name="SetLenovoBIOSPassword 0.1"
Type="OSPackage" Version="1.0">
<VersionInformation Version="0.1" Revision="0" />
<TargetPath />
<Description>Set the BIOS for Lenovo Models which support System Deployment Boot Mode SDBM
</Description>
</Description>
<DatabaseSettings></DatabaseSettings>
<ObjectModelSerialisation>
<ObjectModel Name="Matrix42.Empirum.PLF.Data.CoreDataAccess.Model">
<Software xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Matrix42.Empirum.PLF.Data.CoreDataAccess.Model">
<Software xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="i1"
xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/"
xmlns="http://schemas.datacontract.org/2004/07/Matrix42.Empirum.PLF.Data.CoreDataAccess.Model">
<CatalogueID i:nil="true" />
<GenerallyReleased>0001-01-01T00:00:00</GenerallyReleased>
<Icon i:nil="true" />
Expand All @@ -30,7 +33,8 @@
<Collection>0</Collection>
<ComboType>12</ComboType>
<DefaultValue i:nil="true" />
<Description>Add the BIOS Password you want to set. If you change it, we have to change the config files.</Description>
<Description>Add the BIOS Password you want to set. If you change it, we have to
change the config files.</Description>
<Id>0</Id>
<LastUpdate>2024-06-12T21:26:52.2128769+02:00</LastUpdate>
<LowerValue i:nil="true" />
Expand Down Expand Up @@ -81,7 +85,7 @@
<CheckReg i:nil="true" />
<CreationDate i:nil="true" />
<Description>Set the BIOS for Lenovo Models which support System Deployment Boot Mode SDBM
</Description>
</Description>
<Directory>%Packages%\raumdonut\OsPackages\SetLenovoBIOSPassword\0.1</Directory>
<Discontinue i:nil="true" />
<DiskFreeApplication>0</DiskFreeApplication>
Expand Down

0 comments on commit 424678c

Please sign in to comment.