Using Powershell “Start-Transcript/Stop-Transcript” commands

These two Powershell commands can help you capture and save what you have type during your Powershell session:

Start-Transcript and Stop-Transcript.


Start Powershell



At the prompt, type:

PS> Start-Transcript c:\temp\CaptureDemo.txt

{this command need a filename to store you sesion data}


Now, type any command:

PS> Get-Service



PS> Get-Service | Get-member


Then, stop the transcript:

PS> Stop-Transcript


To view the result change directory to C:\Temp then use the Powershll command "ii":

PS> CD C:\Temp

PS> ii C:\Temp\capturedemo.txt


This command "ii" will open notepad and display the content of the file.


About maxt2posh

I’m from Puerto Rico, have been working with computers since 1979. Throughout many years, I have worked with SQL Server Technologies, provided support to Windows Servers/Client machines, Microsoft Virtualization Technologies, and build some Visual Studio solutions. I’m a Microsoft PowerShell MVP since 2009 and MVP SAPIEN Technologies since 2010. I speak in most of the SQLSaturday, IT Pro and .NET camps events around the Florida’s State. Also founder of the Florida PowerShell User Group which meeting every 3rd Tuesday evening of the month.
This entry was posted in PowerShell. Bookmark the permalink.

2 Responses to Using Powershell “Start-Transcript/Stop-Transcript” commands

  1. Gerard says:

    Exactly what I was looking for.
    Great Thanks,

  2. WOW just what I was searching for. Came here by searching for diabetes;
    diabetic diet; diabetic weight loss; prevention; blood sugar;
    diab-x; provenresultshealth; live longer now; halt diabetes

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s