Repair Permissions on Windows Devices
Repairs User Permissions on Windows Devices, no environmental changes or modifications necessary for this script, you can add a 64 or 32 bit check.
DiskUtil is not a native Windows application.
Need to change "osType" to other than "MacOS" to run on Windows machines
Repair Permissions on Windows Devices has no comments.