Skip to content

Instantly share code, notes, and snippets.

View 1RedOne's full-sized avatar

Stephen Owen 1RedOne

View GitHub Profile
@1RedOne
1RedOne / NewUserUI.ps1
Created March 26, 2021 15:29
Stack Answer 66817943
##Setting Static Information
$primaryTelexNumber = "1"
$telexNumber = "7"
##Get Users First Name
[string] [Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic')
$title = "AD New User Script: First Name"
$msg = "Please Enter the new User's First Name"
$FirstName = [Microsoft.VisualBasic.Interaction]::InputBox($msg, $title)
@1RedOne
1RedOne / githubLink.html
Created March 18, 2021 17:30
Github Report Issue Link
@1RedOne
1RedOne / exampleGitHublink.txt
Last active March 17, 2021 18:21
Github Markdown Button Syntax
@1RedOne
1RedOne / SetupDC.ps1
Created March 16, 2021 15:22
Complete One Page DSC Domain Controller Setup
$secpasswd = ConvertTo-SecureString 'IWouldLiketoRecoverPlease1!' -AsPlainText -Force
$SafeModePW = New-Object System.Management.Automation.PSCredential ('guest', $secpasswd)
$secpasswd = ConvertTo-SecureString 'IveGot$kills!' -AsPlainText -Force
$localuser = New-Object System.Management.Automation.PSCredential ('guest', $secpasswd)
configuration TestLab
{
param
(
@1RedOne
1RedOne / Readme.Md
Created January 25, 2021 17:39
Why ARC Matters

Ancient History

The world's most popular platform to manage giant ass windows envrionments is made by microsoft, it's called System Center Configuration Manager.  Now called MEMCM, Microsoft Endpoint. 

Before I became a dev I was a consultant setting up ConfigMgr for big companies for years.

This was good but was mostly built for managing devices the company owns, it didn't really support managing devices the user brought in, like a personal cell phone or personal laptop scenario.

So Microsoft made a new product that can handle that scenario, like how we joined Azure AD on our laptops to set them up. that's called MDM management. It uses a different channel to configure devices than SCCM did.

@1RedOne
1RedOne / New-MoqMethodConfiguration.ps1
Created August 14, 2020 18:05
PowerShell Function to handle Moq Setup and Verifies for you!
<#
.Synopsis
Creates your Moq.Setups for you!
.DESCRIPTION
Provide a method signature to receive an example of a basic, lazy Mock for the method
.EXAMPLE
$myMethodSignature = "
GetDeploymentStatus(
string someToken,
int someIntValue = 10,
@1RedOne
1RedOne / OnAirFlow.ps1
Created July 28, 2020 17:00
A functional script to turn a light on and off when entering and leaving Teams and Skype Meetings
#Companion Code to blog post found on FoxDeploy.com 'DIY On-Air Light for Microsoft Teams'
Add-Type -Path "C:\Program Files (x86)\Microsoft Office 2013\LyncSDK\Assemblies\Desktop\Microsoft.Lync.Model.dll";
$lightOnEventName = "meetingStart"
$lightOffEventName = "meetingStop"
$iftttKey = '<YourKeyGoesHere>'
$sleepInterval = 180
$lyncclient = [Microsoft.Lync.Model.LyncClient]::GetClient()
$LastState = $null
@1RedOne
1RedOne / GetKeys.ps1
Created July 24, 2020 14:04
Get matching keys from a hash table
$hash = @{
showThisOne = 'showMe1';
showThisTwo = 'showMe2';
showThisThree = 'showMe3';
showThisFour = 'showMe4';
DontShowThis = 'hideme';
AlsoDontShowThis = 'hideme';
}
<Window x:Class="WpfApp2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp2"
mc:Ignorable="d"
Title="MainWindow" Height="1000" Width="800">
<Grid Background="#FF0B4A80">
<Grid.RowDefinitions>
<Window x:Class="WpfApp2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp2"
mc:Ignorable="d"
Title="MainWindow" Height="1000" Width="800">
<Grid Background="#FF0B4A80">
<Grid.RowDefinitions>