Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : Command Fails when using PSEXEC

$
0
0
Author: sujith
Subject: Command Fails when using PSEXEC
Posted: 11 May 2017 at 6:33pm

Hi,

I have an AppCMD Command like below and its Importing AppPools

C:\Windows\System32\inetsrv\appcmd.exe list apppool /config /xml > "E:\BiztalkSchemas\apppool.xml"

it works Perfectly

when I want to run it remotely or on my Machine using PSExec like below, It always gives me an Error.

"E:\PSTools\PsExec.exe" -s \\SUJAY-PC  -accepteula C:\Windows\System32\inetsrv\appcmd.exe add apppool /in < "\\SUJAY-PC\E$\BiztalkSchemas\apppool.xml"

Th Error is Like below

Failed to process input: Invalid XML input - please make sure that your XML is well-formed and follows the required format (HRESULT=c00cee3a).
C:\Windows\System32\inetsrv\appcmd.exe exited on PC with error code -1072894406.

It is the same xml when i run through AppCMD works but when i use with PSEXEC it fails.

Can you Please help me with this?

Thanks,
Sujith.

Viewing all articles
Browse latest Browse all 10386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>