Here is a PowerShell script which you can use to test the admin$ share access. This script is useful when you are performing computer migrations. You can use a CSV file as an input file.
This script generates 3 output files; Success_Computers.txt, Failed_Computers.txt and UserNames.txt
Here is the Input.CSV file format:
Usage: Add all computer names to the Input.CSV file and run the PreMig.PS1 script.