none
use .net framework on remote computer from powershell RRS feed

  • Question

  • I'm getting an Access denied error, when trying to use some .net framework functionality on a remote computer, see below.  Should it be possible to perform such operation, or is it impossible due to security?  (it runs on local computer)

    [169.254.70.19]: PS Microsoft.PowerShell.Core\FileSystem::\\pm.it-total.local\Data\Users\Testdator\Documents> [System.Windows.Forms.SendKeys]::SendWait("a")
    Exception calling "SendWait" with "1" argument(s): "Access is denied"
    At line:1 char:42
    + [System.Windows.Forms.SendKeys]::SendWait <<<< ("a")
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    Tuesday, October 11, 2016 12:14 PM

Answers