You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provides the ability to quickly obtain detailed information about the Windows operating system, processor, installed SP, .NET Frameworks and BIOS. Also allows you to get information about running system processes and manage them.
// Install Hopex.OSI as a Cake Addin
#addin nuget:?package=Hopex.OSI&version=23.0.3
// Install Hopex.OSI as a Cake Tool
#tool nuget:?package=Hopex.OSI&version=23.0.3
Opportunities
Hidden command line
Option
Status
Executing any commands
✅
Process manager
Option
Status
Search for a running process by its name
✅
Asynchronous verification of the existence of a process(s) by its name
✅
Getting a list of all processes
✅
Getting а process ID by its name
✅
Getting а process ID by its name
✅
Getting а process executable path by its name
✅
Getting а process executable path by its ID
✅
Closing a process by its name
✅
Opertion sysytem
Option
Status
Getting user name
✅
Getting computer name
✅
Getting computer RAM size
✅
Getting user name
✅
Getting a number of processor cores
✅
Getting edition of the OS
✅
Getting name of the OS
✅
Getting edition of the OS
✅
Getting version OS
✅
Getting major version of the OS
✅
Getting minor version of the OS
✅
Getting build version of the OS
✅
Getting revision version of the OS
✅
Getting installed .NET Framework versions
✅
Getting service pack information if exists
✅
Getting the bitness of the OS (system, software, processor)
✅
Getting the name of the OS release
✅
Getting user displays information (name, is it the main one, resolution)
✅
Getting connected drives information
✅
BIOS
Option
Status
Bios characteristics
✅
BIOS version
✅
Build number
✅
Caption
✅
CodeSet
✅
Current language
✅
Description
✅
Embedded controller major version
✅
Embedded controller minor version
✅
Identification code
✅
Installable languages
✅
Install date
✅
Language edition
✅
List of languages
✅
Manufacturer
✅
Name
✅
Other target OS
✅
Primary BIOS
✅
Release date
✅
Serial number
✅
SMBIOS BIOS version
✅
SMBIOS major version
✅
SMBIOS minor version
✅
SMBIOS present
✅
Software element ID
✅
Software element state
✅
Status
✅
System BIOS major version
✅
System BIOS minor version
✅
Target operating system
✅
Version
✅
How to use
Hidden command line
publicvoidNotepadLaunch(){// Create a hidden command line instances and process managers instancesHiddenCommandLinecommandLine=new HiddenCommandLine();// Run the notepad application
commandLine.Exec("notepad");}
Process manager
publicvoidLainchEndCloseNotepad(){/** * Let's launch notepad, check if it is running, * and close it using the hidden command line and process manager. */// Create a hidden command line instances and process managers instancesHiddenCommandLinecommandLine=new HiddenCommandLine();ProcessManagerprocessManager=new ProcessManager();// The second parameter is set to false (by default true), so as not to wait for the process to complete.
commandLine.Exec("notepad",false);// Let's wait one second until notepad is displayed (locking main ui thread is a bad practice).
System.Threading.Thread.Sleep(1000);// Now, if notepad is running, we will close all its instancesboolnotepadIsRunning=await processManager.AsyncProcessExistsByName("notepad");if(notepadIsRunning)
processManager.KillProcessByName("notepad");
Console.WriteLine(notepadIsRunning?"Exists":"Not exists");}