#PowerShell
-
May 13, 2019
DNS Management Tool Missing in RSAT Windows 10 1809 - SCCM Package
If you upgraded to Windows 10 1809, and re installed RSAT, but the DNS Management tool is missing from RSAT, you can use this Powershell Script to make it a SCCM Application in your Software Center...
-
Nov 26, 2018
How to hide shared folders under DFS Namespaces
Solution is here: https://pcmusings.wordpress.com/2010/12/09/how to hide shared folders under dfs namespaces/ attrib –r +h +s <folder path /L
-
Aug 24, 2018
Prompt to Rename Computer During Task Sequence via Powershell
Here is my powershell script to prompt to rename computer during SCCM OSD Task Sequence. It will first auto popular machine name according to serial number, and then ask user to rename computer. If...
-
May 12, 2017
Another way to check Update Installed via Powershell
I have to check if machine has MS March update installed, and SCCM cannot make my job simpler :( So I created a new compliance rule to check the result, here is the code: $error.clear() try {...
-
Feb 17, 2017
Find A File with Random Characters and Send Email by SCCM Compliance Rule
Here is my Powershell script for Finding a file with random characters in the end, if the system find the file, it will email to our alert mailbox as well. This is done by SCCM Compliance Rule: File...
-
Feb 17, 2017
SCCM Compliance Rule for Finding Process Running
Here is my powershell script for finding if a process is running with SCCM compliance rule. $process = Get Process Process name xxx ErrorAction SilentlyContinue if ($process) { Write Host "Running" }...
-
Nov 18, 2016
Find Current User via Powershell
sometimes if you run as local admin, but your current user is not a local admin, then you need some special way of finding the current username: $user = (gwmi Query "Select \ from Win32\ Process...
-
Oct 24, 2016
Add a SCCM deployment with Powershell
Here is a powershell command for creating a SCCM deployment Start CMApplicationDeployment CollectionName "Collection Name" Name "Softwarename" DeployAction Install DeployPurpose Available...
-
Aug 12, 2016
Remote Control SCCM Package
With SCCM 2012, I love the Remote Control function, so much better than RDP! and it comes with SCCM console. For those don't have SCCM console, I have wrote a Powershell script to just to run Remote...