Maybe if you explain exactly what you are trying to do we can be of more help. Why do you need to use CMD prompt or RUN box?
Bree, when I run the last example you posted, this is what I get:
Code:
PS C:\Windows\System32\WindowsPowerShell\v1.0> Get-ChildItem C:\*.txt -recurse -erroraction 'silentlycontinue' |
where {($_.Length) -gt 150KB} | where {($_.Length) -lt 300KB}
Directory:
C:\Users\ztruk\Documents\AppData\Local\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\AC\AppCache\ADAOO2L2\101
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 10/30/2015 5:07 AM 272448 C__Windows_SystemApps_Microsoft.Windows.Cortana_cw5n1h2txyewy_cache_De
sktop_2[1].txt
Directory: C:\Users\ztruk\Documents\AppData\Local\Packages\Microsoft.Windows.Cortana_cw5n1h2txyewy\LocalState\Devic
eSearchCache
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/15/2016 9:33 AM 226246 SettingsCache.txt
Directory: C:\Users\ztruk\Documents\AppData\Roaming\Roxio
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 4/23/2015 11:23 PM 183934 PlasmaLog.txt
Get-ChildItem : Access is denied
At line:1 char:9
+ Get-ChildItem C:\*.txt -recurse -erroraction 'silentlycontinu ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ChildItem], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.PowerShell.Commands.GetChildItemCommand
PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> Last edited by Bree; 1 Hour Ago at 06:19 PM.
At line:1 char:32
+ Last edited by Bree; 1 Hour Ago at 06:19 PM.
+ ~~~~
Unexpected token 'Hour' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken
PS C:\Windows\System32\WindowsPowerShell\v1.0>
PS C:\Windows\System32\WindowsPowerShell\v1.0> My ComputersSystem Spec
My : The term 'My' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:7
+ My ComputersSystem Spec
+ ~~
+ CategoryInfo : ObjectNotFound: (My:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\System32\WindowsPowerShell\v1.0> Quote Quote Multi-Quote This Message
Quote : The term 'Quote' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:5
+ Quote Quote Multi-Quote This Message
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (Quote:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Why am I getting the errors, other than Access Denied, those I understand.