# Comment line
<#
comment block
#>
Get-ChildItem -Attributes hidden "\System Volume Information"
Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($_.creationtime)}} Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}}
Get-ComputerRestorePoint | Format-Table -AutoSize Description, SequenceNumber, ` @{n="Date";e={[System.Management.ManagementDateTimeConverter]::ToDateTime($.creationtime)}}
Enable-ComputerRestore -Drive "c:"
How to write special characters in a variety of documentation forms.
Examples are Arrow keys, copyright, trademark, degrees (temperature or latitude/longitude)
IT techs that use imaging/deployment and/or DHCP/PXE will often be working with a computer's GUID, UUID, or MAC address. For example, you have received a shipment of new desktops and are preloading your Windows Active Directory with the new computer names in the desired OU. You will then be ready to boot them and have the new computers network PXE and start installing your company base image. The packaging gives you the UUID but you need to provide the GUID to the computer proerties in AD.
Some tools to help convert back and forth between the different formats.
Example:
WFLGNVLAB01
UUID: 457A9480-E7BE-11E2-9C6A-8851FB69DFA3
GUID: 80947A45-BEE7-E211-9C6A-8851FB69DFA3
| Error Code | Dec Error Code | Error String | Description |
|---|---|---|---|
| 0x00000000 | -4294967296 | Success | |
| 0x0000007B | -4294967173 | Error_Invalid_Name | The filename, directory incorrect |
calc.exe
Menu, Programmer
[Hex] 0x7B
[Dec] 123
| PUSHD %~dp0 | |
| SET DateString=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2% |
| REISUB - the gentle Linux restart | |
| According to Lifehacker a frozen Linux system that's not responding to the Ctrl-Alt-Delete three-finger-salute can be restarted more safely than by pushing the power button, which is usually the next step. | |
| Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB will get you safely restarted. REISUO will do a shutdown rather than a restart. | |
| Sounds like either an April Fools joke or some very strange magic akin to the old BIOS beeps we used to use to diagnose PC faults so bad that nothing would boot. Wikipedia comes to the rescue with an in-depth listing of all the SysRq keys. | |
| R: Switch the keyboard from raw mode to XLATE mode | |
| E: Send the SIGTERM signal to all processes except init |
| :again | |
| if "%~1" == "" GOTO done | |
| ffmpeg.exe -i "%~1" -t 00:00:15 "%~n1_clip%~x1" | |
| SHIFT | |
| GOTO again | |
| :done |
| @echo off | |
| net session >nul 2>&1 | |
| if %errorlevel% neq 0 ( | |
| echo Requesting administrative privileges... | |
| powershell -Command "Start-Process '%~f0' -Verb RunAs" | |
| exit /b | |
| ) | |
| wsl sudo fstrim --all; echo "Exit status: $?"; |