First, what I was able to obtain typing powershell in the search box and then pasting the command in # 11. I had to copy/paste from the window. It did not create a file on the desktop.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Optiplex> Get-ChildItem HKLM:\SOFTWARE\Policies -Recurse -Force | Out-File $env:USERPROFILE\Desktop\Policy.txtGet-ChildItem HKLM:\SOFTWARE\Policies -Recurse -Force | Out-File $env:USERPROFILE\Desktop\Policy.txt
Out-File : Cannot validate argument on parameter 'Encoding'. The argument "HKLM:\SOFTWARE\Policies" does not belong to the set
"unknown,string,unicode,bigendianunicode,utf8,utf7,utf32,ascii,default,oem" specified by the ValidateSet attribute. Supply an argument that is in the set and then try
the command again.
At line:1 char:115
+ ... OFILE\Desktop\Policy.txtGet-ChildItem HKLM:\SOFTWARE\Policies -Recurs ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData:
) [Out-File], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.OutFileCommand
PS C:\Users\Optiplex>
Next, the screenshot ...