1
Vote

The system cannot find the file specified

description

The module was working perfectly. I logged off the rest of the day and started working on my script again.

I received the following error:
Exception calling "Logoff" with "1" argument(s): "The system cannot find the file specified"
At C:\Users\jennifer.blum\Documents\WindowsPowerShell\Modules\PSTerminalServices\PSTerminalServices.psm1:631 char:21
  • $session.Logoff <<<< ($Synchronous)
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : DotNetMethodException
I tried repairing the file, restarting my machine, but I still get this error. I have confirmed the file path is good.
I have confirmed the import module was successful.

Any ideas that can help me get this script running again?

comments

jenniferblum wrote Mar 21 at 7:54 PM

I have removed the module using the msi file, then reloaded it to my machine, I still receive this same error.

Exception calling "Logoff" with "1" argument(s): "The system cannot find the file specified"
At C:\Users\jennifer.blum\Documents\WindowsPowerShell\Modules\PSTerminalServices\PSTerminalServices.psm1:631 char:21
  • $session.Logoff <<<< ($Synchronous)
    • CategoryInfo : NotSpecified: (:) [], ParentContainsErrorRecordException
    • FullyQualifiedErrorId : DotNetMethodException
Can anyone help me out? The Psm1 file is in the correct location.