Get-Volume does not return any volumes

Hello, I am stumped with an issue that I’m having. I am trying to automate a common task which is set up as a scheduled task that runs under a specified domain user account. The part of the script’s job is to connect to a domain controller and set up profile users for new hires. I have set up a custom session configuration file which is used to allow PowerShell remoting to the domain controller.

The problem is that once the account is connected, using the get-volume command does not return any results. I have already given the account permissions in WMI to the ROOT:/Microsoft/Windows/Storage namespace. No errors are being reported.

I’m fairly certain this is a permission issue, but I don’t know what rights I’m needing to give to allow the user to retrieve the volumes.

Below is a transcript of the problem from an interactive session. Notice that in this example I am simply connecting as the user account and interactively attempting to retrieve the volumes.


Windows PowerShell transcript start
Start time: 20190614084639
Username: LEGACY01\svcacctemployeesetup
RunAs User: LEGACY01\svcacctemployeesetup
Configuration Name:
Machine: WMJFKNHE (Microsoft Windows NT 10.0.17763.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoExit -NoProfile
Process ID: 12432
PSVersion: 5.1.17763.503
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.17763.503
BuildVersion: 10.0.17763.503
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1


Transcript started, output file is C:\Users\svcacctemployeesetup\Documents\PowerShell_transcript.WMJFKNHE.PYb5SQTj.20190614084639.txt
PS C:\WINDOWS\System32\WindowsPowerShell\v1.0> Enter-PSSession SPDC1002 -config employee_setup
[SPDC1002]: PS>get-volume
[SPDC1002]: PS>exit
PS C:\WINDOWS\System32\WindowsPowerShell\v1.0> Stop-Transcript


Windows PowerShell transcript end
End time: 20190614084706


Can you share the configuration detail(whatever info possible)