[corrections_edu_it] Laptop Setup Script

Henness, Brandon J. 'GHC' (DOC) brandon.henness at doc1.wa.gov
Tue Apr 30 10:36:58 PDT 2024


Follow the link bellow for the setup script. This script updates the time, time settings, activates windows using KMS, and activates office using KMS. Make sure you update the "Configuration" section of the script with your time server and kms server addresses. I've also provided information on how to start the credential script automatically afterwards, this makes it so that by the time the deployment is finished it's ready to be credentialed to a student.

You could also run this script manually and even put "MGMT unlock_machine" at the beginning and "MGMT lock_machine" at the end so that it could be run on already credentialed machines.

https://gist.github.com/Henness0666/3e2e9a72902e7ddd64967be864609210#file-mdtlaptopsetupscript-bat

Laptop Setup Script
The linked "MDTLaptopSetupScript.bat" batch file automates a few tasks when deploying laptops like disabling Secure Time Seeding, syncing the laptop's time automatically with the time server, activate windows with your KMS server, and activate office with your KMS server.


  1.  Modify the configuration section of the linked "MDTLaptopSetupScript.bat" batch file to point to your time server and your KMS server.
  2.  Navigate to the "Scripts" directory of your deployment share.
  3.  Paste the modified "MDTLaptopSetupScript.bat" script in it.
  4.  Open the "Properties of the Task Sequence you use for deploying images to your laptops.
  5.  Navigate to the "Task Sequence" tab at the top of the window.
  6.  Add a new task sequence step to the bottom of the "State Restore" section.
  7.  Edit the new task sequence to match the following picture:
%SCRIPTROOT%\MDTLaptopSetupScript.bat
[Graphical user interface, application  Description automatically generated]
  8.  Press "Apply"

When you deploy an image using this task sequence it will now run this script at the end of the deployment.

Start Credential Script Task Sequence Step
The following task sequence will automatically start the laptop credentialing script on deployment allowing you credential the laptop immediately after deployment without needing to run the script manually. Only apply this task sequence step to task sequences that are for file deployment.


  1.  Open the "Properties of the Task Sequence you use for deploying images to your laptops.
  2.  Navigate to the "Task Sequence" tab at the top of the window.
  3.  Add a new task sequence step to the bottom of the "State Restore" section.
  4.  Edit the new task sequence to match the following picture:
cmd /c start "" "C:\ProgramData\OPE\tmp\ope_laptop_binaries\CredentialLaptop.cmd"
[cid:image002.png at 01DA9AE8.F8BD0BC0]
  5.  Press "Apply"

On deployment, the laptop credentialing script will automatically start running and by the time the computer is done deploying the script will already be on the SMC login step of the script.
Thank you,

Brandon Henness
IT Customer Support
Grays Harbor College
Stafford Creek Corrections Center
191 Constantine Way
Aberdeen, WA 98520
(360) 537-2018
brandon.henness at ghc.edu<mailto:brandon.henness at ghc.edu>
Brandon.henness at doc1.wa.gov<mailto:Brandon.henness at doc1.wa.gov>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ctc.edu/pipermail/corrections_edu_it_lists.ctc.edu/attachments/20240430/645ccaaa/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 28724 bytes
Desc: image001.png
URL: <http://lists.ctc.edu/pipermail/corrections_edu_it_lists.ctc.edu/attachments/20240430/645ccaaa/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 28110 bytes
Desc: image002.png
URL: <http://lists.ctc.edu/pipermail/corrections_edu_it_lists.ctc.edu/attachments/20240430/645ccaaa/attachment-0003.png>


More information about the Corrections_Edu_IT mailing list