~Win10-1803::STAGE2::Install
Log In or Register to download the BES file, and more.

0 Votes

Description

Win10-1803::STAGE1::Stage Installation Files

  • Stage all required installation files to "c:\temp\Win10"  (Precache for future deployment)

Win10-1803::STAGE2::INSTALL

  • Perform inplace upgrade to Window 10 1803

Win10-1803::STAGE3::Cleanup

  • Removes the Stage Installation Files

Property Details

ID25519
StatusProduction - Fully Tested and Ready for Production
Title~Win10-1803::STAGE2::Install
DomainBESC
CategoryUpgrade
Download Size10
SourceMicrosoft
Source IDUnspecified
Source SeverityUnspecified
Source Release Date10/17/2017 12:00:00 AM
CVENamesUnspecified
KeywordsWin10 1803
Is TaskTrue
Added by on 6/6/2018 11:41:26 AM
Last Modified by on 6/6/2018 11:41:26 AM
Counters 522 Views / 48 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 354 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else false) AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 3 fixlets   * Results in a true/false
Show indented relevance
x64 of operating system AND not ia64 of operating system
Used in 3 fixlets   * Results in a true/false
Show indented relevance
(it starts with "Win" AND it does not start with "Win20") of name of operating system AND (exists value "CurrentMajorVersionNumber" of it AND value "CurrentMajorVersionNumber" of it as integer = 10) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of native registry
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists regapp "powershell.exe"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
operating system as string does not contain "1803"
Used in 2 fixlets   * Results in a true/false
Show indented relevance
system ui language as string as lowercase = "English (United States)" as lowercase
Used in 2 fixlets   * Results in a true/false
Show indented relevance
exists value "EditionID" whose (it as string as lowercase = "EducationN" as lowercase OR it as string as lowercase = "Education" as lowercase OR it as string as lowercase = "ProfessionalN" as lowercase OR it as string as lowercase = "Professional" as lowercase OR it as string as lowercase = "EnterpriseN" as lowercase OR it as string as lowercase = "Enterprise" as lowercase) of key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion" of native registry
Used in 2 fixlets   * Results in a true/false
Show indented relevance
if exists key "HKLM\SOFTWARE\Atria\ClearCase\CurrentVersion" of registry and exists value "ClearCaseMajorVersion" of key "HKLM\SOFTWARE\Atria\ClearCase\CurrentVersion" of registry then False else True
Used in 2 fixlets   * Results in a true/false
Show indented relevance
if exist file "C:\temp\Win10\SW_DVD5_Win_Pro_Ent_Edu_N_10_1803_64BIT_English_-2_MLF_X21-79647.ISO" then true else false

Actions

Action 1 (default)

Action Link Click here to execute this action.
Script Type BigFix Action Script
//Start inplace upgrade
if {free space of drive of client > 5000000000}

parameter "workISO" = "C:\temp\Win10\SW_DVD5_Win_Pro_Ent_Edu_N_10_1803_64BIT_English_-2_MLF_X21-79647.ISO"
continue if {exists file (parameter "workISO")}
continue if {sha1 of file (parameter "workISO") = "28681742fe850aa4bfc7075811c5244b61d462cf"}
            
// prepare a workpath to temporary files.
parameter "workPath" = "{(value of variable "SystemDrive" of environment) & "\win10_upgrade_temp"}"
waithidden cmd /C rmdir /S /Q "{parameter "workPath"}"
waithidden cmd /C mkdir "{parameter "workPath"}"

// Create the cleanup file.
delete __appendfile
delete setupcomplete.cmd

appendfile @echo off
appendfile SET WindowsISO="{parameter "workISO"}"
// appendfile powershell.exe "Dismount-DiskImage ""%WindowsISO%"""
// appendfile rmdir /S /Q "{parameter "workPath"}"

move __appendfile setupcomplete.cmd


// Create a debug invocation batch to help in case of failures.
// This batch does not perform an update but with the scanonly option allows you to determine what the problem is.
delete __appendfile

appendfile @echo off
appendfile SET WindowsISO="{parameter "workISO"}"
appendfile FOR /F "skip=3" %%I IN ('powershell.exe "Get-DiskImage """%WindowsISO%""" | Get-Volume | Select-Object {{$_.DriveLetter}"') DO %%I:\setup.exe /auto upgrade /Compat ScanOnly /DynamicUpdate disable"
appendfile echo %errorlevel% > "{parameter "workPath"}\out.log"

move __appendfile "{(parameter "workPath") & "/upgradeCheck.bat"}"

// Create the actual invocation script
// Sleep and Dir were added or command would fail with %errorlevel% 183. Possibly a delay on mount.
delete __appendfile
delete mount.and.install.bat

appendfile @echo on
appendfile SET WindowsISO="{parameter "workISO"}"
appendfile powershell.exe "Mount-DiskImage ""%WindowsISO%"""
appendfile TIMEOUT 10
appendfile FOR /F "skip=3" %%I IN ('powershell.exe "Get-DiskImage """%WindowsISO%""" | Get-Volume | Select-Object {{$_.DriveLetter}"') DO dir %%I: > "{parameter "workPath"}\dir.log" && %%I:\setup.exe /auto upgrade /Quiet /DynamicUpdate disable /postoobe "{pathname of client folder of current site & "\setupcomplete.cmd"}"
appendfile echo %errorlevel% > "{parameter "workPath"}\out.log"
move __appendfile mount.and.install.bat

wait mount.and.install.bat > "{parameter "workPath"}\cmd.log"

wait setupcomplete.cmd >"{parameter "workPath"}\setupcomplete.log"

// setup must finish with RC=0 at this stage if things are ok. If that is not the case content of C:\"\win10_upgrade_temp dir holds useful info.
// Apart from log files, you can run upgradeCheck manually to check with the UI what the problem is.

action requires restart "28681742fe850aa4bfc7075811c5244b61d462cf"
endif
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!