Explorar el Código

Fixed Parameter switches

Richard Newton hace 7 años
padre
commit
f4da442ca6
Se han modificado 1 ficheros con 3 adiciones y 4 borrados
  1. 3 4
      Windows10SysPrepDebloater.ps1

+ 3 - 4
Windows10SysPrepDebloater.ps1

@@ -2,11 +2,10 @@
 #Also, to note - This does NOT remove essential system services/software/etc such as .NET framework installations, Cortana, Edge, etc.
 
 #This is the switch parameter for running this script as a 'silent' script, for use in MDT images or any type of mass deployment without user interaction.
-param([switch]$Debloat)
 
-param([switch]$SysPrep)
-
-param([switch]$StopEdgePDF)
+param (
+  [switch]$Debloat, [switch]$SysPrep, [switch]$StopEdgePDF
+)
 
 #This will run get-appxpackage | remove-appxpackage which is required for sysprep to provision the apps.
 Function Begin-SysPrep {