I'm using xp_cmdshell to get files information from network share like this:
EXEC master..xp_cmdshell 'dir \\Server\share\folder'
but i get output 'access is denied'
I figured out my account was NT Service\mssqlserver
that can't get access to local system. In my case I can't change the service account to local system because it will require restarting the service.
Is there a way to get access with NT Service or anything I can do? Thanks for the help.