This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Office365business, PowerIso, GoToAssist, BatteryBar, nlite (https://www.ntlite.com/), gdrive client, classic shell | |
# snagit | |
# http://boxstarter.org/package/nr/url?*url to raw gist* | |
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned | |
Disable-UAC | |
Enable-RemoteDesktop | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableOpenFileExplorerToQuickAccess -EnableShowRecentFilesInQuickAccess -EnableShowFrequentFoldersInQuickAccess -EnableExpandToOpenFolder | |
Set-TaskbarOptions -Size Small -Dock Top -Combine Always |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[CmdletBinding()] | |
Param([string]$Phase = 'A',[string]$CompName = 'MDT2013U101') | |
# ============================================================================================ | |
#Script installs MDT 2013 Update 1 release (6.3.8298.0) | |
# & ADK for Windows 10 (10.1.14393.0) | |
# ============================================================================================ | |
#Values that can be changed | |
$deployRoot = "$env:SystemDrive\DeploymentShare" #Specify DeploymentShare local folder path | |
$deployshareName = "DS" #Specify desired share name | |
$desiredSecurePassword = 'P@ssw0rd' #Specify Desired secure password for Administrator and AD recovery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
machine_name = "MDT001" | |
gist_url="https://gist.githubusercontent.com/brianfgonzalez/fa0720471ce2f6722d3ced4672e3f47a/raw/9577234599014d73a631fc280fd4899825cd6e33/mdt.ps1" | |
Vagrant.configure("2") do |config| | |
config.vm.box = "brianfgonzalez/winserver12r2" | |
config.vm.box_check_update = false | |
config.vm.network "private_network", ip: "192.168.50.2", virtualbox__intnet: "intnet" | |
config.vm.boot_timeout = 1200 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /F "tokens=1,2*" %%a in ('reg.exe query "HKLM\SYSTEM\CurrentControlSet\Control\Class"') DO call :FindAndReplace %%a | |
goto cleanup | |
:FindAndReplace | |
reg.exe query "%1\0000" /f "COM3" /d > nul | |
if "%ErrorLevel%"=="0" reg.exe add "%1\0000" /v "AttachedTo" /t REG_SZ /d "COM1" /f | |
exit /b | |
:cleanup | |
echo "Place your clean up code here" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo start /w "" notepad.exe > "%WinDir%\Temp\temp.bat" | |
echo del /f/q "%%WinDir%%\Temp\temp.bat" >> "%WinDir%\Temp\temp.bat" | |
schtasks /create /ru "NT AUTHORITY\SYSTEM" /tn "sysrun" /tr "cmd.exe /c ""%WinDir%\Temp\temp.bat""" /f /sc "ONIDLE" /i "999" | |
schtasks /run /tn "sysrun" /i | |
:loop | |
for /f "tokens=2 delims=: " %%f in ('schtasks /query /tn "sysrun" /fo list ^| find "Status:"' ) do ( | |
if "%%f"=="Running" ( | |
timeout /T 1 /NOBREAK > nul |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cls | |
SET WIMFile=7x64ProVL-2016Aug26.wim | |
@echo Hit the ANYKEY to begin re-image | |
@echo .or CTRL+C to cancel to command prompt | |
pause | |
ver | |
rem create diskpart answers file | |
echo sel dis 0 >x:\diskpart_answers.txt | |
echo clean >>x:\diskpart_answers.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Installs driver (SILENT=1 in Config..ini tells EXE to run silent) | |
REM Command 1======================== | |
REM ================================= | |
start /w "" "%~dp0Generic7355DriverSetup.exe" | |
REM Apply Verizon Firmware (other images: ATT=\2 SPRINT=\3) | |
REM Note: working directory must be set to "C:\Program Files (x86)\Sierra Wireless Inc\Utils" | |
REM Command 2======================== | |
REM ================================= | |
cd /d "C:\Program Files (x86)\Sierra Wireless Inc\Utils" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.psd1" | |
If (-not (Test-Path "C:\mount")) { New-item -Type Directory -Force "C:\mount" } | |
Mount-WindowsImage -ImagePath "D:\AiO\Operating Systems\10x64Ent-MSUpdated2016Jul20\10x64Ent-MSUpdated2016Jul20.wim" -Path "C:\mount\" -Index 1 | |
Get-WindowsDriver -Path "C:\mount" | % { Remove-WindowsDriver -Driver $_.Driver -Path "C:\mount" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DISM commands to prepare thumbdrive for applying Pre-Staged media: | |
* tested with ADK Win 10 | |
copype amd64 \PEx64 | |
dism /mount-wim /wimfile:\PEx64\media\sources\boot.wim /index:1 /mountdir:\PEx64\mount | |
explorer \PEx64\mount\Windows\System32 | |
- copy/overwrite custom startnet.cmd | |
dism /unmount-wim /mountdir:\PEx64\mount /commit | |
- copy PreStagedMedia.swm, PreStagedMedia2.swm, and PreStagedMedia3.swm to root of thumbdrive. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Install Windows ADK ( https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit ) | |
REM Download and extract SetACL.exe to same directory as CrazyWinPEMouseFix.bat ( https://helgeklein.com/download/#setacl ) | |
REM In SCCM, edit the "winpe.wim" boot file ( file name does NOT include packageid ) then run "Update Dis.." against the Boot Image in the console | |
SET BootImagePath=E:\Packages\Boot\MDT2013u2x64\winpe.wim | |
if not exist \mount (md \mount) | |
if not exist "%~dp0SetACL.exe" ( goto NoSetACL ) | |
dism /mount-wim /wimfile:"%BootImagePath%" /index:1 /mountdir:\mount | |
reg load hklm\importedsystem \mount\Windows\System32\config\SYSTEM |
OlderNewer