Enter-BoxstarterLogable
SYNOPSIS
Logs the output and error streams of the script to the
console and Boxstarter log.
SYNTAX
Enter-BoxstarterLogable
[-script <scriptblock>]
DESCRIPTION
Boxstarter runs the provided script and redirects the
standard output and standard error streams to the host
console and to the Boxstarter log. This will include both
powershell write-output and errors as well as the output
from any standard commandline executables that use
standard output and error streams.
PARAMETER
script
The script to execute.
EXAMPLE
Enter-BoxstarterLogable{
Get-Process Chrome
Netstat
}
This sends both the out put of the powershemm Get-Process
cmdlet and the Netstat command line utility to the screen
as well as th boxstarter log.
LINK
about boxstarter logging