Use the PowerShell transcript record

Source: Internet
Author: User

An administrator can create a PowerShell copy of the log. The PowerShell console host--The blue window that starts from the Start menu or Start screen--supports the creation of transcripts. Just run Start-transcript, provide a filename, and then your activities in this window will be captured, including command output, and so on. Each transcript needs to be run space, meaning that each new PowerShell window needs to have its own script. You can close the window directly or run Stop-transcript when you close the file.

You can use any of the running space of the console window with a script, including the Exchange Management shell, the SharePoint Management shell, and any other management shell. These are all running Powershell.exe--powershell console hosts--pre-installed scripts and Plug-ins.

Conversely, the PowerShell Integrated Scripting Environment (ISE) does not support transcripts. Other managed applications, such as the Business Script Editor, are not supported. For these managed applications, administrators need to provide their own logging mechanisms because Ise does not. Otherwise, you'll get into trouble.

If you use remoting, the rules are slightly different.

If you use Enter-pssession to interact remotely with the same machine, the remote machine will not retain transcripts or PowerShell transcripts. This is because the managed application on the remote machine does not support transcripts. However, any commands and return results sent to the remote machine are preserved on the machine. By remote, you do not have to use a true Secureshell (SSH) type of connection. You or the local console output; The complete command is sent to the remote machine for execution, and the result is deserialized back to local control

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.