No PowerShell cmdlets recognized


  1. Posts : 23
    Windows 10
       #1

    No PowerShell cmdlets recognized


    Running powershell as Administrator or running the ISE as Administrator (which shows Admin at top of one of the two images) isn't returning what I am expecting for looking at tasks scheduled. Any idea what's up with the output in the images? I was running Windows 7 Home Premium and updated to Windows 10 end of July/early August. I have another thread on an issue that I haven't been able to resolve and was hoping maybe using Powershell would help me locate that issue (monitor turning on by itself after physically being turned off via power button at ~3am daily (probably 2:5x timeframe but it happens daily).

    Thanks in advance for any insight.

    Mike
    Attached Thumbnails Attached Thumbnails No PowerShell cmdlets recognized-pwrshell_admin_get_cmd.jpg   No PowerShell cmdlets recognized-pwrshell_admin_get_cmd2.jpg  
      My Computer


  2. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #2

    It would probably help if you posted the command in your question, I don't mind copy pasting but I draw the line at trying to read it from a pic
      My Computer


  3. Posts : 23
    Windows 10
    Thread Starter
       #3

    sml156 said:
    It would probably help if you posted the command in your question, I don't mind copy pasting but I draw the line at trying to read it from a pic
    Here you go: Get-ScheduledTask | Get-ScheduledTaskInfo | Sort-Object LastRunTime, TaskName | ft TaskName,LastRunTime -auto

    Mike
      My Computer


  4. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #4

    I ran that on my computer and it ran fine as administrator and as a non administrator and it worked both times the only thing I can think of is that somehow you don't have the correct version of PowerShell, To check your version -copy pate this into powershell
    Code:
    get-host|Select-Object version
    Version
    -------
    5.0.10240.16384


    also these should tell you
    Code:
    $psversiontable
    Name Value
    ---- -----
    PSVersion 5.0.10240.16384
    WSManStackVersion 3.0
    SerializationVersion 1.1.0.1
    CLRVersion 4.0.30319.42000
    BuildVersion 10.0.10240.16384
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    PSRemotingProtocolVersion 2.3
    Code:
    $host.version

    Major Minor Build Revision
    ----- ----- ----- --------
    5 0 10240 16384
      My Computer


  5. Posts : 23
    Windows 10
    Thread Starter
       #5

    Version
    -------
    5.0.10240.16384


    PS C:\WINDOWS\system32> $psversiontable

    Name Value
    ---- -----
    PSVersion 5.0.10240.16384
    WSManStackVersion 3.0
    SerializationVersion 1.1.0.1
    CLRVersion 4.0.30319.42000
    BuildVersion 10.0.10240.16384
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    PSRemotingProtocolVersion 2.3

    PS C:\WINDOWS\system32> $host.version

    Major Minor Build Revision
    ----- ----- ----- --------
    5 0 10240 16384

    That was run as administator for the ISE option.

    Mike
      My Computer


  6. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #6

    The only thing left that I can think of is if your pasting the command in it might be getting screwed up, try pasting it in notepad and then copy it from there and then paste it into Powershell
      My Computer


  7. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #7

    I don't usually use ISE but it also worked for me

    No PowerShell cmdlets recognized-powershell.png
      My Computer


  8. Posts : 23
    Windows 10
    Thread Starter
       #8

    When I type in Powershell it shows up top of list and I can right click and run as admin but it doesn't show Administrator in the title bar/etc....even the x86 did same, only when I run the ISE version does it show admin. Strange. I really don't want to go back and do a clean installation....that'd be a whole lot of work figuring out prior what I need to reinstall. I know that is sometimes better because a lot of fluff you install and don't use a lot doesn't get re-installed (for a time lol). It just is stumping me, I'm no windows guru but I am not a slouch and google is my friend (or someone a tad more knowledgable). I'm not too worried about this, my main concern is in another thread where some scheduled job is turning my monitor ON ~2:5x am daily.

    And I've been through the threads, power options, etc...and still haven't found it yet. I am leaning towards WindowsUpdate BUT I also set my Maintenance to run 8am BUT also the WIndowsUpdate is showing a runtime of 2:53am and I was not able to find out how to change that, when I did and tried to exit out of Task Scheduler earlier tonight it said it had to try and restart the process... And on top of this is when I run Task Scheduler from the search box I get a hexadecimal error message and it shows the same values every time. So I am not sure what is causing that as well....And again, I really don't want to do a clean install if I can help it. Everything else is running ok, just turning my monitor on is driving me crazy...that should *not* be happening. I haven't reset the monitor yet (an HP 23ix (something like that) model, push button underneath vs on front panel for all controls - why HP WHY?!

    Anyways, I appreciate all the assistance and would love to be able to return the favors at some point! But my monitor turning on (diff thread) is my main concern then this and the task scheduler errors, I'll take screen shots of that. Once I close the dialogs out (once or twice) I can look at anything in there and make edits, it's just on initial loading of it that it complains. But that's another topic ;-)

    Mike
      My Computer


  9. Posts : 14,046
    Windows 11 Pro X64 22H2 22621.1848
       #9

    Is C:\WINDOWS\System32\WindowsPowerShell\v1.0\; in your PATH environment variable?
    Open a Command Prompt and enter path to look at it. If not, add it and see if that fixes the problem.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:21.
Find Us




Windows 10 Forums