Get-WUList command result different between local and Invoke-Command

Viewing 5 reply threads
  • Author
    Posts
    • #1562939
      Bruno Bernardi
      Participant
      Member Points: 364
      Rank: 2

      Hello Powershell group members.

      I try to launch a windows 8 update by using powershell.

      But when I want to list the avaliable update by using Invoke-Command remoting command I have no result.

      And when I do the same on local virtual computer, I have a big list :

      My login is registered as an administrator on the Virtual Machine.

      Could you tell me whitch setting I have to activate if I want to have the Get-WUList result with Invoke-COmmand ?

      Best regards.

    • #1562941
      Michael Pietroforte
      Keymaster
      Member Points: 40,154
      Author of the year 2018
      Rank: 4

      Did you try if other remote commands work? You can try dir to see if remoting works.

    • #1562952
      Bruno Bernardi
      Participant
      Member Points: 364
      Rank: 2

      Hello Michael.

      Here is the result of the “dir” command on both side :

      The result is the same.

      Regards.

    • #1562954
      Michael Pietroforte
      Keymaster
      Member Points: 40,154
      Author of the year 2018
      Rank: 4

      Strange. Did you try to connect to the remote with Enter-PSsession and then try Get-WUList?

      • #1562955
        Bruno Bernardi
        Participant
        Member Points: 364
        Rank: 2

        Yes, here is the result :

    • #1562956
      Michael Pietroforte
      Keymaster
      Member Points: 40,154
      Author of the year 2018
      Rank: 4

      It seems the PSWindowsUpdate module is not loaded. Can you import it?

      • #1562968
        Bruno Bernardi
        Participant
        Member Points: 364
        Rank: 2

        I think the PSWindowsUpdate module is already installed :

        • #1562969
          Michael Pietroforte
          Keymaster
          Member Points: 40,154
          Author of the year 2018
          Rank: 4

          I think the interesting question is not if it is installed, but it if it loaded into your remote session.

        • #1562970
          Bruno Bernardi
          Participant
          Member Points: 364
          Rank: 2

          I Michael. Thank you for your help.

          I Execute the install-Module PSWindowsUpdate with -Verbose option on both machine. So I suppose the module is installed and loaded. I have also execute Get-WUList command with -Verbose and the result so weird :

          It seems the command is lauched well but cannot have access to the availables updates. What do you think ?

          Regards.

    • #1562972
      Michael Pietroforte
      Keymaster
      Member Points: 40,154
      Author of the year 2018
      Rank: 4

      Your screenshots are not really helpful because it all in French. I highly recommend to work only in English as an IT pro. This allows you to search for error messages and communicate with other IT pros on the net.

      You can try to run get-module, to see if the module has been loaded in your remote session.

      Perhaps the module does not work in remote sessions. I recommend contacting the developer.

       

Viewing 5 reply threads
  • You must be logged in to reply to this topic.
© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account