This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [DirectoryServices.ActiveDirectory.ActiveDirectorySite]::GetComputerSite().Name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Create name and path for a tempfile | |
| [System.IO.Path]::GetTempFileName() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [perfmon://PerfMemory] | |
| interval = 900 | |
| object = Memory | |
| counters = Committed Bytes; Available Bytes; % Committed Bytes In Use | |
| disabled = 0 | |
| [perfmon://PerfProcessor] | |
| interval = 900 | |
| object = Processor | |
| counters = % Processor Time; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [perfmon://PerfSQLServerGeneralStatistics] | |
| interval = 900 | |
| object = SQLServer:General Statistics | |
| counters = User Connections; Transactions; Processes blocked | |
| disabled = 0 | |
| [perfmon://PerfSQLServerBufferManager] | |
| interval = 900 | |
| object = SQLServer:Buffer Manager | |
| counters = Database pages; Buffer cache hit ratio; Page life expectancy; Checkpoint pages/sec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Make text in clipboard lowercase with Win+8 | |
| #8:: | |
| StringLower, clipboard, clipboard, | |
| Return | |
| ; Make text in clipboard uppercase with Win+9 | |
| #9:: | |
| StringUpper, clipboard, clipboard, | |
| Return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ::dd--:: | |
| FormatTime, date2, ,yyyy.MM.dd | |
| SendInput %date2% | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ::dt--:: | |
| FormatTime, dateTime2, ,yyyy.MM.dd-HH.mm | |
| SendInput %dateTime2% | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; Turn on NumLock for ever and always... aahh... | |
| SetNumLockState, AlwaysOn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem | Select-Object Name,LastWriteTime,@{Name="Size Mb"; Expression = {[math]::round($_.Length /1Mb, 2)}} |