Skip to main content

[Powershell]: Get system information with systeminfo command

Get system information with systeminfo command

1. Create get-systeminfo.ps1 file

Use notepad or any text editor to create get-systeminfo.ps1

# Description: powershell script to get computer's system information
# get computer name
$computername = gc env:computername
# get year month date hour minute
$today = (get-date).ToString("yyyyMMddHHMM")
# get computer's system information
systeminfo >> $computername-$today.txt
# end of script

2. Create scheduled task to run get-systeminfo.ps1


Popular posts from this blog

Windows 10: Install SuSE Linux Enterprise - SLES

With Microsoft-Windows-Subsystem-Linux feature enabled, we can install Linux distributions on Windows 10.

IBM i: DB2 for i

IBM DB2 for i DB2 for i is a member of IBM’s family of DB2 databases. What makes DB2 for i unique is its integration with the platform, the IBM i operating system and Power Systems. This unique integration means you do less managing of your database, and more building of applications for analytics, mobile, cloud, or day to day operational purposes. DB2 for i’s open standards support allows you to leverage the world of development tools while protecting your investment in legacy applications. Self managing is what DB2 for i is all about ! Let's ST a R t SQL  with STRSQL command. Query all databases SELECT DISTINCT table_schema FROM systables Query returns list of all databases

Microsoft Visual Studio Code: Notes from the field

Microsoft Visual Studio Code is a free and cross-platform IDE running on Microsoft Windows, Linux, and MacOS. Install Microsoft Visual Studio Code Download link:  https://code.visualstudio.com/ Get Visual Studio Code at code.visualstudio.com Check current version Visual Studio Code Version 1.0.0 Update Update Visual Studio Code Microsoft Visual Studio Version 1.1.1 Install Extension: Visual Studio Team Services Install Extension - Visual Studio Team Services Commonly used keyboard shortcuts VS Code keyboard commonly used shortcuts Shortcut Usage CTRL + SHIFT + K Delete current line ALT + Z Toggle Word Wrap ALT + / Comment current line or selected block ALT + \ Toggle (hide/show) side bar