Thanks.. Isin't that a boolean return and not all users?
I get the error
export-fimconfig : Failure on making enumeration web service call.
Filter = /Person[starts-with(DisplayName, 'A']
Error= Microsoft.ResourceManagement.WebServices.Faults.ServiceFaultException: cannot filter as requested
at Microsoft.ResourceManagement.WebServices.Client.ResourceTemplate.EnumerateResources(SearchParameters parameters,
ClientOptionsHelper clientOptionsHelper)
at Microsoft.ResourceManagement.WebServices.ResourceManager.MoveNext()
at Microsoft.ResourceManagement.Automation.ExportConfig.EndProcessing()
At XXXXXXXXXXXXX\Delete.ps1:6 char:30
+ $PeopleStartingWithA = export-fimconfig `
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Export-FIMConfig], InvalidOperationException
+ FullyQualifiedErrorId : ExportConfig,Microsoft.ResourceManagement.Automation.ExportConfig
Code
Add-PSSnapin fimautomation
$PeopleStartingWithA = export-fimconfig `
onlyBaseResources `
-customconfig "/Person[starts-with(DisplayName, 'A']"
Write-Host $PeopleStartingWithA