Please follow the PDrive Validation Status Documentation process document step by step, that is available in the Zip file and use the Input files templates as required for your required Output.
Firstly, create your O365 Dev Tenant Admin Credentials.
Create the PendingUsers.csv file in the given below format with the given heading and mention all the User Account names for verifying.
Personal Drive Validation Status Documentation
Similarly, make sure that your Users folder has all the Data Restoration done so that the individual Personal Drives are available for their respective User Accounts as mentioned below.
Personal Drive Validation Status Documentation
Please make use of the below script for PDrive Validation[save it with .ps1 extension only] and getting the Output of them per User Account as mentioned below. Also, do your respective File paths, Input CSV file paths and Output File paths configuration as per your machine Files location.
  1. $Admin = "[email protected]"
  2. $AdminPassword = "*******"
  3. $Directory = "abcltdnew.onmicrosoft.com"
  4. $CsvFilePath = "E:\CHG156539\PSDevelopmentZone\PendingUsers1.csv"
  5. # Create a PowerShell connection to my directory
  6. $SecPass = ConvertTo-SecureString $AdminPassword -AsPlainText -Force
  7. $Cred = New-Object System.Management.Automation.PSCredential ($Admin, $SecPass)
  8. Connect-AzureAD -Credential $cred
  9. #Connect-AzureAD –Credentials (Get-Credential)
  10. # Import the csv file
  11. $NewUsers = import-csv -Path $CsvFilePath
  12. $UPNobjects = $NewUsers.'User Name'| select-object
  13. $folderFlag = 'No'
  14. $result = @()
  15. ForEach ($UPNTemp in $UPNobjects)
  16. {
  17. $FolderPath = "E:\CHG156539\PSDevelopmentZone\Users\" + $UPNTemp | select-object
  18. # FolderPath Validation
  19. If(Test-Path -Path $FolderPath -PathType Container)
  20. {
  21. $folderflag = 'Yes'
  22. }
  23. else
  24. {
  25. $folderflag = 'No'
  26. }
  27. Write-Host Username is $UPNTemp Data Restoration Status $folderflag | select-object
  28. $ExportItem = New-Object PSObject
  29. $ExportItem | Add-Member -MemberType NoteProperty -name "User" -value $UPNTemp
  30. $ExportItem | Add-Member -MemberType NoteProperty -name "FolderStatus" -value $folderFlag
  31. $result += $ExportItem
  32. }
  33. $result | Export-Csv -Path "E:\CHG156539\PSDevelopmentZone\PDriveValidationOutput.csv" -NoTypeInformation
Run the above updated PowerShell script as described below,
Personal Drive Validation Status Documentation
Press Enter to continue as shown below,
Personal Drive Validation Status Documentation
Check the output at the mentioned location and use it for further analysis and proceedings.
You can use it for your PreCheckScanning before starting the migration jobs only after you get the confirmation that the User Accounts Data Restoration is completed in the form of Personal Drives.
That's all for today. Have a great day:)
Personal Drive Validation Status Documentation