Tinus EngOps Wiki

Logo

OpsaC - Operating as PowerShell code

Links

Home

IT-Wiki

PowerShell Blog

PowerShell Index

PowerShell Search

Additional Websites

View my GitHub Profile

View my GitHub Gists

View my Codeberg Page

View my Photo Website

Transcript

published: June 25, 2015 author: Tinu tags: Logging - Scripting categories: PowerShell


Ausgabe mit Transcript in ein Logfile abspeichern.

Transcript starten

Try {Stop-Transcript}catch{}
Start-Transcript -Path "C:\Scripts\Transcript.log"

Transcript stoppen

Nicht vergessen die Aufzeichnung nach Gebrauch zu stoppen.

Stop-Transcript

Fazit

Die Formatierung lässt noch zu wünschen übrig. Ansonsten finde ich diese Funktion sehr hilfreich.


← Previous Post ◇ [ Top ] ◇ Copyright © 2024 by tinuwalther ◇ [ Blog ] ◇ Next Post →