diff --git a/README.md b/README.md index dc79623..3c26e78 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -[![Health IT Logo](https://healthit.com.au/wp-content/uploads/2019/06/HIT-proper-logo.png)](https://healthit.com.au) +[![Heko Logo](https://prov.heko-technik.de/images/heko_logo.png)](https://www.heko-bs.de/) -# TED (Tag Every Desktop) - a Health IT Project +# TED (Tag Every Desktop) TED is a commandline tool, inspired by the classic [BGInfo](https://learn.microsoft.com/en-us/sysinternals/downloads/bginfo), designed for MSPs to be able to display images and text programmatically on the desktop, positioned above the wallpaper but below the icons. It utilizes the bottom right corner of the primary monitor as the drawing area. @@ -55,7 +55,7 @@ TED supports the following switches: ## Examples -We've provided an example PowerShell script to make deploying with your RMM quick and easy. You can find the script [here.](https://github.com/HealthITAU/TED/blob/main/examples/rmm_deploy.ps1) +We've provided an example PowerShell script to make deploying with your RMM quick and easy. You can find the script [here.](https://git.heko-technik.de/mkrieger/TED/src/branch/main/examples/rmm_deploy.ps1) TED is a CLI tool and can be called like so: @@ -70,29 +70,12 @@ In terms of real world usage, we've found this to be a fantastic tool for helpin ## Adding Tokens Adding Tokens to the text system is simple, but will require editing the source and compiling your own binary. -Tokens are stored within TokenLookup inside Tokenizer.cs, found [here.](https://github.com/HealthITAU/TED/blob/main/src/TED/TED.Utils/Tokenizer.cs) +Tokens are stored within TokenLookup inside Tokenizer.cs, found [here.](https://git.heko-technik.de/mkrieger/TED/src/branch/main/src/TED/TED.Utils/Tokenizer.cs) Simply add to this dictionary your token as the key and what you'd like to subtitute it with as the value. Compile, and use your new tokens! -## Contributing - -Contributions to TED are welcome! If you find any issues or have suggestions for improvement, please feel free to open an issue or submit a pull request. - -## Supporting the project - -:heart: the project and would like to show your support? Please consider donating to one of our favourite charities: -- [Love Your Sister (Sam's 1000)](https://www.loveyoursister.org/makeadonation) -- [Black Dog](https://donate.blackdoginstitute.org.au/) -- [RedFrogs Australia](https://redfrogs.com.au/support/donate) - -Please let us know if you have donated because of this project! - ## License -This project is licensed under the [GNU General Public License v3.0](https://github.com/HealthITAU/TED/blob/main/LICENSE) +This project is licensed under the [GNU General Public License v3.0](https://git.heko-technik.de/mkrieger/TED/src/branch/main/LICENSE) -## Contact - -For any inquiries or further information, please contact the developers: -- [dev@healthit.com.au](mailto:dev@healthit.com.au?subject=[GitHub]%20TED%20Query) diff --git a/src/TED/TED.Utils/Tokenizer.cs b/src/TED/TED.Utils/Tokenizer.cs index 0160124..65eb1e7 100644 --- a/src/TED/TED.Utils/Tokenizer.cs +++ b/src/TED/TED.Utils/Tokenizer.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Security.Principal; using Microsoft.VisualBasic.Devices; +using System.Management; namespace TED.Utils { @@ -18,7 +19,8 @@ namespace TED.Utils { "@userName", () => WindowsIdentity.GetCurrent().Name }, { "@machineName", () => Environment.MachineName }, { "@osVersion", () => Environment.OSVersion.ToString() }, - { "@osName", () => new ComputerInfo().OSFullName } + { "@osName", () => new ComputerInfo().OSFullName }, + { "@machineSerial", () => GetSerial() } }; /// @@ -38,6 +40,28 @@ namespace TED.Utils return input; } + private static List GetSerialNumbers() + { + List serialNumbers = new List(); + try + { + var query = new ObjectQuery("SELECT * FROM Win32_BIOS"); + var searcher = new ManagementObjectSearcher(query); + var results = searcher.Get(); + + foreach (var obj in results) + { + serialNumbers.Add(obj["SerialNumber"].ToString()); + } + } + catch (Exception) + { + // Handle any error gracefully or just return an empty list + return new List(); + } + + return serialNumbers; + } } } \ No newline at end of file diff --git a/src/TED/TED.csproj b/src/TED/TED.csproj index e77b946..941da25 100644 --- a/src/TED/TED.csproj +++ b/src/TED/TED.csproj @@ -18,9 +18,9 @@ True app.manifest true - Health IT + Heko Büroservice GmbH & Co. KG. TED - Tag Every Desktop - Health IT + Heko Büroservice GmbH & Co. KG. True