Deltas/Get-IsStandardNAVObject.ps1
function Get-IsStandardNAVObject { Param( [Parameter(Mandatory=$false)] [string]$ObjectFileName, [Parameter(Mandatory=$false)] [int]$ObjectID ) if (($ObjectFileName -ne '') -and ($ObjectID -eq 0)) { $ObjectFileName = $ObjectFileName.Substring(0,$ObjectFileName.LastIndexOf('.')) $ObjectFileName = $ObjectFileName.Substring(3) if (![Int]::TryParse($ObjectFileName,[ref]$ObjectID)) { $false return } } if (($ObjectID -lt 50000) -or ($ObjectID -gt 90000000) -or ($ObjectID -ige 130000 -and $ObjectID -ile 144500)) { $true } else { $false } } Export-ModuleMember -Function Get-IsStandardNAVObject |