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
#Certificate has to be installed in Personal | |
#Subject is who it has been issued to | |
$certSubject = "" | |
$tp = (ls Cert:\LocalMachine\my | WHERE {$_.Subject -match $certSubject } | Select -First 1).Thumbprint | |
wmic /namespace:\\root\CIMV2\TerminalServices PATH Win32_TSGeneralSetting Set SSLCertificateSHA1Hash="$tp" |
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
<# | |
.SYNOPSIS | |
GenCertSigningReq.ps1 | |
.DESCRIPTION | |
This powershell script can be used to generate a Certificate Signing Request (CSR) using the SHA256 signature algorithm and a 2048 bit key size (RSA). Subject Alternative Names are supported. | |
.PARAMETER |
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
$wsh = New-Object -ComObject WScript.Shell | |
while (1) { | |
$wsh.SendKeys('+{F15}') | |
Start-Sleep -Seconds 59 | |
} |
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
sudo docker stop portainer | |
sudo docker rm portainer | |
sudo docker run -d -p 8000:8000 -p 9000:9000 -p9443:9443 --name=portainer --restart=always --pull=always -v /var/run/docker.sock:/var/run/docker.sock -v /containers/portainer:/data portainer/portainer-ee |
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
var r="html,body{overflow:auto !important;}"; | |
var s=document.createElement("style"); | |
s.type="text/css"; | |
s.appendChild(document.createTextNode(r)); | |
document.body.appendChild(s); | |
void 0; |
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-EventLog -LogName System |? {$_.EventID -in (6005,6006,6008,6009,1074,1076)} | ft TimeGenerated,EventId,Message -AutoSize –wrap |
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 Get-HuntTeamMmr { | |
$HuntDir = "C:\Program Files (x86)\Steam\steamapps\common\Hunt Showdown" | |
$File = Get-Item "$HuntDir\user\profiles\default\attributes.xml" | |
$NameSuffix = "_blood_line_name" | |
$MmrSuffix = "_mmr" | |
$TeamSuffix = "_ownteam" | |
[xml]$Data = Get-Content $File | |
$FlatData = $Data.ChildNodes.selectNodes("*") |
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
#!/usr/bin/env bash | |
#Change these variables! | |
NIC_NAME="eth0" | |
DOCKER_ROUTING_INTERFACE_NAME="mymacvlan" | |
DOCKERNETWORK_IP_ADDRESS="192.168.0.249/32" | |
DOCKERNETWORK_IP_RANGE="192.168.0.64/26" | |
sleep 15 #Do not rush things if executing during boot. This line is not mandatory and can be removed. |
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
#$RemoteServer = Read-Host "Please provide destination to test" | |
$DestinationHost = "" | |
$SourceServers = "" #for multi servers: "server1", "server2", "server3" | |
$PortList = "443" #for multi ports: "80, 443, 566" | |
$PortType = "TCP" | |
$localportqry = "`"E:\RPA Tools\PortQryUI\PortQry.exe`"" | |
$PortArray = @() | |
if ($PortType -eq "UDP") { $PortCmd = "-p UDP" } Else { $PortCmd = "-p TCP" } |
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
<?xml version="1.0" encoding="UTF-16"?> | |
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task"> | |
<RegistrationInfo> | |
<Date>2021-11-15T11:01:07.6898855</Date> | |
<Author>Carol Ouellet</Author> | |
<URI>\Backup Files</URI> | |
<Description>Launch a task before rebooting/poweroff. This can be useful for task to be performed before Windows Update force reboot the PC</Description> | |
</RegistrationInfo> | |
<Triggers> | |
<EventTrigger> |