最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

powershell - How to monitor the log file during the software installation process in Windows unattend installation - Stack Overf

programmeradmin6浏览0评论

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.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论