I\'ve a powershell script which runs on server(test-server) and reads the log file of his client(DC1).
@Lars Truijens's suggestion solved my issue. But other suggestions are also important to check.
So, here is the checklist if you get this kind of error when you try to get log files remotely:
dir \\dc1\c$
to see that you are allowed to reach to the
harddisk. (@Shay Levy's suggestion)Get-Service -ComputerName YOURCOMPUTERNAME
to see that you are
allowed to reach to the services. (@Shay Levy's suggestion)Here is the screenshot of this solution: