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
DECLARE @logspace TABLE ( | |
db_name VARCHAR(255) | |
,size FLOAT | |
,used FLOAT | |
,[status] INT | |
) | |
INSERT INTO @logspace | |
EXEC ('dbcc sqlperf(logspace)'); |
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
%systemroot%\System32\inetsrv\appcmd.exe list wp |
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
=index(A:B,match(+filter(B:B,B:B<>""),B:B,0),1) |
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
=index(A:B,max(row(B:B)*(B:B<>"")),1) |
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
function Log | |
{ | |
param ( | |
$Object, | |
$ForegroundColor, | |
$BackgroundColor, | |
[switch] $NoNewLine | |
) | |
Write-Host @PSBoundParameters |
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
Ctrl + N : start new chat | |
Ctrl + Shift + ] : next chat | |
Ctrl + Shift + [ : previous chat | |
Ctrl + E : archive chat | |
Ctrl + Shift + M : mute | |
Ctrl + Backspace : delete chat | |
Ctrl + Shift + U : mark as unread | |
Ctrl + Shift + = : zoom in | |
Ctrl + 0 : default zoom level | |
Ctrl + - : zoom out |
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
=REPLACE(RIGHT(A1,5),1,SEARCH(".",RIGHT(A1,5)),"") |
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-ADUser -Filter * -Property userAccountControl ` | |
| Where {[Convert]::ToString($_.useraccountcontrol,2).PadLeft(25,'0').substring(23,1) -eq '1'} ` | |
| Select userAccountControl -Unique ` | |
| Sort -Property userAccountControl |