Commit Graph

62 Commits

Author SHA1 Message Date
Micah R Ledbetter
27af82c265 More code cleanup and refactoring
- General refactoring
- Use the RunServicesOnce registry key rather than Run
- Add Get-RestartPendingStatus function
2015-10-26 18:09:02 -05:00
Micah R Ledbetter
bd92dbd141 win-update: StrictMode, dot-sourcing, clean up, bugs
- Entire script works in Strict Mode
- Script is still usable when run directly, but can also be dot-sourced
  for access to internal functions
- Make significant changes to code organization for readability
- Fix several exception-throwing bugs
- Add at least some documentation for every function
- Modify Check-WindowsUpdates to optionally filter updates that
  can request user input
- Modify Check-WindowsUpdates so it no longer thinks it can tell if the
  machine needs to be rebooted
- Pull out incomplete implementation of -MaxUpdatesPerCycle
- Add Get-RestartRegistryEntry function
- Reduce log noise
2015-10-26 13:36:39 -05:00
Micah R Ledbetter
29e9df10f4 Continued work on my win-update rewrite
Current problem: if there are updates you cannot apply because they
require user intervention, it'll loop until $maxCycles is exhausted,
even though it doesn't actually need to
2015-10-23 17:19:29 -05:00
Micah R Ledbetter
b01f36a7b6 Remove MS update batch script 2015-10-07 14:27:59 -05:00
Micah R Ledbetter
7498944cf8 initial changes to win update script. UNTESTED 2015-10-07 14:27:15 -05:00
Micah R Ledbetter
ab297178c1 postinstall changes 2015-10-07 14:27:04 -05:00
Micah R Ledbetter
776a5f7744 windows-trial-lab:
- Convert everything to spaces (fuck you VS Code)
- Some initial work to stop relying on Get-LabTempDir
- Trying to delete as much code as possible
- Define constants all at the top of the file
- Improve Get-WebUrl
- Improve and simplify architecture handling
- Move some more functions to native Powershell from shellouts
- Add some functions for dealing w/ Windows Updates
2015-10-02 19:39:59 -05:00
Micah R Ledbetter
c1430c0bdb Add code for building updated Windows ISOs
- Improve PS code, though the lab scripts are kind of a mess still
- Move some functions over to the postinstall module (should rename)
- Rip out calls to dism.exe in favor of the Powershell dism module
- Use an exported $ArchitectureId dictionary variable like a global
  constant for talking about architecture names
- Programmatically get the path of ADK/WAIK files & folders
- Call out to oscdimg.exe to make a new ISO
2015-09-30 17:46:08 -05:00
Micah R Ledbetter
e1865e44b6 Work on supporting Windows Updates in buildlab; cleanup
Want to enhance buildlab to "slipstream" updates from WSUS Offline
Updater into the ISOs.

- Download updates
- Work with .wim files (Windows images that are used to install)
- Apply updates to .wim files

Other enhancements

- Clean up some postinstall stuff
- Try to use Powershell in Autounattend.xml as much as possible
2015-09-24 18:33:39 -05:00
Micah R Ledbetter
5b5cc98dd3 MY PACKER SHIT WORKS!!
- Remove all scripts I'm not using
- (All scripts still in legacy-packer-windows folder tho)
- Postinstall PS module now does EVERYTHING that old scripts were doing
- Eliminate need for SSH altogether
2015-09-23 11:48:36 -05:00
Micah R Ledbetter
1230ab9829 Got something working - I can build Win 8.1 x86 boxes!
- Add new script for building the Packer boxes called labbuilder.ps1
- Rearranged the hierarchy (my new script relies on the new hierarchy)
- Working windows_81_x86 folder
- Moved old packer-windows stuff to legacy-packer-windows directory.
  I plan to move it over piece by piece
- Added a script to install 7zip that the other post install scripts can
  depend on
- Fixed compact.bat & vm-guest-tools.bat to use 7zip installer
- Fixed compact.bat to work with 32 bit machines
- Added a readme
2015-09-17 16:56:39 -05:00
Micah R Ledbetter
a37558518e Move packer trial shit around 2015-09-15 10:45:54 -05:00