Quantcast
Channel: Deployment Research - Johan Arwidmark
Viewing all articles
Browse latest Browse all 168

Samples from the @SCU2014 webinar on ConfigMgr 2012 R2 OSD

$
0
0

On November 13, 2013, I presented a webinar for System Center Universe were I was using a few PowerShell scripts (well two), to enumerate variables during deployment.

After the session I got a request for the scripts, so here they are:

EnumVariable.ps1

Just listing the properties used by the task sequence

Write-Host "PowerShell is King!"

$tsenv = New-Object -ComObject Microsoft.SMS.TSEnvironment
$tsenv.GetVariables() | ForEach-Object {Write-Host $_}

Exit 0

R2PowerShell.ps1

Listing the properties and their values used by the task sequence

Write-Host "PowerShell is King!"

$tsenv = New-Object -ComObject Microsoft.SMS.TSEnvironment
$tsenv.GetVariables() | % { Write-Host "$_ = $($tsenv.Value($_))" }

Exit 0
Happy deployment, Johan
More ...

Viewing all articles
Browse latest Browse all 168

Trending Articles