Uninstall the OMS Agent

Just keeping this here for future use. This will remove the OMS client / Microsoft Management Agent. Cheers! $App = Get-WmiObject -Query 'select * from win32_product where ` IdentifyingNumber = "{742D699D-56EB-49CC-A04A-317DE01F31CD}"' $App.Uninstall() Read more →

Download Office 2016 Updates Easier

I am a firm believer of keeping your Office installation source fully patched. This can reduce your deployment time and increase security while improving the end user experience. I have written a simple script that downloads all required Office 2016 x86 software updates using a list of updates I have published and data pulled from ConfigMgr based on entries in that list. I have a previous blog post on how to do this using ConfigMgr to search for available software updates download them to a deployment package, remove any problem updates and then extract the MSP files. Read more →

Removing ConfigMgr Drivers with missing source files

You can find the drivers with missing source files removal script here. This is the second article in a series a driver articles. You can find part 1 here. Driver management with ConfigMgr can be a bear at times. Without some attention to detail towards organizing your driver source locations it is not uncommon for driver source files to be deleted before the driver is removed from ConfigMgr, by accident or otherwise. Read more →

Import boot image drivers from existing boot image

With the new “Current Branch” model of ConfigMgr and Windows 10 we can expect a faster release cycle of the ADK, which means new boot images pretty regularly! Creating new boot media is really simple. However, reimporting all of your required drivers into that boot image can be a real chore. Here is a script that identifies drivers in a source boot image and imports them into a destination boot image. Read more →

Maintaining Your Office 2016 Installation Source

Deploying an updated Office installation has always been an annoyance of mine. It is ideal to be able to deploy a fully updated Office installation so you don’t have to run a software update scan and then wait for all the office patches to download and install. Having to install less software updates can reduce your deployment or build and capture times significantly. To avoid all of this legacy overhead, use Office 365 Click to Run edition. Read more →

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 →

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 →

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 →