Skip to content

Instantly share code, notes, and snippets.

@bielawb
Created February 8, 2017 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bielawb/b727254f14542ea79bdad43c7b817e28 to your computer and use it in GitHub Desktop.
Save bielawb/b727254f14542ea79bdad43c7b817e28 to your computer and use it in GitHub Desktop.
Truncated output in Get-History/$__ inside HistoryPx
ls -Recurse -Force C:\Windows\
# .... .... ....
Get-History -Id 1 | Format-List *
<#
Duration : 00:07:41.1907948
Success : False
Output : {addins, ADFS, appcompat, AppPatch...}
OutputCount : 217767
Error : {Access to the path 'C:\Windows\CSC\v2.0.6' is denied., Access to the path 'C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc' is denied., Access to the path
'C:\Windows\System32\config\systemprofile\AppData\Local\Microsoft\Windows\INetCache\Content.IE5' is denied., Access to the path 'C:\Windows\System32\LogFiles\WMI\RtBackup' is
denied....}
ErrorCount : 5
OutputTruncated : True
Id : 12
CommandLine : ls -Recurse -Force C:\Windows\
ExecutionStatus : Completed
StartExecutionTime : 2017-02-08 21:48:31
EndExecutionTime : 2017-02-08 21:56:13
#>
$__.Count
<#
1000
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment