Created
May 1, 2018 08:50
-
-
Save JohnLBevan/ad112826790fd2148bf43c3b5602ec4b to your computer and use it in GitHub Desktop.
Find and run the DFO365 Admin User Provisioning Tool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$serviceVolume = Get-PSDrive -PSProvider 'Microsoft.PowerShell.Core\FileSystem' | ?{$_.Description -eq 'Service Volume'} | |
$adminProvTool = Join-Path -Path $serviceVolume.Root -ChildPath 'AosService\PackagesLocalDirectory\bin\AdminUserProvisioning.exe' | |
if (Test-Path -Path $adminProvTool) { | |
"Admin User Provisioning Tool Found: $adminProvTool" | |
& $adminProvTool | |
} else { | |
Write-Error "Could not find admin user provisitioning tool at: $adminProvTool" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment