1..10 | %{ [PSCustomObject]@{ Name="Name_$_"; Value = $_} } | ogv
$a = 1..10 | %{ [PSCustomObject]@{ Name="Name_$_"; Value = $_} }
$a
ls -r | ?{(!$_.PsIsContainer -and !$_.Extension)} | %{ ren $_ ($_.Name + ".jpg") -whatif}
To access the packaging and deployment event logs
Run eventvwr.msc.
Go to Event Viewer (Local) > Applications and Services Logs > Microsoft > Windows.
The first log to check is AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational.
Deployment-related errors are recorded in AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational.
You can also use the following command in PowerShell to get the first few logged events:
Get-Appxlog | Out-GridView