![]() OLogging.CreateEntry "Ensuring root of " & sDrive & " drive is not compressed.", LogTypeInfo '// For refreshes, make sure the drive isn't compressed ![]() OLogging.CreateEntry "WARNING - Unable to determine deployment type, assuming it is OK to continue", LogTypeWarning OLogging.CreateEntry "Assuming that the drive has enough disk space (once cleaned)", LogTypeInfo An additional " & CStr(iNeededSize - iTotalSize) & "MB is required.", 9807 OLogging.ReportFailure "ERROR - insufficient space is available on " & sDrive & ". An additional " & CStr(iNeededSize - iTotalSize) & "MB is required.", Array() OLogging.CreateEvent 41049, LogTypeError, "ERROR - insufficient space is available on " & sDrive & ". OLogging.CreateEntry "Enough space is available on " & sDrive & ".", LogTypeInfo If CSng(oEnvironment.Item("ProcessorSpeed")) iNeededSize then If CSng(oEnvironment.Item("Memory")) "True" and oEnvironment.Exists("ProcessorSpeed") then OLogging.CreateEntry "ImageProcessorSpeed set to : " & iProcessorSpeed & ".", LogTypeInfo IProcessorSpeed = 790 ' Assume Vista, 800MHz, allow for 10MHz rounding/"creative math" IProcessorSpeed = CSng(oEnvironment.Item("ImageProcessorSpeed")) - 10 ' Allow for rounding/"creative math" If oEnvironment.Item("ImageProcessorSpeed") "" then OLogging.CreateEntry "Compare the current processor speed with the speed requested =. IMemory = 448 ' Assume Vista, 512MB, allow for 64MB shared video memory IMemory = CSng(oEnvironment.Item("ImageMemory")) - 64 ' Allow 64MB shared video memory If oEnvironment.Item("ImageMemory") "" then '// Make sure this machine meets the minimum requirements You must perform a NewComputer deployment, aborting", 9809 OLogging.ReportFailure "Error - Performing a Refresh to a partition that does not match the current OS partition is not supported. If ucase(sDrive) ucase(oEnv("SystemDrive")) Then If (iImageBuildMajor "OKTOUSEOTHERDISKANDPARTITION" Then If oEnvironment.Item("ImageBuild") "" Then If oEnvironment.Item("DeploymentType") = "REFRESH" Then OUtility.GetMajorMinorVersion(oEnvironment.Item("ImageBuild")) '// Save ImageBuild to temporary variable OUtility.GetMajorMinorVersion(oEnvironment.Item("OSCurrentVersion")) '// Save to OSCurrentVersion temporary variable '// Abort if trying to Refresh from a higher level OS to a lower level OS OLogging.CreateEntry "OSInstall flag is not set, validation check bypassed.", LogTypeInfo OLogging.CreateEntry "OSInstall flag is set, install is allowed.", LogTypeInfo OLogging.ReportFailure "ERROR - Machine is not authorized for upgrading (OSInstall=" & oEnvironment.Item("OSInstall") & "), aborting.", 9803 OLogging.CreateEvent 41046, LogTypeError, "ERROR - Machine is not authorized for upgrading (OSInstall=" & oEnvironment.Item("OSInstall") & "), aborting.", Array() If UCase(Left(oEnvironment.Item("OSInstall"), 1)) "Y" then '// Abort if "OSInstall" flag is set to something other than "Y" OLogging.CreateEntry "VerifyOS property not set, OS check bypassed", LogTypeInfo OLogging.ReportFailure "ERROR - Attempting to deploy a server operating system to a machine running a client operating system.", 9802 OLogging.CreateEvent 41045, LogTypeError, "ERROR - Attempting to deploy a server operating system to a machine running a client operating system.", Array() If UCase(oEnvironment.Item("IsServerOS")) "TRUE" then OLogging.ReportFailure "ERROR - Attempting to deploy a client operating system to a machine running a server operating system.", 9801ĮlseIf UCase(oEnvironment.Item("VerifyOS")) = "SERVER" then OLogging.CreateEvent 41044, LogTypeError, "ERROR - Attempting to deploy a client operating system to a machine running a server operating system.", Array() If UCase(oEnvironment.Item("IsServerOS")) = "TRUE" then If UCase(oEnvironment.Item("VerifyOS")) = "CLIENT" then ![]() ' This should only run in the full OS, skipped when DeploymentType=NEWCOMPUTER If oEnvironment.Item("DeploymentType") = "REFRESH" then If Ucase(oEnvironment.Item("DeploymentType")) "NEWCOMPUTER" Thenĭim iImageSize, iNeededSize, iTotalSize, dMultiplierĭim iImageBuildMajor, iImageBuildMinor, iOSCVMajor, iOSCVMinor '// Constructor to initialize needed global objects ' // Purpose: Ensure that it is safe for the deployment to continue ' // Microsoft Deployment Toolkit Solution Accelerator ' // Copyright (c) Microsoft Corporation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |