Score:1

Location of the log for Windows first logon commands

cn flag

I have PowerShell script that's set up to run as the first logon command via the unattend.xml file. The script actually does run on the first logon but I would like to know if somewhere I can find the logs from the script execution i.e. output from Write-Verbose/Write-Output/Write-Host etc. from the script execution in some logs. The Unattend logs (Windows\Panther\Unattend) don't actually have the logon command execution logs and I'm not sure of another place to look for these logs. I will probably just write the logs to a file during script execution if there isn't a better way to get execution trace logs. Appreciate any help. TIA!

mfinni avatar
cn flag
I wouldn't assume that the unattend process will be logging output from your script, so it's probably best for you to handle the logging on your own inside it.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.