V1

We have had a few issues where users cant log on and all they get is this message "The User Profile Service service failed the logon" the way we found to fix this was to logon as the local Admin and rename C:\Users\Default to Default.old and then replace the whole folder with a copy we had from a working machine, this was taking a long time to do so I created this script which remotely renames the folder and copies the replacement folder from another location i.e. network location or local location