This script has moved to the asheroto/IsPortActive repository.
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
enum Visibility : byte { | |
Default = 0 | |
Hide = 1 | |
Show = 2 | |
} | |
function Convert-CeaserCipher { | |
<# | |
.SYNOPSIS | |
Convert a string to and from a ceaser cipher (ROT-13) encoding. |
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 Watch-WinEvent { | |
<# | |
.SYNOPSIS | |
Watch for events matching a query in the event log. | |
.DESCRIPTION | |
Watch for events matching a query in the event log. | |
#> |
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
# Warning | |
Clear-Host | |
Write-Output "Run this script on the computer you want to access via RDP" | |
Write-Output "" | |
# Ask | |
Write-Output "Remote address can be an IP address or network with CIDR" | |
Write-Output "Example: 192.168.0.5 or 192.168.0.0/24" | |
Write-Output "" | |
$RemoteAddress = Read-Host "Remote Address" |
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
using namespace System.Collections.Generic; using namespace System.Text | |
Add-Type -TypeDefinition ' | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
public class WindowTools | |
{ | |
public delegate bool EnumWindowsProc(IntPtr hWnd, int lParam); |
These are my notes on how to set up GPG with the private key stored on the hardware Yubikey. This will reduce the chances of your GPG private key from being stolen, and also allow you to protect other secrets such as SSH private keys.
It's just some notes and a partial worklog for now, but I may turn it into a full blog post later.
We did it! We broke gist.github.com ;) So head over to the new home! Thank you all!
2021.10.20: https://github.com/AveYo/MediaCreationTool.bat now open for interaction
Not just an Universal MediaCreationTool wrapper script with ingenious support for business editions,
A powerful yet simple windows 10 / 11 deployment automation tool as well!
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-CommandSource { | |
param ( | |
[Parameter(Mandatory)] | |
[String]$Name | |
) | |
try { | |
$commandInfo = Get-Command $Name | |
if ($commandInfo -is [System.Management.Automation.AliasInfo]) { | |
$commandInfo = $commandInfo.ResolvedCommand |
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-InstalledSoftware { | |
<# | |
.SYNOPSIS | |
Get all installed from the Uninstall keys in the registry. | |
.DESCRIPTION | |
Read a list of installed software from each Uninstall key. | |
This function provides an alternative to using Win32_Product. | |
.EXAMPLE | |
Get-InstalledSoftware |
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 New-DynamicParameter { | |
<# | |
.SYNOPSIS | |
Create a new dynamic parameter object for use with a dynamicparam block. | |
.DESCRIPTION | |
New-DynamicParameter allows simplified creation of runtime (dynamic) parameters. | |
.EXAMPLE | |
New-DynamicParameter Name -DefaultValue "Test" -ParameterType "String" -Mandatory -ValidateSet "Test", "Live" | |
.EXAMPLE | |
New-DynamicParameter Name -ValueFromPipelineByPropertyName |
NewerOlder