MDT

Back to Basic – CustomSettings.ini – Converting Model and ModelAlias into Roles

The Deployment Bunny - Fri, 05/22/2015 - 01:17

So, someone asked me(you know who you are) if it is possible to convert something like a computer model into a role, and yes that is possible and some times a pretty smart thing to do. It becomes really great if you are using the ModelAlias Userexit script and you would like to use the database to define settings. The database has support for make and model, but since you are using modelalias instead of make and model, well then you can define settings as a role instead. The only thing you need to do is to convert the ModelAlias value into a Role and you are done. In this post I will describe two scenarios, one when you convert model into a role and the other is when you turn the modelalias into a role.

Converting Model into a Role:

In the customsettings.ini file we have three sections in the priority line: ConvertModelToRole,Role,Default and one customproperty just for fun

  1. ConvertModelToRole – will set the Role001 into RoMo-“the return of the model”
  2. Role – will search for a section with the name of RoMo-“the return of the model”
  3. Default – set default values


Sample CustomSettings.ini file


The output when running ZTIGather.wsf to test the inifile.

Converting ModelAlias into a role:

In the customsettings.ini file we have four sections in the priority line: HardwareInfo,ConvertModelToRole,Role,Default

  1. HardwareInfo – will execute the modelalias userexit script and return a value from that script
  2. ConvertModelToRole – will set the Role001 into RoMo-“the return of the model alias user exit script result”
  3. Role – will search for a section with the name of RoMo-“the return of the model alias user exit script result”
  4. Default – set default values


Sample CustomSettings.ini file


The output when running ZTIGather.wsf to test the inifile.

You can download the sample ini files here: http://1drv.ms/1LiIw7H

The UserAlias Userexit script is here: http://1drv.ms/1LiIVHh

Instructions on how to test customsettings.ini is here:https://anothermike2.wordpress.com/2011/04/27/quick-and-dirty-testing-customsettings-ini-variables-in-mdt/

/mike


Categories: MDT

Back to Basic – CustomSettings.ini – Converting Model and ModelAlias into Roles

The Deployment Bunny - Fri, 05/22/2015 - 01:17

So, someone asked me(you know who you are) if it is possible to convert something like a computer model into a role, and yes that is possible and some times a pretty smart thing to do. It becomes really great if you are using the ModelAlias Userexit script and you would like to use the database to define settings. The database has support for make and model, but since you are using modelalias instead of make and model, well then you can define settings as a role instead. The only thing you need to do is to convert the ModelAlias value into a Role and you are done. In this post I will describe two scenarios, one when you convert model into a role and the other is when you turn the modelalias into a role.

Converting Model into a Role:

In the customsettings.ini file we have three sections in the priority line: ConvertModelToRole,Role,Default and one customproperty just for fun

  1. ConvertModelToRole – will set the Role001 into RoMo-“the return of the model”
  2. Role – will search for a section with the name of RoMo-“the return of the model”
  3. Default – set default values


Sample CustomSettings.ini file


The output when running ZTIGather.wsf to test the inifile.

Converting ModelAlias into a role:

In the customsettings.ini file we have four sections in the priority line: HardwareInfo,ConvertModelToRole,Role,Default

  1. HardwareInfo – will execute the modelalias userexit script and return a value from that script
  2. ConvertModelToRole – will set the Role001 into RoMo-“the return of the model alias user exit script result”
  3. Role – will search for a section with the name of RoMo-“the return of the model alias user exit script result”
  4. Default – set default values


Sample CustomSettings.ini file


The output when running ZTIGather.wsf to test the inifile.

You can download the sample ini files here: http://1drv.ms/1LiIw7H

The UserAlias Userexit script is here: http://1drv.ms/1LiIVHh

Instructions on how to test customsettings.ini is here:https://anothermike2.wordpress.com/2011/04/27/quick-and-dirty-testing-customsettings-ini-variables-in-mdt/

/mike


Categories: MDT

Working with managed applications within Configuration Manager 2012 R2 SP1

Coretech Blog » Kent Agerlund - Thu, 05/21/2015 - 16:00
First, let’s define a managed application. In essence it’s a special policy that enable you to control settings in the application or browser like data encryption, can the user save the document as a new file etc. To successfully deploy a managed application you need to mix the application deployment with an application management policy. […]
Categories: MDT

Windows Mobile Phone 8.1 support gone after upgrading to Configuration Manager 2012 R2 SP1

Coretech Blog » Kent Agerlund - Thu, 05/21/2015 - 11:43
One of the many changes in the newly released SP1 is support for Windows Phone 8.1 After the upgrade only there will only be support for Windows Phone 8.0. Navigate to the Administration workspace, select Cloud Services, right click your Intune connector, Configure Platforms, Windows Phone. Notice that Windows Phone 8.1 is not enabled.   […]
Categories: MDT

Upgrade to System Center 2012 R2 Configuration Manager SP1

Coretech Blog » Kent Agerlund - Tue, 05/19/2015 - 15:14
Below is the guide that I normally use for a service pack upgrade in a single primary site environment. I will not go into the story about what files you should download as that is already explained by Jason Sandys here – http://blog.configmgrftw.com/service-pack-madness/  Planning and Testing Back up the SQL Server database and restore a […]
Categories: MDT

Using PowerShell to get VM IP addresses

Virtual PC Guy's WebLog - Mon, 05/18/2015 - 13:46

Here is a handy PowerShell snippet:

Get-VM | ?{$_.ReplicationMode -ne "Replica"} | Select -ExpandProperty NetworkAdapters | Select VMName, IPAddresses, Status

Which delivers an output like this:

As you can see, it lists the IP addresses of all the virtual machines running under Hyper-V.  A couple of notes to make about this:

  • I use Hyper-V Replica heavily.  So I have developed the habit of always filtering out Replicas - so I do not worry about them.
  • I look at the network adapter status, because (as you can see) it allows me to tell the difference between a VM without an IP address - and a VM that is not reporting whether it has an IP address or not.

Hopefully you will find this useful in your environments.

Cheers,
Ben

Categories: MDT

Programmatically keeping the VM screen on

Virtual PC Guy's WebLog - Wed, 05/13/2015 - 15:58

A while I ago I did a blog post on how Windows will "turn off" our virtual computer screen to "save energy" (you can read about it here).  Recently, I was contacted by a team inside Microsoft who wanted to figure out how to stop this from happening - programmatically.

Their problem was that they were using our Thumbnail API (you can read about it here) to grab copies of the virtual machine screen - and were frustrated when it stopped updating.  Thankfully - the solution was easy:

  • For Windows virtual machines - run: "powercfg /setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 0" inside the virtual machine
  • For Linux virtual machines - run: "xset s off" inside the virtual machine

Now the screen will always be on, and the thumbnail will always be up-to-date.

Cheers,
Ben

Categories: MDT

My sessions at Ignite

Virtual PC Guy's WebLog - Tue, 05/12/2015 - 15:55

Well, I had a lot of fun at Ignite.  Thanks to everyone who turned out to hear about all that we are doing, and to everyone who came by the booth with questions to ask.

Recordings of the two sessions I presented are available online now:

Now it is time for me to get back to work!  See you all at the next event.

Cheers,
Ben

Categories: MDT

Speaking at SCUG.no – 2015-06-25

The Deployment Bunny - Sun, 05/10/2015 - 16:45

I’m proud to announcing that I will be one of the speakers at SCUG.no

My session is at 13:30 to 14:30 and will 100% focusing on Windows Server 2016 in the Modern Datacenter!

Session 4: “Windows Server vNext in the Modern Datacenter”

Windows Server has changed over the last few years, it has now become the main engine regarding Software Defined Compute, Storage and Network. In the demo intense session you will learn how to design, build and take advantage over the new features in Windows Server vNext.
(Speaker: Mikael Nystrom, MVP)

For more information http://www.scug.no/events/system-center-user-group-meeting-june-2015/

/Mike


Categories: MDT

Microsoft Virtual Academy (MVA) – Storage Spaces Deep Dive

The Deployment Bunny - Fri, 05/08/2015 - 06:10

I have been working with Windows Server Storage Spaces since it was invented. It is great technology and I love it! Recently I was asked to be a part a MVA session on Storage Spaces and I just could not resist. My idea was to do something that is based on our real experience building storage spaces solutions.

So, together with Markus Lassfolk and Ola Skoog we did a Microsoft Virtual Academy class with four parts,

  • Storage Spaces: Architecture
  • Storage Spaces: Design
  • Storage Spaces: Performance
  • Storage Spaces: Lessons From The Field

If you are into Storage Spaces and you would like to know from experienced MVP’s building Storage Spaces, this is for you, Enjoy!

http://www.microsoftvirtualacademy.com/training-courses/storage-spaces-deep-dive


Categories: MDT

Links and tools from our Ignite Instructor lab – Upgrading to Windows 10 using ConfigMgr 2012 R2

Coretech Blog » Kent Agerlund - Wed, 05/06/2015 - 11:59
Thanks all for attending the Instructor led lab @Ignite – All three Vikings had a great time on stage – thanks for turning the ILL into a very interactive breakout session   Download the labfiles, scripts and instructions from the lab – http://blogs.technet.com/b/configmgrteam/archive/2014/10/29/how-to-upgrade-to-win-10-using-the-task-sequence-in-sc-2012-r2-configmgr.aspx Download ConfigMgr Technical preview – http://www.microsoft.com/en-us/evalcenter/evaluate-system-center-configuration-manager-and-endpoint-protection-technical-preview?i=1 Driver Import script – http://blog.coretech.dk/kea/automate-importing-and-creating-drivers-packages-in-sccm-2012-r2/
Categories: MDT

Notes and links from the #Ignite Pre-Day, Enterprise Management

Coretech Blog » Kent Agerlund - Mon, 05/04/2015 - 05:54
Slides and links Here is the link to the slides: http://deploymentresearch.com/DRFiles/MSIgnite2015preday.zip Video to deploying Windows 10 IoT to Raspberry Pi 2 https://www.youtube.com/watch?v=Q5SfPTykM6A Hydration Kit for System Center 2012 R2 http://deploymentresearch.com/Research/Post/407/The-Hydration-Kit-for-System-Center-2012-R2-is-available-for-download The script that exported task sequences was gathered from the following post http://trevorsullivan.net/2010/05/13/exporting-configmgr-task-sequences (by Trevor Sullivan) The script that imported task sequences was gathered from […]
Categories: MDT

Windows Server vNext – Hyper-V in Hyper-V

The Deployment Bunny - Fri, 05/01/2015 - 16:23

Yes, it is true

Continue reading the story at the source for much more information!!!

http://www.hyper-v.nu/archives/hvredevoort/2015/05/nested-hypervisor-in-windows-server-vnext/


Categories: MDT

Nice to Know – Deploying Windows 10 IoT to a Raspberry PI 2

The Deployment Bunny - Fri, 05/01/2015 - 15:44

So, just for the fun of it I got 2 Raspberry PI 2 a while back, someone said to me that they could run Windows 10 and therefore they can be deployed, and therefore I must try. So far I have no idea what to do with them, but I’ll find out eventually.

Note: My friend Johan Arwidmark has done a great Video, you will find it here: https://www.youtube.com/watch?v=Q5SfPTykM6A

Step One:

Go to https://dev.windows.com/en-US/iot

Step Two:

Select the Raspberry Pi 2 (or if you have something else, select that device)

Step 3:

This is what you need:

  • A PC running Windows 10 (it can be a VM “if” you have a VM platform that can write to a Micro SD card) build 10069 or higher
  • A Raspberry Pi 2
  • A Micro USB power supply, go for one with 2A or better, that way you will have enough power when you start connecting stuff to your USB ports
  • A Micro SD Class 10 device, I’m running the Samsung Evo 16GB Micro SD’s, works great!
  • A HDMI cable and a monitor, just for the fun to see when things happens, but not needed
  • An Ethernet cable connect to your network with DHCP
  • The “image” that you get from connect http://connect.microsoft.com/windowsembeddedIoT/Downloads/DownloadDetails.aspx?DownloadID=57782

This is how you do:

  • Download and unzip the image from connect and store in a folder
  • Insert the Micro SD in your computer
  • Find the disk number that SD card is using (take a pick)
    • Using Disk part
      Diskpart.exe
      List Disk
    • Using WMIC
      wmic diskdrive list brief
    • Using PowerShell
      Get-PhysicalDisk | Select-Object FriendlyName,DeviceId
  • Apply the Image to the Micro SD using an elevated prompt usin g this command. Note Replace “N” with your number for the drive:

    dism.exe /Apply-Image /ImageFile:flash.ffu /ApplyDrive:\\.\PhysicalDriveN /SkipPlatformCheck
  • Wait until it is done and use the safe remove feature in Windows to remove the Micro SD
Step 4:
  • Insert the Micro SD in the Raspberry PI
  • Connect Network
  • Connect HDMI
  • Connect Power
  • It will now boot and configure it self, when its done you should see this:

Step 5:

So, the PI is up and running and you need to connect to it and to do that you need an IP address, and that’s when the HDMO monitor comes very “handy” since the IP address will be on that screen…

#Bug fix for StackOverFlow
remove-module psreadline -force

#Setting Vars
$ThePIIP = ‘192.168.133.125’
$ThePIPassword = ‘p@ssw0rd’
$ThePIUserName = ‘Administrator’
Set-Item WSMan:\localhost\Client\TrustedHosts -Value $ThePI -Force

$SecurePassword = $ThePIPassword | ConvertTo-SecureString -AsPlainText -Force
$Credentials = New-Object System.Management.Automation.PSCredential -ArgumentList $ThePIUserName, $SecurePassword

Enter-PsSession -ComputerName $ThePIIP -Credential $Credentials

After that you should have a remote PowerShell prompt up and running and if you do it in ISE, you will also see that the command windows on the right side will get updated with all the commands that does exist in the OS:

Step 6:

Time to configure:

Here is a nice link of commands that are available

http://ms-iot.github.io/content/win10/tools/CommandLineUtils.htm

You should change the password and if you want you can also change the name of the device…

Step 7:

Just for the fun of it:

You can access the device using FTP:

If you browse to ftp://192.168.133.125/Windows/ImageUpdate/OEMInput.xml you can see that you are actually running a Windows Phone…

You can access the device using the web:

When accessing using the web you will see a bunch of different functions you can perform, you can even upload your appx applications and install them…

Links that you will find handy:

https://www.youtube.com/watch?v=Q5SfPTykM6A

http://www.element14.com/community/docs/DOC-76402/l/windows-10-iot-core-on-the-raspberry-pi-2

http://www.element14.com/community/docs/DOC-76415/l/running-windows-10-iot-core-and-code-on-the-raspberry-pi-2

http://microsoft.hackster.io/

https://www.youtube.com/watch?v=Hkm4THS3Rf8

/mike

 

 

 

 

 


Categories: MDT

Speaker at Windows Management User Group Netherlands (WMUG NL) on 2015-05-13

The Deployment Bunny - Fri, 05/01/2015 - 14:19

I’m proud to be invited to speak at WMUG in May. This time my session is all about Windows Server vNext. The Session will be in English, mostly because my Dutch is not really that good, in fact its horrible…

To sign up:

http://wmug.nl/2015/05/01/wmug-webinar-3-13-05-2015-windows-server-vnext-get-ready-hosted-by-mikael-nystrm-microsoft-mvp-and-principal-architect-at-truesec/

/mike


Categories: MDT

Nice to Know – Windows 10 OS Deployment links

The Deployment Bunny - Fri, 05/01/2015 - 13:56

Here are the basic media you need to start Windows 10 OSD.

Windows ADK RC for Windows 10

https://msdn.microsoft.com/en-us/windows/hardware/dn913721(v=vs8.5).aspx

(Note: it will be located at the last part of the page)

Windows 10 Insider Preview ISO April Update

http://windows.microsoft.com/en-us/windows/preview-iso-update-1504

Windows 10 Enterprise Insider Preview

https://www.microsoft.com/en-us/evalcenter/evaluate-windows-enterprise-insider-preview

MDT 2013 Update 1 Preview

https://connect.microsoft.com/ConfigurationManagervnext/Downloads/DownloadDetails.aspx?DownloadID=57061

/mike


Categories: MDT

My Sessions at Microsoft Ignite 2015

The Deployment Bunny - Fri, 05/01/2015 - 11:49

Hands-on Windows 10 Enterprise Deployment

Want to know how to prepare for Windows 10, or how to upgrade from Windows 7, 8, or 8.1 to Windows 10? Maybe you want to know how to build, customize, and deploy your own Windows 10 image? In this pre-day session we explore all of those areas, with hands-on labs to ensure that you’ll be ready for Windows 10 in your organization.

Sunday, May 3rd  – 9:00 am to 5:00 pm

Troubleshooting Windows 10 Deployment: Top 10 Tips and Tricks

Need help with troubleshooting Windows deployment issues? Johan and Mikael share lessons learned around handling device drivers in the deployment process, common deployment issues and their workarounds, parsing log files, WinPE and PXE troubleshooting, UEFI deployments. As a foundation, Microsoft Deployment Toolkit and Microsoft System Center Configuration Manager will be used. You can expect a lot of live demos, tips, and tricks in this session.

Wednesday, May 6th – 10:45 am to 12:00 pm

Expert-Level Windows 10 Deployment

Join us for a live demo on how to build a Windows deployment solution, based on Microsoft System Center Configuration Manager. In the session we are taking OS Deployment in Microsoft Deployment Toolkit and System Center Configuration Manager to its outer limits. Deployment tips, tricks, and hard core debugging in a single session. You can expect a lot of live demos in this session.

Thursday, May 7 7th – 9:00 pm to 10:15 pm

Windows 10 Deployment: Ask the Experts

Still have questions about Windows deployment, even after all the other sessions this week? For this session, we gather as many experts as we can find for a roundtable Q&A session, with plenty of “official” and “real-world” answers for everyone, troubleshooting and implementation advice, and probably a fair number of opinions and “it depends” answers as well.

Thursday, May 7 7th – 3:15 pm to 10:15 pm

Book signing in the Bookstore

If you for any reason would like to have a book written by me signed, I’ll be there and I will happily sign it for you:

Wednesday, May 6th – 12:30 pm


Categories: MDT

Power belongs to YOU–the OSD Prestart Command

Steve Rachui's Manageability blog - Wed, 04/22/2015 - 18:49
The topic of imaging is big with lots of options, lots of flexibility, lots to learn and lots of decisions to make! One such option is deciding whether to make use of the prestart command. Configuring the prestart command is done either directly on the...(read more)
Categories: MDT

Hyper-V Survey

Virtual PC Guy's WebLog - Tue, 04/21/2015 - 13:15

We want to hear from you!   Right now there is a small survey (under 10 minutes of work to complete) on Hyper-V available here:

https://www.instant.ly/s/G5bPn?s=bb

In this survey we:

  • Ask for some basic information about how you are using virtualization
  • Ask for feedback on Hyper-V in Windows Server 2012 R2
  • Give you the option to participate in future Hyper-V surveys

Looking forward to learning more about what people are doing with Hyper-V.

Cheers,
Ben

 

 

 

Categories: MDT

The Most Popular Hyper-V PowerShell Cmdlets - by Bing

Virtual PC Guy's WebLog - Fri, 04/17/2015 - 13:00

Last week Jose Barreto made an excellent post about using PowerShell and Bing to check the popularity of various SMB PowerShell cmdlets.  Well, I could not resist doing the same with Hyper-V!  I made a slight tweak to Jose's code - by storing my data in a hashtable.  This made it easier to sort and output for later use.  Here is the code I used:

Add-Type -Assembly System.Web
$WebClient = New-Object system.Net.WebClient

Function Get-BingCount([string] $Term) {

    # Add plus and quotes, encodes for URL
    $Term = '+"' + $Term + '"'
    $Term = [System.Web.HttpUtility]::UrlEncode($Term)

    # Load the page as a string
    $URL = "http://www.bing.com/search?q=" + $Term
    $Page = $WebClient.DownloadString($URL)

    # searches for the string before the number of hits on the page
    $String1 = '<span class="sb_count">'
    $Index1 = $Page.IndexOf($String1)

    # if found the right string, finds the exact end of the number
    If ($Index1 -ne -1) {
        $Index1 += $String1.Length
        $Index2 = $Page.IndexOf(" ", $Index1)
        $result = $Page.Substring($Index1, $Index2 - $index1)
    } else { $result = "0" }

    # Return the count
    return $result
}

$CmdletList = Get-Command -Module Hyper-V | Select Name
$CmdletCount = $CmdletList.Count -1
$hashTable = $null
$hashTable = @{}

0..$CmdletCount | % {

    # Tracks progress
    Write-Progress -Activity "Checking cmdlet popularity" -PercentComplete ($_ * 100 / $CmdletCount)

    # Check the popularity with Bing
    $cmdlet = $CmdletList[$_].Name
    $count = [int] (Get-BingCount $cmdlet)

    # Put data in a hashtable
    $hashTable.add($cmdlet, $count)
}

$hashTable.GetEnumerator() | sort value -Descending | select @{N="Cmdlet";E={$_.Name}}, @{N="Popularity";E={$_.Value}}

Write-Progress -Activity "Checking cmdlet popularity" -Completed

# Releases resources used by the web client
$WebClient.Dispose()

And the results?  Well - I am happy to let you know the top twenty Hyper-V PowerShell cmdlets are as follows:

Cmdlet Popularity ------ ---------- New-VM 411000 Get-VM 91400 Start-VM 81300 Set-VM 66300 Convert-VHD 60700 Mount-VHD 55900 Export-VM 49900 New-VHD 44600 Move-VM 44600 Stop-VM 42700 Remove-VM 42000 Import-VM 41100 Get-VMHost 29500 Save-VM 26400 Resize-VHD 24600 Restart-VM 24200 Test-VHD 22100 Get-VHD 17900 Suspend-VM 16900 Resume-VM 14300 Compare-VM 14100

Cheers,
Ben 

Categories: MDT

Pages