You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ You can now use it on ANY Windows 11 release (not just a specific build), as wel
10
10
This is made possible thanks to the much-improved scripting capabilities of PowerShell, compared to the older Batch release.
11
11
</br>
12
12
Since it is written in PowerShell, you need to set the execution policy to `Unrestricted`, so that you could run the script.
13
-
If you haven't done this before, make sure to run `Set-ExecutionPolicy unrestricted` as administrator in PowerShell before running the script, otherwise it would just crash.
13
+
If you haven't done this before, make sure to run `Set-ExecutionPolicy -Scope Process unrestricted` as administrator in PowerShell before running the script, otherwise it would just crash.
14
14
15
15
16
16
This is a script created to automate the build of a streamlined Windows 11 image, similar to tiny11.
Copy file name to clipboardExpand all lines: tiny11Coremaker.ps1
+19-7Lines changed: 19 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# Enable debugging
2
2
Set-PSDebug-Trace 1
3
3
4
-
# Check if PowerShell execution is restricted
5
-
if ((Get-ExecutionPolicy) -eq'Restricted') {
6
-
Write-Host"Your current PowerShell Execution Policy is set to Restricted, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
4
+
# Check if PowerShell execution is Restricted or AllSigned or Undefined
Write-Host"Your current PowerShell Execution Policy is set to $curpolicy, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
Copy file name to clipboardExpand all lines: tiny11maker.ps1
+46-37Lines changed: 46 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -2,24 +2,26 @@
2
2
#Set-PSDebug -Trace 1
3
3
4
4
param (
5
-
[ValidatePattern('^[c-zC-Z]$')]
5
+
[ValidatePattern('^[c-zC-Z]:$')]
6
6
[string]$ScratchDisk
7
7
)
8
8
9
9
if (-not$ScratchDisk) {
10
-
$ScratchDisk=$PSScriptRoot-replace'[\\]+$',''
10
+
$ScratchDisk=((Get-Location).Drive.Name) +":"
11
11
} else {
12
12
$ScratchDisk=$ScratchDisk+":"
13
13
}
14
14
15
15
Write-Output"Scratch disk set to $ScratchDisk"
16
16
17
-
# Check if PowerShell execution is restricted
18
-
if ((Get-ExecutionPolicy) -eq'Restricted') {
19
-
Write-Host"Your current PowerShell Execution Policy is set to Restricted, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
17
+
# Check if PowerShell execution is Restricted or AllSigned or Undefined
Write-Host"Your current PowerShell Execution Policy is set to $curpolicy, which prevents scripts from running. Do you want to change it to RemoteSigned? (yes/no)"
#Compressiontype Recovery is not supported with PShell https://learn.microsoft.com/en-us/powershell/module/dism/export-windowsimage?view=windowsserver2022-ps#-compressiontype
437
-
Export-WindowsImage-SourceImagePath $ScratchDisk\tiny11\sources\install.wim -SourceIndex $index-DestinationImagePath $ScratchDisk\tiny11\sources\install2.wim -CompressionType Fast
0 commit comments