File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,14 @@ public override void Process()
295
295
string ps1File = @"C:\Windows\Setup\Scripts\VirtIoGuestTools.ps1" ;
296
296
string script = Util . StringFromResource ( "VirtIoGuestTools.ps1" ) ;
297
297
AddTextFile ( script , ps1File ) ;
298
- SpecializeScript . InvokeFile ( ps1File ) ;
298
+ if ( Configuration . DisableDefender )
299
+ {
300
+ SpecializeScript . InvokeFile ( ps1File ) ;
301
+ }
302
+ else
303
+ {
304
+ FirstLogonScript . InvokeFile ( ps1File ) ;
305
+ }
299
306
}
300
307
301
308
if ( Configuration . PreventDeviceEncryption )
@@ -482,7 +489,7 @@ void SetStartTiles(string xml)
482
489
FirstLogonScript . Append ( CommandBuilder . ShellCommand ( @"rmdir C:\Windows.old" ) + ';' ) ;
483
490
}
484
491
{
485
- if ( Configuration . DisablePointerPrecision )
492
+ if ( Configuration . DisablePointerPrecision )
486
493
{
487
494
DefaultUserScript . Append ( """
488
495
$params = @{
You can’t perform that action at this time.
0 commit comments