So you want to have the parameters for your command line change depending on the parameters you select
Continue reading…
Powershell
DHCP – Powershell – Migrate DHCP Scope Leases
This simple script shows you how to migrate a scopes leases from one DHCP server to another,disable the old scope and enable the new one
Continue reading…
Powershell – Solarwinds – Get Devices Connected to Switch Ports
To get powershell access to Solarwinds Orion you need to install the SDK https://github.com/solarwinds/OrionSDK The powershell module installed is SWISPowershell The best way to visually see what you are getting back is to first use SWQL Studio that in installed on your device when you install the SDK Here is some example powershell code […]
Continue reading…
Powershell – List SCCM Duplicates
This is a simple script to list all the SCCM objects that have duplicate names
Continue reading…
SCCM – KB3114874 not installing [Solved]
A weird one – KB3114874 was deployed to a collection of computers. On those that said it was still required, if you forced Software updates evaluation, it would not show in the windows update log as being installed, or failing to install. Nothing, nada, zip! If you check what updates were installed , it was […]
Continue reading…
Powershell – Windows Update Client Sledgehammer aka Reset-WUClient
The following code forces a reset/repair of the Windows Update Client on a device. It is based on https://support.microsoft.com/en-us/help/10164/fix-windows-update-errors Fixes errors in WindowsUpdate.log 0x80070002 0x8024400D 0xc80003f3 0x8024000b 0x8024001E 0x800706B5 hr=8024AFFF
Continue reading…
Powershell – SCCM Client Sledgehammer aka Reset-CMClient
The following code forces a reset/repair of the SCCM Client on a device. It is very basic, but it succeeds where Install-CMClient fails even if you force the uninstall before installing
Continue reading…
Powershell – Rest API Basics
Probably the best explanation I have understood, without getting into too much technical or code specific explanation, so have a listen
Continue reading…
Using Powershell To Access The Rest API in Cherwell
To access the Rest API in Cherwell is pretty straight forward, unless like me you are an engineer that users powershell… So here is may way to explain it as an engineer. First you need to understand how the Rest API works and how to configure Cherwell so you can access it.
Continue reading…
Powershell – Cherwell Login Using Rest API and Windows Authentication
This is a powershell function to enable you to login to Cherwell using the Rest API with transparent windows authentication (the credentials you are running the powershell session with). But there is some work you need to do first.
Continue reading…