PoshCode Archive  Artifact [003b32cd75]

Artifact 003b32cd758deee7061a40f4419a68efc7fa4ef4f87bbedd8029aa985a24f26c:

  • File Search-for-PowerCLI-4-1-.ps1 — part of check-in [5119643e21] at 2018-06-10 13:03:48 on branch trunk — Search for PowerCLI 4.1 incompatible type references (user: unknown size: 529)

# encoding: ascii
# api: powershell
# title: 
# description: Search for PowerCLI 4.1 incompatible type references
# version: 0.1
# license: CC0
# x-poshcode-id: 1996
# x-archived: 2010-07-21T21:17:35
#
#
Get-PSDrive -PSProvider FileSystem | foreach { $_.Root } | `
   Get-ChildItem -Recurse -Include '*.ps1', '*.psm1', '*.ps1xml' | `
   where { Select-String -Path $_ -SimpleMatch -Pattern `
            'VMware.VimAutomation.Types.', `
            'VMware.VimAutomation.Client20.', `
            '[Datastore]' }