Skip to content

Build-CUTree fails when the path for the machine is blank #25

Description

@Trentent

Get-CUComputers will get all computer objects. Sometimes these objects do not have paths. This causes the Build-CUTree script to error out at this line:
foreach ($CUComputer in $CUComputers.Where{$_.path.startsWith( $curootFolderAllLower ) }) { #hey! StartsWith is case sensitive.. at least we return path in lowercase.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions