Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
This file contains 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
$WifiCred = @() | |
$listProfiles = netsh wlan show profiles | Select-String -Pattern "Profil für alle Benutzer" | ForEach-Object { ($_ -split ":")[-1].Trim() }; | |
$listProfiles | ForEach-Object { | |
$profileInfo = netsh wlan show profiles name=$_ key="clear"; | |
$Key = $profileInfo | Select-String -Pattern "Schlüsselinhalt" | ForEach-Object { ($_ -split ":")[-1].Trim() }; | |
$WifiCred += New-Object -TypeName psobject -Property @{SSID = $_; Password = $Key } | |
} | |
Write-Output $WifiCred |
Warning: this is not official Microsoft documentation and some of these steps might not actually be supported.
This guide is provided "as is", without warranty of any kind, express or implied. In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from, out of or in connection with applying the steps outlined in this guide.
This file contains 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
<device guid="USB#VID_046D&PID_085B" name="HD Pro Webcam C925e"> | |
<zoom mixer="640,360" max="360" /> | |
<zoom mixer="854,480" max="360" /> | |
<zoom mixer="1280,720" max="180" /> | |
<zoom mixer="1920,1080" max="120" /> | |
<zoom mixer="360,360" max="360" /> | |
<zoom mixer="480,480" max="360" /> | |
<zoom mixer="720,720" max="180" /> | |
<zoom mixer="1080,1080" max="120" /> | |
<zoom mixer="3840,2160" max="120" /> |
This file contains 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 Get-CommandSourceCode | |
{ | |
<# | |
.SYNOPSIS | |
Get SourceCode of an powershell cmdlet | |
.DESCRIPTION | |
Get SourceCode of an powershell cmdlet | |
.PARAMETER Command | |
Must be a valid powershell cmdlet/function | |
.EXAMPLE |
This file contains 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
/* Hide border on tab bar, force its state to 'scroll', adjust margin-left for width of scrollbar. | |
#tabbar { | |
border: 0; | |
overflow-y: scroll !important; | |
margin-left: -18px !important; | |
} | |
*/ | |
/* Hide .twisty and adjust margins so favicons have 7px on left. */ | |
.tab .twisty { |
This file contains 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
server { | |
listen 4444 ssl http2; | |
listen [::]:4444 ssl http2; | |
server_name CHANGE_SERVERNAME; | |
ssl_certificate /usr/syno/etc/certificate/system/default/ECC-fullchain.pem; | |
ssl_certificate_key /usr/syno/etc/certificate/system/default/ECC-privkey.pem; | |
ssl_trusted_certificate /usr/syno/etc/certificate/system/default/ECC-fullchain.pem; | |
add_header Strict-Transport-Security "max-age=15768000; includeSubdomains; preload" always; |
This file contains 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
docker run \ | |
--name {{printf "%q" .Name}} \ | |
{{- with .HostConfig}} | |
{{- if .Privileged}} | |
--privileged \ | |
{{- end}} | |
{{- if .AutoRemove}} | |
--rm \ | |
{{- end}} | |
{{- if .Runtime}} |
This file contains 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
# Generate Report of BitLocker Status for Computers in the BitLocker Machines OU. | |
# Sources: https://4sysops.com/archives/find-bitlocker-recovery-passwords-in-active-directory-with-powershell/ | |
param([string]$OutputDirectory="~/Desktop",[string]$OrganizationalUnit=([adsi]'').distinguishedName) | |
if(!([Security.Principal.WindowsPrincipal] ` | |
[Security.Principal.WindowsIdentity]::GetCurrent() ` | |
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
Write-Host -ForegroundColor Yellow "Only Administrators can read BitLocker Recovery Keys." | |
exit | |
} | |
$computers = Get-ADComputer -Filter * -SearchBase $OrganizationalUnit |
NewerOlder