Automating tasks of an IT-professional
PowerShell, SCCM, Intune and Windows deployment: scripts and notes from the field.
-
Export CSV SCCM software report using PowerShell
When you are taking over an SCCM setup from another technician – or want an insigt on your own setup – it might be difficult to get an overview of the different…
-
Move computer object in a SCCM Task Sequence using a PowerShell script
This script is useful if you re-image a machine which will re-use its AD computer name, or a new machine which needs to be moved to a specific OU chosen in a…
-
Automatically create device collections based on software metering rules
I had a lot of software at a costumer which needed to be uninstalled automatically because of expensive licencing. I stumbled upon this article from systemcenterdudes where Nicolas Pilon have created queries and collections in…
-
IntuneWinAppUtil PowerShell GUI
Microsoft has introduced the ability to create your own packaged Win32 applications to deploy in Intune. What this makes possible, is to package your MST based MSI installations – or even scripted…
-
Fixing the Software Metering agent when having error 80070424 in the mtrmgr.log
I was configuring Software Metering at a costumer when reports seemed wrong. The costumer had already configured metering on Visio,exe which had been running for years, but only 60 installations was reporting…
-
Get users with no primary device in SCCM
After a SCCM client agent implementation, it could be useful to see if there is any user, without any Primary User device.This information could indicate if there is any computers in your…
-
SCCM Agent Installation – How to implement Jason Sandys script as an Scheduled Task
During an installation and partial upgrade of SCCM clients on my work we ran into som issues. About 200 clients was unable to be installed with the client push method. The log…
-
Create an SCCM collection with Powershell WMI
Automation is the keyword to get rid of repetitive tasks – then you can focus on the real work right? So here we go again, this time to create a User Collection…
-
Create an SCCM folder with Powershell WMI
Being a IT professional leads to many functions :). Here is one for creating a container node aka. SCCM folder. The function uses the write-log function which you can find here
-
Simple log function with Powershell
When it comes to powershell logging in simple scripts i always use this. Each time you use the function it writes the time and append the text to a .log file.The two…