Script 4imodex



-->

  1. Script 4imodex Script
  2. Script Imodex

Copy these scripts to the root of your storage USB drive. Refer to this page to understand what's in the scripts.

Script Hook V is the library that allows to use GTA V script native functions in custom.asi plugins. Note that it doesn't work in GTA Online, script hook closes GTA V when player goes in multiplayer, see details in the readme. This distrib also includes the latest Asi Loader and Native Trainer. The ScriptReference object sets the version for a particular script. The ScriptMode.Auto value produces different results depending on whether it refers to a standalone script file or to a script file that is embedded as a resource in an assembly. A standalone script file is.

The sample scripts ZIP download includes all the scripts below:

Image deployment scripts

The following scripts set up Windows devices by using either a WIM or an FFU image file, and then give the option to configure push-button reset features.

The following files make up the deployment scripts:

Script 4 - imodex
  • ApplyImage.bat
  • ApplyRecovery.bat
  • CreatePartitions-BIOS.txt
  • CreatePartitions-BIOS-FFU.txt
  • CreatePartitions-UEFI.txt
  • CreatePartitions-UEFI-FFU.txt
  • HideRecoveryPartitions-BIOS.txt
  • HideRecoveryPartitions-UEFI.txt
  • CreateRecoveryPartitions-BIOS.txt
  • CreateRecoveryPartitions-UEFI.txt

ApplyImage.bat

Use this script applies a Windows image to a new device.

Note: If you copy and paste the contents below to create a .bat file, you may get an error when detecting firmware. For firmware detection to succeed, ensure that the lines that begin for /f 'tokens=2* delims= ' %%A has a tab followed by a space in between delims= and ' %%A.

ApplyImage.bat relies on the following DiskPart scripts, which must be placed in the same folder:

CreatePartitions scripts

Use these scripts together with DiskPart to format and set up the hard disk partitions for Windows, including recovery tools. Adjust the partition sizes to fill the drive as necessary.

CreatePartitions-UEFI.txt

Creates the System, MSR, Windows, and recovery tools partitions for UEFI-based PCs.

This script temporarily assigns these drive letters: System=S, Windows=W, and Recovery=R. The MSR partition doesn't get a letter. The letter W is used to avoid potential drive letter conflicts. After the device reboots, the Windows partition is assigned the letter C, and the other partitions don’t receive drive letters.

The Recovery partition must be the partition after the Windows partition to ensure winre.wim can be kept up-to-date during life of the device.

The following diagram shows the resulting partition configuration:

CreatePartitions-UEFI-FFU.txt

This script is based off of CreatePartitions-UEFI.txt, but it does not create a recovery partition. This is so that the Windows partition is the last partition on the drive and can be expanded. If this script is used, the recovery partition can be configured later with ApplyRecovery.bat.

CreatePartitions-BIOS.txt

Creates the System, Windows, and recovery tools partitions for BIOS-based PCs.

This script temporarily assigns these drive letters: System=S, Windows=W, and Recovery=R. The letter W is used to avoid potential drive letter conflicts. After the device reboots, the Windows partition is assigned the letter C, and the other partitions don’t receive drive letters.

The Recovery partition must be the partition after the Windows partition to ensure winre.wim can be kept up-to-date during life of the device.

The following diagram shows the resulting partition configuration:

CreatePartitions-BIOS-FFU.txt

This script is based off of CreatePartitions-BIOS.txt, but it doesn't create a recovery partition. This is so that the Windows partition is the last partition on the drive and can be expanded. If this script is used, the recovery partition can be configured later with ApplyRecovery.bat.

ApplyRecovery.bat

Use this script to prepare the Windows recovery partition. This script is called by ApplyImage.bat, but can also be run on its own.

Note: If you copy and paste the contents below to create a .bat file, you may get an error when detecting firmware. For firmware detection to succeed, ensure that the lines that begin for /f 'tokens=2* delims= ' %%A has a tab followed by a space in between delims= and ' %%A.

ApplyRecovery.bat relies on the following DiskPart scripts, which must be placed in the same folder:

CreateRecoveryPartitions-UEFI.txt

CreateRecoveryPartitions-BIOS.txt

HideRecoveryPartitions-UEFI.txt

HideRecoveryPartitions-BIOS.txt

Start layout (LayoutModification.xml)

The Start tile layout in Windows 10 provides OEMs the ability to append tiles to the default Start layout to include Web links, secondary tiles, Windows apps, and Windows desktop applications. OEMs can use this layout to make it applicable to multiple regions or markets without duplicating a lot of the work. In addition, OEMs can add up to three default apps to the frequently used apps section in the system area, which delivers sytem-driven lists o the user including important or frequently accessed system locations and recently installed apps.

To take advantage of all these new features and have the most robust and complete Start customization experience for Windows 10, consider creating a LayoutModification.xml file. This file specifies how the OEM tiles should be laid out in Start. For more information about how to customize the new Start layout, see the topic Customize the Windows 10 Start screen in the Windows 10 Partner Documentation.

Sample LayoutModification.xml:

TaskbarLayoutModification.xml

You can pin apps to the taskbar. To learn more, see OEM Taskbar tiles.

BootToAudit

Add an answer file to the Windows image in C:mountwindowsWindowsPantherunattend.xml to instruct it to boot into audit mode. You can create this answer file in Windows System Image Manager.

BootToAudit-x64

Keeping Windows settings through a recovery

Windows doesn't automatically save settings created through unattend.xml setup files, nor Windows Start Menu customizations created with LayoutModification.xml during a full-system reset, nor first-login info from oobe.xml.

To make sure your customizations are saved, that includes steps to put the unattend.xml, LayoutModification.xml, and oobe.xml files back into place. Here's some sample scripts that show how to retain these settings and put them back into the right spots. Save copies of unattend.xml, LayoutModification.xml, oobe.xml, plus these two text files: ResetConfig.xml and EnableCustomizations.cmd, in C:RecoveryOEM:

ResetConfig.xml

Script 4imodex

EnableCustomizations.cmd

To learn more about using extensibility points for push-button reset, see Add extensibility scripts to push-button reset.

Reinstall Windows inbox apps

Script 4imodex Script

Reinstall Windows apps after adding a new language. You can reinstall the apps without removing them first.

Script Imodex

ReinstallInboxApps-x64.cmd

Find drive letters with a script

Use this script in Windows PE to identify a drive that has a folder called 'Images.'