After watching the Powershell Scripting with Cherokee and Mike. For some reason the ogv (out-GridView) alias is not working. It is the list when I type Get-Alias. Any thoughts?
-
Powershell Aliases
-
Hello @Susan-Runfola ,
I would need to see the command you are trying to execute to help. If you see the alias, I'm thinking the problem might be in the command. Are you piping the results into Out-GridView? Are you using any formatting options?
A couple of things about Out-GridView.
- This cmdlet is only available on Windows systems that support the Windows Desktop.
- This cmdlet was reintroduced in PowerShell 7.
- The command output that you send to Out-GridView cannot be formatted using the Format cmdlets, such as Format-Table or Format-Wide cmdlets.
Mike Rodrick
Edutainer, ITProTV**if the post above has answered the question, please mark the topic as solved.
-
Hello @Mike-Rodrick
I was just able to get the command to work using get-service | where status -eq "running" | Out-GridView. I am new to PowerShell and must have been doing something incorrectly before. Thank you for responding.
Susan -
Glad you got it working!
Mike Rodrick
Edutainer, ITProTV**if the post above has answered the question, please mark the topic as solved.