I've migrated to powershell 7 recently, but I can't make the powershell transcription working for powershell 7. (Legacy powershell transcription works fine though.)
The registry is this:
Computer\HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows\PowerShell\Transcription
EnableTranscripting = 1
OutputDirectory = D:\logs
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell\Transcription
EnableTranscripting = 1
OutputDirectory = D:\logs
And it does not work for powershell 7, and group policies (Computer/User Configuration > Administrative Templates > Windows Components > Windows PowerShell
) have been set as well and it did not work.
Anyone knows how to make powershell 7 transcription works?