
Technology


Microsoft Deployment Toolkit (MDT) for newbies - Part 3
In part 2, we installed everything and got out first task sequence working. Now lets go further and finish off our reference image.

Microsoft Deployment Toolkit (MDT) for newbies - Part 4
Now that we have captured our first reference image, we can import this reference image and start creating our production image right? Well, let do some reference image clean up first.

Microsoft Deployment Toolkit (MDT) for newbies - Part 5
In our final part, we want to create the offline media to use to reimage our physical machines.

SETTING UP A VIRTUAL SCCM TESTLAB – PART 4

SETTING UP A VIRTUAL SCCM TESTLAB - PART 3
This post picks up after part 1 and part 2. I suggest you read both parts first to understand what is happening here in part 3.
Anyway, this has been long overdue :-)
In this part, we will be looking at setting up some initial group policies, setting up firewall rules, installing SCCM prerequisites, and finally installing SCCM.
Well, lets get started then

Setting up a virtual SCCM testlab
Introduction
This post is meant to guide you through setting up a simple, DIY, for your own use, test environment. This lab will be a simple Windows domain with SCCM and 1 client machine.
Everything will be setup using virtual machines on 1 single host. The example below assumes this will be done on your own workstation, but that does not have to be the case, and you can set this up remotely somewhere else as well.

PowerShell App Deployment Toolkit
In my line of work, knowledge of how installations work is crucial. And with that knowledge, comes experience making terrible vendor installations work properly in an enterprise environment. For years, the standard solution, when troubleshooting and experimenting was going nowhere, was to repackage the troublesome app. Where experimenting lead somewhere, there might have been an eventual VB script written to cater for all the complexities involved to get everything working properly.
Some of the common challenges were
Show a nice interface to let users know something was happening, for silent installs
Install admin (system context) and user level files or registry keys, from the same script.
Return proper error codes back to the deployment system (commonly SCCM)
Link together several installations
Switch between install types (interactive, passive or silent; pulled install, task sequence, server install, etc)
These were common problems, and in some cases, you had to make several installation scripts, to cater for different scenarios. Ok, if you had enough time, you could create a script that accepted certain parameters on launch, to do different things. But in the rush to meet SLAs, you would do the most urgent thing first, and then go back to revisit the app later, when a different scenario was needed.
Which is why I was happy to find the PowerShell App Deployment Toolkit, as a common deployment toolkit to help with the common packaging and deployment issues.

Automatic Shutdown If No One Logs In
Ok, here is my situation.
Once I’m done using my home PC for the day, I shutdown my Windows 10 PC as I normally would from the Start menu. The next morning, while I’m away at work, my son comes along, presses a few keys on my keyboard, and my PC switches on back to life. My PC remains on for the whole day until I come back home from work.
Sounds familiar? Well, that is what I faced, and I was looking for an automated solution: once my PC turns on, wait for several minutes, then check if someone is logged in. If no one is logged in, shutdown the PC. And here is what I finally ended up with.
I wanted something which will work and log what happens as well. And being that PowerShell is sort of the “replacement” of VBS and CMD files, this would be in PowerShell as well.
First things first, how do i detect if someone is logged in to the machine? Turns out, this can be quite complicated. The first Google link I found was on the Spiceworks Forum. That did not work. Then I tried a few more links. All seemed far too complicated, although it would eventually work. I think.

