Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save JohnLBevan/ad112826790fd2148bf43c3b5602ec4b to your computer and use it in GitHub Desktop.
Save JohnLBevan/ad112826790fd2148bf43c3b5602ec4b to your computer and use it in GitHub Desktop.
Find and run the DFO365 Admin User Provisioning Tool
$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