Skip to content

Commit

Permalink
Version 1.4.0 (2020-11-09)
Browse files Browse the repository at this point in the history
- see ChangeLog for details
  • Loading branch information
DavidGeeraerts committed Nov 9, 2020
1 parent 258ead7 commit a50fea3
Show file tree
Hide file tree
Showing 6 changed files with 679 additions and 479 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Ignore files

module_system_SysPrep_dev.cmd
*.backup
*.old
8 changes: 8 additions & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence,
# @global-owner1 and @global-owner2 will be requested for
# review when someone opens a pull request.
* @DavidGeeraerts

# Mark down files
*.md @DavidGeeraerts
140 changes: 84 additions & 56 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,85 @@
# ChangeLog: module_system_SysPrep


## Features Heading
- `Added` for new features.
- `Changed` for changes in existing functionality.
- `Fixed` for any bug fixes.
- `Removed` for now removed features.
- `Security` in case of vulnerabilities.
- `Deprecated` for soon-to-be removed features.

[//]: # (Copy paste pallette)
[//]: # (#### Added)
[//]: # (#### Changed)
[//]: # (#### Fixed)
[//]: # (#### Removed)
[//]: # (#### Security)
[//]: # (#### Deprecated)

---

## Version 1.2.1 (2020-09-25)
### Changed
- Step 1 log-off to reboot to flush custom user profile


---

## Version 1.2.0 (2020-09-24)
### Added
- variable where delprof2 directory path
- option for Unattend.xml cleanup
- ISO_Date
- Banner description
- Parameters input
- cached parameters
- more information in module log
- var directory

### Changed
- start banner
- Windows-update module check for speed


## Version 1.1.0 (2020-09-23)
### Added
- script info to session log
- Check on user cleanup

### Changed
- Start link back to user profile instead of system
- comments with rem
- handling of cleaning up users


## Version 1.0.0 (2020-09-22)
# ChangeLog: module_system_SysPrep


## Features Heading
- `Added` for new features.
- `Changed` for changes in existing functionality.
- `Fixed` for any bug fixes.
- `Removed` for now removed features.
- `Security` in case of vulnerabilities.
- `Deprecated` for soon-to-be removed features.

[//]: # (Copy paste pallette)
[//]: # (#### Added)
[//]: # (#### Changed)
[//]: # (#### Fixed)
[//]: # (#### Removed)
[//]: # (#### Security)
[//]: # (#### Deprecated)

---

## Version 1.4.0 (2020-11-09)
#### Added
- $DEFAULT_USER which is first time log in user; will resort to manual delete if need be.

### Changed
- Order of the parameters
- Order of variables in commandlet
- Default is to cleanup unattend files and cache

#### Fixed
- Readme typos

---

## Version 1.3.0 (2020-09-28)
#### Added
- variable $Unattend_FILE
- Parameter for $Unattend_FILE
- variable for $UNATTEND_DIR
- Parameter for $UNATTEND_DIR
- log tags

### Changed
- Console output for what will run
- $Unattend_Clean to Yes or No (instead of 0 or 1)

#### Fixed
- output if default user doesn't exist for disable
- Delprof2 path based to parameter6

## Version 1.2.1 (2020-09-25)
### Changed
- Step 1 log-off to reboot to flush custom user profile


## Version 1.2.0 (2020-09-24)
### Added
- variable where delprof2 directory path
- option for Unattend.xml cleanup
- ISO_Date
- Banner description
- Parameters input
- cached parameters
- more information in module log
- var directory

### Changed
- start banner
- Windows-update module check for speed


## Version 1.1.0 (2020-09-23)
### Added
- script info to session log
- Check on user cleanup

### Changed
- Start link back to user profile instead of system
- comments with rem
- handling of cleaning up users


## Version 1.0.0 (2020-09-22)
- First Release
51 changes: 37 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@

## Description

Automated processing of SysPrep
Automated processing of SysPrep.
Likes to be on a [USB] flash drive; can run from other local storage.


### Download

Can download just the commandlet:
[Download](https://raw.githubusercontent.com/DavidGeeraerts/module_system_SysPrep/main/module_system_SysPrep.cmd) --right-click and "Save Link as..."


### Features
### Process List

1. Administrator, local configuration

Expand All @@ -25,15 +27,19 @@ Automated processing of SysPrep

6. CleanMgr, run disk cleanup

7. Final reboot, in preperation for running SysPrep
7. Final reboot, in preparation for running SysPrep

8. SysPrep


#### Instructions

- Manually run module_system_SysPrep with administrative privilege
- First run will configure the local administrator and log out current user, which should be the unattend.xml user.
Flash drive friendly

- Manually run module\_system\_SysPrep with administrative privilege
- Pass any parameters in order, each subsequent parameter is dependent on the previous parameter being passed.
- meaning, if you want PARAMETER6, you have to pass all the parameters 1-5
- First run will configure the local administrator and log out current user, which should be the unattend.xml first logon user.
- Log in with local Administrator account --no password
- CleanMgr will prompt if SAGE 100 is not set
- Final Reboot will reboot and auto-login Administrator
Expand All @@ -51,26 +57,43 @@ Automated processing of SysPrep

- Open shell/terminal with administrative privilege
- cd /D to module directory where module_system_SysPrep.cmd
1. Paramter 1 ($CUSTOM_USER)
- String
- The user configured in the unattend.xml file
- parameters are seperated by a space; use double quotes if parameter has a space: *"parameter with space"*

2. Paramter 2 ($TIMEOUT)
1. Paramter 1 (`$TIMEOUT`)
- Seconds
- Console screen timeout. Default is 10 seconds

3. Paramter 3 ($UNATTEND_CLEAN)
- {0,1}
2. Paramter 2 (`$UNATTEND_CLEAN`)
- {No,Yes} Default is Yes
- Clean up all the unattend.xml files from the systemdrive before running SysPrep
- Useful for cleanup if seeding unattend.xml file
- will flush Windows cache for unattend.xml/Autounattend.xml

3. Paramter 3 (`$UNATTEND_DIR`)
- Full path to the directory
- defualt is Unattend (i.e. <Volume>:\Unattend)

4. Parameter 4 (`$Unattend_FILE`)
- Unattend file name to seed; default is unattend.xml
- can be set to 0 to bypass, otherwise if defined the unattend file will be seeded

5. Parameter 5 (`$CUSTOM_USER`)
- String
- The user configured in the unattend.xml file
- User should be deleted by default, but may require more aggresive actions.

4. Paramter 4 ($DELPROF2_PATH)
6. Paramter 6 (`$DELPROF2_PATH`)
- Directory path
- Where delprof2.exe resides in relation to the volume where the module is run from
- By default, Flash Drive Root\Tools



Example:
- *module_system_SysPrep.cmd Paramter1 Paramter2 Paramter3 Paramter4*
- *module_system_SysPrep.cmd UnattendUser 10 0 Tools*

- *`module_system_SysPrep.cmd Paramter1 Paramter2 Paramter3 Paramter4 Paramter5 Paramter6`*

- *`module_system_SysPrep.cmd UnattendUser 10 1 SysPrep_unattned.xml Unattend Tools`*

**Parameters only need to be passed once for the session, as they are cached.**

Expand Down
Loading

0 comments on commit a50fea3

Please sign in to comment.