Skip to content

Instantly share code, notes, and snippets.

View Stephanevg's full-sized avatar
:octocat:
I like computers

Van Gulick Stephanevg

:octocat:
I like computers
View GitHub Profile
#Test-PortConnectivity -Source '127.0.0.1' -RemoteDestination 'dc1' -Port 57766
#Test-PortConnectivity '127.0.0.1' 'dc1' 57766 -Protocol UDP -Iterate
#Test-PortConnectivity 'localhost' 'dc2' 51753 -Protocol UDP
#Test-PortConnectivity -Source $EUCAS -RemoteDestination $EUMBX -Port 135 -Iterate
#Test-PortConnectivity -Source 'localhost' -RemoteDestination '127.0.0.1' -Port 135 -Iterate -protocol TCP
Function Test-PortConnectivity()
{
#source -> https://geekeefy.wordpress.com/2016/01/07/powershell-telnet-tcpudp-ports-on-multiple-machines/
Param
@Stephanevg
Stephanevg / Get-LoremName.ps1
Created March 3, 2019 19:06 — forked from joegasper/Get-LoremName.ps1
Generate random names and accounts based on Lorem Ipsum
<#
.Synopsis
Return a name based on Lorem Ipsum.
.DESCRIPTION
Calls public Loren Ipsum API and returns name and account name if requested.
.EXAMPLE
Get-LoremName
FirstName LastName
--------- --------
Plane Gloriosam
@Stephanevg
Stephanevg / Add-WinRMDaclRule.ps1
Created June 24, 2020 09:04 — forked from jborean93/Add-WinRMDaclRule.ps1
Adds a rule to the WinRM DACL list
Function Add-WinRMDaclRule {
<#
.SYNOPSIS
Add a Discretionary Acl rule to the root WinRM listener or individual PSSession configuration.
.DESCRIPTION
Add a Discretionary Acl rule to the root WinRM listener or individual PSSession configuration.
This can be useful if you wish to give access to an individual user or group to either the root WinRM listener or
a specific PSSession configuration that is not an Administrator.
// Discord all events!
// A quick and dirty fleshing out of the discord.js event listeners (not tested at all!)
// listed here -> https://discord.js.org/#/docs/main/stable/class/Client
// Learn from this, do not just copy it mofo!
//
// Saved to -> https://gist.github.com/koad/316b265a91d933fd1b62dddfcc3ff584
/*
koad-was-here