Use WMIC to get the exact model/make of your computer

A short tip and note to myself. A quick way to get the exact model and manufacturer from a Windows PC using the command line.

wmic computersystem get model,name,manufacturer,systemtype

This command gives me all the information I need to add the client for MDT deployments..

We usually configure MDT to look for the Model + Manufacturer to locate the drivers needed for the computer. We will add a driver group on the MDT Deployment share and inject the drivers in the MDT Task Sequence to filter the drivers like ‘Windows 7 x64\%make%\%model%. These are Windows variables.

This will give us the following folder tree for the Out-of-Box Drivers folder in MDT.

MDTdrivesr

 

Allow change password via RDP

I’ve experienced a few times that i’m not allowed to login using RDP because my password is expired or that ‘use must change password at next login’ is enabled in the Active Directory.

Today was one of those moments. I could not login to an customer environment i havent logged in to for a while, because my password was expired. So ehm.. I had to login to change my password, but I could not login to change my password because my password was expired.. right..
Now what? The customer wasn’t available at that time and I had to get to work.

I have found the following work around for that.

Lokaal

  1. Start mstsc.exe
  2. enter the remote desktop connection
  3. Click ‘Save as..’
  4. Save the RDP file as something like: ChangePassword.RDP
  5. Open notepad.exe and open the RDP file you just created.
  6.  add enablecredsspsupport:i:0 at the bottom of the file.clip_image003_thumb

Save the file, start the RDP connection using this file. Now you will have the possibility to change your password!

What if CredSSP is required?

If CredSSP (Credential Security Support Provider is required to login to the remote desktop, you will get the following error message:
Try to make an RDP connection using the full FQDN (servername.domain.local) in stead of just the servername. Otherwise, the above solution is not possible. Except when you disable CredSSP.

CredSSP can be disabled to change de RDP settings on the remote desktop to disable ‘Allow connections only from computers running Remote Desktop with Network Level Authentication (recommended).’

Android: Manually install the OTA update using your PC (Nexus 5)

Android version 6, or Android Marshmellow, is released today. If you, just like me, can’t wait for the automatic Over The Air (OTA) update from your provider, you can manually install this OTA update. This post describes the update process for the LG Nexus 5, But the steps are mostly the same for other phones.

Using this method, your personal data on your phone will be saved. Just like a normal phone update!

Requirements

Install USB Debugging

To allow your phone to make a connection with your PC and transfer the OTA files, you need to install the Android SDK tools. These SDK tools include the right drivers for your phone. To install the OTA update, we only need the ADB and Fastboot tools from the SDK. I have used the following installation: [TOOL]Minimal ADB and Fastboot [8-28-15].

Install ‘Minimal ADB and Fastboot’ using the following steps:

  1. Download the installation files from the following website: [TOOL]Minimal ADB and Fastboot [8-28-15]
  2. Follow the installation steps from the setup and chose a location. I have chosen for c:\program files\MinimalADB\. Continue installing the tools.
  3. After the installation, go to Start -> Run -> cmd.exe
  4. Type in:  cd “c:\program files\minimaladb”

Android Marshmellow installation files

Download the Android OTA update files. In this post, I will install Android 6.0 (Marshmellow). The installation files can be found here: Android 6.0 Marshmellow.

and place the files in the installation folder where you previously have installed ADB and Fastboot. In my case, I will place them in c:\program files\MinimalADB\update.zip.

Manually push the OTA update to your phone

You can attach your phone to your pc now.

In the earlier opened command line field, execute the following steps:

  1. enter in the command line field: ‘adb devices‘ and wait for your device to turn up like ‘serienummer           devices’
  2. enter in the command line field: ‘adb reboot recovery
  3. In Recovery mode, push the volume down button untill you see Recovery Mode and press the Power Off button
  4. If the Android robot shows uyp, do the following: Hold Power Off for a few seconds and press Volume Up
  5. You will see a small menu. Press  ‘Apply update from ADB’ with the Power Off button.
  6. enter in the command line field: ‘adb sideload update.zip

The OTA update will start now. This can take a while! It took almost 30 minutes for me. You can see the exact status in the command line field and on your phone.

IMG_2055