I’ve been scouring the internet and haven’t found a solution.
Generally I can get around most things. But the DFSR commandlets don’t take credential parameters.
So trying to run powershell as the system account has me stuck.
as such none of the DFSR commandlets work. Import-module DFSR doesn’t work either.
I can’t seem to use anything outside of psexec to run the powershell commands as the appropriate user but i’d rather not.
Module dump and errors below.
C:\Program Files\WindowsPowerShell\Modules;WindowsPowerShell\Modules;C:\Program Files (x86)\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
import-module : The specified module ‘C:\windows\system32\windowspowershell\v1.0\Modules\DFSR\DFSR.PSD1’ was not
loaded because no valid module file was found in any module directory.