![]() I have the BIOS Upgrade and BIOS Settings called from this script. ViaMonstraUpgradeBios is an old PS script to perform BIOS upgrades for the big 3 manufacturers(HP, Dell, Lenovo). When you're updating or changing BIOS versions or settings, I want to see those results to make sure it is working correctly. These are platform specific to HP, but may be able to be adapted to other platforms. The very next line then restarts the task sequence and is the first time anything would be logged in the new SMSTS.log.Īgain, this one requires a re-generation of boot images as it needs to be in the PXE Boot Image.īiosConfigUtility64-0.log, HpFirmwareUpdRec64.log and Creates the %temp%\SMSTSlog folder if it doesn't exist, then copies the log. This makes sure smsts.log in %temp% does not exist, and smsts.log does exist in _SMSTaskSequence meaning it just rebooted out of WinPE and has not continued the TS yet. OFSO.CopyFile "C:\_SMSTaskSequence\Logs\smsts.log", "C:\Users\Administrator\Appdata\local\temp\SMSTSLog\SMSTS.log", True OLogging.CreateEntry "Copy file C:\_SMSTaskSequence\Logs\smsts.log to C:\Users\Administrator\Appdata\local\temp\SMSTSLog\SMSTS.log", LogTypeInfo OFSO.CreateFolder("C:\Users\Administrator\Appdata\local\temp\SMSTSLog\") OLogging.CreateEntry "Create smstslog folder", LogTypeInfo If not oFSO.FolderExists("C:\Users\Administrator\Appdata\local\temp\SMSTSLog\") then If not oFSO.FileExists("C:\Users\Administrator\Appdata\local\temp\SMSTSLog\SMSTS.log") and oFSO.FileExists("C:\_SMSTaskSequence\Logs\smsts.log") Then oLogging.CreateEntry "Attempt to copy SMSTS.log to temp", LogTypeInfo Simple fix, copy log from C:\_SMSTaskSequence\ to %Temp%. When PE Ends, the smsts.log is copied to X:\_SMSTaskSequence, but when the OS boots it begins a new log in %Temp%. Not having the full log makes it difficult to see variable expansion in WinPE if something fails. This really seems to be a bug or oversight, and it annoyed me that the entire log doesn't get copied so I tried to fix it. May be better ways of doing this, but its working for me quite well. Copies to the defined SLShare folder\ComputerName folder. Goes in right after the Results.xml is saved. OResults.Save rLogFolderName
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |