Enable Isolated User Mode in Windows 10

UPDATE This for any Windows 10 release pre 1607 (Anniversary Edition). With 1607 this functionality is baked into Hyper-V. You need to enable Isolated User Mode in Windows 10 if you want to, among other things, utilize the virtual TPM chip in generation 2 virtual machines. If you try to start a gen 2 virtual machine with the TPM chip enabled but without Isolated User Mode enabled you get this error message: Read more →

Git and the PowerShell prompt

There is lots of information out there on using Posh-Git. This is nothing new, its just a little helper for me since I have been recently been shuffling through workstations at an alarming rate. If it is useful for you as well, stellar! Install GIT From an elevated powershell prompt: Install-Package posh-git Modify your profile for PowerShell and PowerShell_ISE Reference for PowerShell profiles Read more →

Nested PowerShell Modules

If you are curious about how to import a PowerShell module that has dependencies on other modules this can be done with the module manifest file (PSD1). You can do some pretty wild stuff with a PowerShell Module Manifest file. For starters here is a great outline how that file works with some decent examples. Here is an example of how to have nested PowerShell modules. The nested module in this case being a C# compiled . Read more →

MTG Sealed Booster – Pauper

Update - we are still playing. 3 years strong and it’s still amazing. My friends and I have been playing a homebrew My friends and I have been playing a homebrew for a while and let me tell you, it has been outstanding. We have actually been playing it more than I expected and now we have about 25 boosters worth of cards a piece. In order to spice things up a little bit we have recently started making pauper decks from our libraries as well. Read more →

Intune Conditional Access

Configure Conditional Access to Exchange Online based on Mobile Device Compliance – This only applies when managing devices with Intune integrated into ConfigMgr. Essentially, the lesson here is to do all your compliance management from the ConfigMgr console. Do not use the Intune administrative console ( other than to enable Exchange Online Conditional Access. How to do it wrong – Enable conditional access from the Intune management console ( Read more →

Azure Spending Limit Reached

I have pushed my cloud first ways too far and have just exhausted my azure credits and my subscription has been deactivated! I went to the Azure management portal (legacy) and updated my account and removed the spending limit. But my account is still not activated! Ahhh!! ReadOnlyDisabledSubscription: The subscription [GUID] is disabled and therefore marked as read only. You cannot perform any write actions on this subscription until it is re-enabled. Read more →

MTG Random Deck Color Chooser

function DetermineDeck() { var dieRoll; var numberOfColors; dieRoll = Math.floor((Math.random() * 20) + 1); console.log(dieRoll); if(dieRoll Deck Picker This determines if you are using 1-3 colors in your deck and what the colors are. Read more →

Invoke-Command Example

I use this CmdLet all the time. It is really the bees knees as far as remote management of devices go. Here is an example to use as reference. $ComputerName = "SERVER01" $RemoteSession = New-PSSession -ComputerName $ComputerName #return a scalar value $results = Invoke-Command -Session $remoteSession -ScriptBlock { param($variablePassedToRemoteSession) $output = get-process $variablePassedToRemoteSession Write-output $output } -ArgumentList $variablePassedIn $results | Get-Member #return a more complex object $results = Invoke-Command -Session $remoteSession -ScriptBlock { param($variablePassedToRemoteSession) $process = Get-Process $variablePassedToRemoteSession Write-Output "Handles", $process. Read more →

Creating classes in C# for PowerShell use

Sometimes it is just easier to write compiled code! This is a small example of how to create a custom object in C#and then use it. C# Code Sample using System.Text; public class Beer { public string Name; public string Type; public Beer(string NameIn, string TypeIn) { this.Name = NameIn; this.Type = TypeIn; } } Create a folder with the same name as the dll that gets compiled and place the newly created dll in this folder. Read more →