I've created a Windows autounattend.xml
file that automatically installs software using winget / choco after the system installation and first login. The installation process is logged in c:\windows\setup\scripts\FirstLogon.log
.
I want to automatically open a new PowerShell window during the software installation process that continuously monitors the contents of c:\windows\setup\scripts\FirstLogon.log
.
How can I open the contents of c:\windows\setup\scripts\FirstLogon.log
in a new window and continue with subsequent installation commands simultaneously?
Normally, I use
Get-Content c:\windows\setup\scripts\FirstLogin.log -Wait
to retrieve the file contents, but I don't know how to continue with the rest of the installation after opening the file.