Logon failure: account currently disabled using Copy-Item

320 Views Asked by At

I am getting the following error when attempting to use Copy-Item in powershell;

Logon failure: account currently disabled

The powershell code;

Copy-Item -Path $_ -Destination $remotePath -Recurse -Container -Force

UP until yesterday, this was working fine. Today, nope. I can access the remote machine using the UNC path that it is copying the file to. I can login to the machie directly using RDP and I am in the local Admins group.

I can see nothing in the standard logs. A reboot of the target machine does nothing.

0

There are 0 best solutions below