Good day Experts,I am new to powershell and please help me.Where i work we use powershell script in sql server agent job to retrieve information that is hostname and disk drives size and free space from remote computers.All other sites are fine but now i have three sites sitting on a different domain and when i run the job in sql server agent it returns error 'Access denied'Part of the script is as followsGet-WMIObject Win32_LogicalDisk -filter "DriveType=3" -computer $hostname.I was told to try create a credential object by a friend but i am not sure as he is not working with powershell.Thanks in advance!!
↧