-
Notifications
You must be signed in to change notification settings - Fork 52
Get HPOVCommandTrace
Start an HPOV Library Verbose Trace.
Get-HPOVCommandTrace [-ScriptBlock] <ScriptBlock> [-Location] <String> [<CommonParameters>]
This Cmdlet will assist the user in setting up the PowerShell environment to generate and capture Verbose output from HPOV Library Cmdlets. Once this Cmdlet has been executed, the prior HPOV Cmdlets can be executed, without the need of using the `-Cerbose` switch.
Cmdlet output will be captured using the built-in Microsoft PowerShell Start-Transcript provider. A transcript trace file will be saved in either the current working directory, or specified using the -Location
parameter.
Please know that this Cmdlet is currently not supported in the Windows PowerShell ISE, unless using PowerShell v5 or newer.
-Location <String>
Specify the directory where the output file will be created. A file with the following format will be created:
"{Date}_HPOV_transcript.log", where date is derived from `Get-Date -UFormat %y%m%d%H%M`
Default Value: (PWD).Path
Aliases | None |
Required? | true |
Position? | 1 |
Default value | (pwd).path |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-ScriptBlock <ScriptBlock>
The command within a ScriptBlock to execute. The Cmdlet will add the -Verbose switch end of the command.
Aliases | Command |
Required? | True |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
System.Management.Automation.ScriptBlock
ScriptBlock of the command or commands to generate verbose output for.
System.IO.FileInfo
FileInfo object where the "{Date}_HPOV_transcript.log" file is generated.
-------------------------- EXAMPLE 1 --------------------------Get-HPOVCommandTrace C: emp
Start a new library trace, which will create a file in the C: emp
directory.
Start an HPOV Library Verbose Trace.
Get-HPOVCommandTrace [-ScriptBlock] <ScriptBlock> [-Location] <String> [<CommonParameters>]
This Cmdlet will assist the user in setting up the PowerShell environment to generate and capture Verbose output from HPOV Library Cmdlets. Once this Cmdlet has been executed, the prior HPOV Cmdlets can be executed, without the need of using the `-Cerbose` switch.
Cmdlet output will be captured using the built-in Microsoft PowerShell Start-Transcript provider. A transcript trace file will be saved in either the current working directory, or specified using the -Location
parameter.
Please know that this Cmdlet is currently not supported in the Windows PowerShell ISE, unless using PowerShell v5 or newer.
-Location <String>
Specify the directory where the output file will be created. A file with the following format will be created:
'{Date}_HPOV_transcript.log', where date is derived from `Get-Date -UFormat %y%m%d%H%M`
Default Value: (PWD).Path
Aliases | None |
Required? | true |
Position? | 1 |
Default value | (pwd).path |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-ScriptBlock <ScriptBlock>
The command within a ScriptBlock to execute. The Cmdlet will add the -Verbose switch end of the command.
Aliases | Command |
Required? | True |
Position? | 0 |
Default value | |
Accept pipeline input? | true (ByValue) |
Accept wildcard characters? | False |
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216)
System.Management.Automation.ScriptBlock
ScriptBlock of the command or commands to generate verbose output for.
System.IO.FileInfo
FileInfo object where the '{Date}_HPOV_transcript.log' file is generated.
-------------------------- EXAMPLE 1 --------------------------Get-HPOVCommandTrace C:\Temp
Start a new library trace, which will create a file in the C:\Temp
directory.