Skip to content

Powershell

Use ConfigMgr administration service (AdminService) over internet

When I was in MMSMOA, I met Adam Gross. I have known him already in Twitter, but it’s was really nice to meeting him in person. Adam has wrote many excellent posts about AdminServcie, please read his posts for more information, I won’t go to the details here talk about what it is and how to use those cool queries. I will just more focus on the “over internet” I spent three days checking how… 

PowerShell Module for Microsoft Planner

Recently I fall in love with Microsoft Graph. 🙂 I was honored invited to MMSMOA talk about Intune Graph with David Falkus and Timmy Andersson. We talked about what is Microsoft Graph, how to start use it and how to use Intune Graph PowerShell SDK. Last week,  Tom Degreef asked if there is PowerShell Module for Microsoft Planner. So I did some research, and got an idea that how about make my own PowerShell module… 

Detect and remove application from dependent task sequences with PowerShell

I believe most of us use install application steps during operating system deployment, unless you are using fully dynamic scripts to install applications. We often do changes in our task sequence, we made a copy of the original task sequence, made it as backup, then start modify the new ones. In some point, we updated some of applications, and we might want to delete those old applications, but oops, cannot delete, because of number of… 

Use PowerShell monitor WSUS pool status

This is a quick post. One of my colleague asked if I have a script to check if WSUS pool is running, if not then start it. I think it’s properly related WSUS high CPU, high memory and high network usage issue what related to many other matter. Anyway, this post is not about how to fix WSUS, Johan write a post about it, read it from here  So, here is my little script, it… 

Use PowerShell detect if Lenovo laptop is attached docks

Big thanks for Joe Parker (@joe_lenovo) gave us PnP ID of Lenovo ThinkPad Pro/Ultra docks. ThinkPad Pro dock 40A1: USB\VID_17EF&PID_1012ThinkPad Ultra 40A2: USB\VID_17EF&PID_1010 This a simple PowerShell script for detect if Lenovo laptops are attached to dock station, includes mechanical Lenovo ThinkPad docks and Lenovo USB 3.0 Pro/Ultra docks.  Or:

Custom Windows 10 OS Build Number WMI Classes and reporting into SCCM

Updated: Since SCCM 1802, inventory is included Windows 10 build version numbers. So this post is outdated now. Additional Note: Since I posted this, I got an excellent feedback from Mike Terrill @miketerrill , he asked me why not just use the registry property provider to inventory the UBR registry. I guess I must admit that I didn’t know I can do that. I am terribly learning modify mof file, always worry if I make… 

Completely remove Hyper-V Virtual Machines

Yes, I know, why not use Hyper-V console remove Virtual Machines? Thanks for Jokelainen Jouni gave me this idea about create this script! So as you know, when delete Virtual Machines from Hyper-V console, it left all the checkpoint hard disks and virtual hardisks behin. In a case, if you have lots of Hyper-V host, lots of Virtual Machines, it is pain in the ass to clean them up. So I came up this simple… 

SCCM OSD: Tweak OSDResults without UDI (Part 2)

As I mention early in SCCM OSD: Tweak OSDResults without UDI (Part 1), I will try write a part 2 of how to show up OSDResults without UDI step. Before you start to doing this, I will highly recommend you disable F8 debug mode in winpe boot image for your production environment, for security matter. Because the script is password involved. When you don’t use UDI to select what applications you want to install, you… 

SCCM Content Settings Tool 2.1 (PersistCache, BranchCache, FallbacktoDP, DownloadOnSlownetwork)

Fixed: 23.10.2016, Change “PeerCache” to “BranchCache”, thanks for Phil! (I remembered why did I put peercache in the beginning, when using Application SDMPackageXML, it use a keyword “peercache” to define BranchCache settings. 😀 ) Updated: 23.10.2016, Added Package (Advertised), so please download the tool again. I thought was easy to make this tool when I started to make it, but it took me almost three weeks. Had a bit troubles with those little checkboxes and… 

Add/Remove computers to/from AD Group based on OU changes

This has nothing to do with SCCM. For a special reason, I just needed to have a way to add computers to AD group based on their OU. Example you have created different OU name based on which city your computers are, and you also want to add those computers to AD group based on the city, and remove those computers from the AD group when computers are moved to another city OU. So here is…