mainkowitsch
New Member
- Messages
- 4
- Reaction score
- 0
Hello there 
I'm very new to NTLite and PowerShell scripting, so please be kind
I'm trying to create a USB Windows 11 24H2 installation stick that automatically downloads and installs the latest versions of my software.
In the "Before logon" section, I added a script to download and install Chocolatey and the latest NVIDIA driver — no problem there.
However, when I add the same script in the "After logon" section, the system doesn't execute it.
I tried adding it directly as a .ps1 file in the "After logon" section as well as with the command:
powershell -NoProfile -ExecutionPolicy Bypass -File "E:\Documents\NTLite\Programme\software.ps1"
Still, nothing happens.
I read many threads of this forum... cant consider why the script is not working.
If I run the script manually from CMD using the same command, it works fine.
What am I doing wrong?
I'm very new to NTLite and PowerShell scripting, so please be kind
I'm trying to create a USB Windows 11 24H2 installation stick that automatically downloads and installs the latest versions of my software.
In the "Before logon" section, I added a script to download and install Chocolatey and the latest NVIDIA driver — no problem there.
However, when I add the same script in the "After logon" section, the system doesn't execute it.
I tried adding it directly as a .ps1 file in the "After logon" section as well as with the command:
powershell -NoProfile -ExecutionPolicy Bypass -File "E:\Documents\NTLite\Programme\software.ps1"
Still, nothing happens.
I read many threads of this forum... cant consider why the script is not working.
If I run the script manually from CMD using the same command, it works fine.
What am I doing wrong?