Personal Drive Validation Status Documentation

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.    
  5. $CsvFilePath = "E:\CHG156539\PSDevelopmentZone\PendingUsers1.csv"  
  6.   
  7. # Create a PowerShell connection to my directory  
  8. $SecPass = ConvertTo-SecureString $AdminPassword -AsPlainText -Force  
  9. $Cred = New-Object System.Management.Automation.PSCredential ($Admin, $SecPass)  
  10. Connect-AzureAD -Credential $cred  
  11. #Connect-AzureAD –Credentials (Get-Credential)  
  12.   
  13. # Import the csv file  
  14. $NewUsers = import-csv -Path $CsvFilePath  
  15. $UPNobjects = $NewUsers.'User Name'| select-object  
  16. $folderFlag = 'No'  
  17.   
  18. $result = @()  
  19.    
  20. ForEach ($UPNTemp in $UPNobjects)   
  21. {  
  22.     $FolderPath = "E:\CHG156539\PSDevelopmentZone\Users\" + $UPNTemp  | select-object  
  23.  
  24.     # FolderPath Validation  
  25.     If(Test-Path -Path $FolderPath -PathType Container)  
  26.     {  
  27.          
  28.         $folderflag = 'Yes'  
  29.     }  
  30.     else  
  31.     {  
  32.         $folderflag = 'No'  
  33.     }  
  34.   
  35.     Write-Host Username is $UPNTemp Data Restoration Status $folderflag | select-object  
  36.   
  37.     $ExportItem = New-Object PSObject  
  38.     $ExportItem | Add-Member -MemberType NoteProperty -name "User" -value $UPNTemp  
  39.     $ExportItem | Add-Member -MemberType NoteProperty -name "FolderStatus" -value $folderFlag  
  40.     $result += $ExportItem  
  41. }  
  42.    
  43. $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