Let's start with psexec. It requires access to the admin$ share on the target pc in order to function. Verify access. Replace "test10" with the name of your target pc.
net view \\test10 /all
dir \\test10\admin$
If you get "access denied", on the "net view", that says that the account that you logged on your pc with cannot authenticate to the target pc. You will need to provide credentials.
net use \\test10\ipc$ /user:YourTest10AdminName
net view \\test10 /all
dir \\test10\admin$
net use \\test10\ipc$ /del
If "net view" works but the dir command still gets access denied, then check this registry value on the target pc.
REG query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy
If it does not exist, or is set to 0, then enable it with this command.
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f
Then try again.
Once you can access the admin$ share, then try psexec. Either with or without credentials.
psexec \\test10 cmd.exe
psexec \\test10 -u YourTest10AdminName -p YourTest10AdminPassword cmd.exe