You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running Get-AzDomainInfo -verbose I received an Illegal characters in path error for every time Get-AzDomainInfo tried to write any output:
This is because the subscription has pipes | in it's name and those are illegal characters for a folder name. To fix my issue I edited lines 173-176 of Get-AzDomainInfo.ps1 to the following code:
Probably a better solution to catch all Illegal characters is remove any characters from [System.IO.Path]::GetInvalidFileNameChars() -join '' out of the folder name to prevent this issue in the future.
The text was updated successfully, but these errors were encountered:
After running
Get-AzDomainInfo -verbose
I received an Illegal characters in path error for every time Get-AzDomainInfo tried to write any output:This is because the subscription has pipes
|
in it's name and those are illegal characters for a folder name. To fix my issue I edited lines 173-176 of Get-AzDomainInfo.ps1 to the following code:Probably a better solution to catch all Illegal characters is remove any characters from
[System.IO.Path]::GetInvalidFileNameChars() -join ''
out of the folder name to prevent this issue in the future.The text was updated successfully, but these errors were encountered: