Skip to main content

Posts

Showing posts from June, 2015

[ChromeOS]: Create a recovery media for your chromebook

Create a recovery media for your chromebook Notes while creating a recovery media for Google Pixel Chromebook . Preparation - USB Flash Drive or SD card at least 4GB I bought  SanDisk Cruzer Edge CZ51 8GB USB 2.0 Flash Drive , Black- SDCZ51-008G-B35 - Internet connection, of course! Install Chromebook Recovery Utility

[Powershell]: Get-Date and commonly used date format

Get-Date and commonly used date format in powershell PS C:\Users\Administrator> get-date Thursday, June 25, 2015 9:42:24 AM PS C:\Users\Administrator> $today = get-date PS C:\Users\Administrator> echo $today Thursday, June 25, 2015 9:43:21 AM PS C:\Users\Administrator> $todayshort = get-date -format yyMMdd PS C:\Users\Administrator> echo $todayshort 150625 PS C:\Users\Administrator> $todaylong = get-date -format yyyyMMdd PS C:\Users\Administrator> echo $todaylong 20150625 PS C:\Users\Administrator>

[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