Skip to content

Instantly share code, notes, and snippets.

@jdhitsolutions
jdhitsolutions / remoting-function-framework.json
Created May 11, 2020 14:35
A Visual Studio Code PowerShell snippet of my remote function framworrk
"Remoting Function": {
"prefix": "Remoting Function Framework",
"body": [
"Function Verb-Noun {\r",
"\r",
" #TODO: Create help documentation for your command\r",
"\r",
" [cmdletbinding(DefaultParameterSetName = \"computer\")]\r",
" #TODO: Add and modify parameters as necessary\r",
" Param(\r",
@jdhitsolutions
jdhitsolutions / RemoteFunctionFramework.ps1
Last active November 10, 2023 15:44
The framework of a PowerShell advanced function designed to run cross-platform that PowerShell remoting.
#requires -version 5.1
<#
This is a function template that utilizes remoting to get or do something from
remote computers. The framework is written to support both Windows PowerShell
and remoting with SSH in PowerShell 7. It defines dynamic parameters for
PwoerShell 7. You may decide to re-define them as normal parameters.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED.
@leeramsay
leeramsay / PSADT-Cheatsheet.ps1
Last active April 17, 2024 04:47
PSADT snippits/cheatsheet
## Commonly used PSADT env variables
$envCommonDesktop # C:\Users\Public\Desktop
$envCommonStartMenuPrograms # C:\ProgramData\Microsoft\Windows\Start Menu\Programs
$envProgramFiles # C:\Program Files
$envProgramFilesX86 # C:\Program Files (x86)
$envProgramData # c:\ProgramData
$envUserDesktop # c:\Users\{user currently logged in}\Desktop
$envUserStartMenuPrograms # c:\Users\{user currently logged in}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
$envSystemDrive # c:
$envWinDir # c:\windows
@rxaviers
rxaviers / gist:7360908
Last active April 26, 2024 15:35
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue: