-
Notifications
You must be signed in to change notification settings - Fork 5
workstation_info_display.ps1
Collects and displays comprehensive workstation information with dual output modes.
This script collects and displays comprehensive workstation information including operating system details, computer name, current user, CPU specifications, memory capacity, network adapter configuration, and hardware serial number. Designed for quick troubleshooting access via tray icon menu or RMM execution with dual output modes supporting both interactive popup display and console text output.
Collects and displays comprehensive workstation information including operating system details, computer name, current user, CPU specifications, memory capacity, network adapter configuration, and hardware serial number. Designed for quick troubleshooting access via tray icon menu or RMM execution with dual output modes supporting both interactive popup display and console text output.
- PowerShell 5.1 or later
- Windows operating system with CIM/WMI support
- For popup mode: .NET Framework (included in Windows)
- No special permissions required (runs in user context)
All inputs are hardcoded values:
-
DisplayMode:
'popup'- Output display mode: 'popup' shows Windows Forms message box, 'console' outputs to console for RMM capture -
IncludeNetwork:
$true- Whether to include detailed network adapter information -
PopupTitle:
'Workstation Information'- Title text for the popup message box when DisplayMode is 'popup'
- Hardcoded values (defined within the script body)
- WMI/CIM queries (Win32_OperatingSystem, Win32_Processor, etc.)
- Error
- Uses CIM/WMI for hardware and OS data collection
- Popup mode uses Windows Forms MessageBox for GUI display
- Console mode outputs formatted text suitable for RMM agent capture
- Network adapter information limited to enabled adapters only
- Memory sizes reported in GB with 2 decimal precision
- Script collects system information via CIM queries
- In popup mode, displays information in a Windows Forms message box
- In console mode, outputs formatted text to stdout
- All data collection occurs before display to ensure complete information
- Missing or unavailable information is reported as "N/A"
- No secrets are printed to the console or popup
- All data collected is read-only from system WMI providers
- No sensitive information exposed beyond standard hardware inventory
- 0 = Success
- 1 = Failure
[ INPUT VALIDATION ]
--------------------------------------------------------------
DisplayMode : popup
IncludeNetwork : True
PopupTitle : Workstation Information
[ COLLECTING SYSTEM INFORMATION ]
--------------------------------------------------------------
Gathering operating system details...
Gathering computer information...
Gathering CPU information...
Gathering memory information...
Gathering network adapter information...
Gathering BIOS information...
[ DISPLAY ]
--------------------------------------------------------------
Display Mode : Popup
Showing Windows Forms message box...
[ FINAL STATUS ]
--------------------------------------------------------------
Workstation information displayed successfully.
[ SCRIPT COMPLETED ]
--------------------------------------------------------------
- 2025-10-31 v1.1.0 - Improved popup formatting with Style A KV format (Label : Value) and cleaner section headers for better readability
- 2025-10-31 v1.0.0 - Initial Style A compliant release with dual-mode output for interactive popup and RMM console display
- View Script Source
- Scripts - Back to script index