How to do implicit processing?

Welcome Forums General PowerShell Q&A How to do implicit processing?

Viewing 4 reply threads
  • Author
    Posts
    • #225552
      OK
      Participant
      Topics: 9
      Replies: 20
      Points: 122
      Rank: Participant

      I use powershellcore7arm to pwshwin7,I want to create an implicit session

      Export-PSSession -session $session -OutputModule s -Force -CommandName ‘Get-winEvent’ -AllowClobber -CommandType all
      import-module s -vb
      

      But I get an error, what should I do?

      New-PSSessionOption: A parameter cannot be found that matches parameter name ‘Culture’.
      
    • #225558
      Participant
      Topics: 3
      Replies: 322
      Points: 1,056
      Helping Hand
      Rank: Community Hero

      How did you create your session, you should show all relevant code.

    • #228028
      OK
      Participant
      Topics: 9
      Replies: 20
      Points: 122
      Rank: Participant
      
      $session=new-PSSession xxx
      Export-PSSession -session $session -OutputModule s -Force -CommandName ‘Get-winEvent’ -AllowClobber -CommandType all
      Remove-PSSession -Session $session
      import-module s -vb
      get-winevent -FilterHashtable @{ LogName=’Security’; StartTime=$Date; Id=’4625′ }
      error
      
      
    • #228031
      OK
      Participant
      Topics: 9
      Replies: 20
      Points: 122
      Rank: Participant
      Creating a new session for implicit remoting of “Get-WinEvent” command… ParentContainsErrorRecordException: /root/.local/share/powershell/Modules/s/s.psm1:321
      Line |
      321 | $steppablePipeline = $scriptCmd.GetSteppablePipeline($myI … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      | Exception calling “GetSteppablePipeline” with “1”
      | argument(s): “A parameter cannot be found that
      | matches parameter name ‘Culture’.”
    • #228037
      Participant
      Topics: 3
      Replies: 322
      Points: 1,056
      Helping Hand
      Rank: Community Hero

      Is the target machine windows? Get-WinEvent depends on windows APIs. If it is windows, maybe an issue with just ARM version? Are you on preview 1?

      It worked fine from windows 10, powershell 7.1.0-preview.1 to windows 10, powershell 7.1.0-preview.2.

      Also take a look at this discussion.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.