top of page

How to Start Transcript to Record the Powershell Session

The Start-Transcript cmdlet creates a record of all or part of a Windows PowerShell session to a text file. The transcript includes all command that the user types and all output that appears on the console.

Starting in Windows PowerShell 5.0, Start-Transcript includes the host name in the generated file name of all transcripts. This is especially useful when your enterprise’s logging is centralized. Files that are created by the Start-Transcript cmdlet include random characters in names to prevent potential overwrites or duplication when two or more transcripts are started simultaneously. This also prevents unauthorized discovery of transcripts that are stored in a centralized file share. Additionally in Windows PowerShell 5.0, the Start-Transcript cmdlet works in Windows PowerShell ISE.

Run the below commend to start the Transript in the Powershell



Get-HostedConnectionFilterPolicy | fl


Run the below command to stop the  Transript in the Powershell


You can open the Output file form the location mentioned in the powershell and see all the commands are captured..

1 view0 comments
bottom of page