Advertisement

05.12.2008 at 06:39PM PDT, ID: 23396469
[x]
Attachment Details

RUNAS ERROR: 87: The parameter is incorrect.

Asked by docfxit in System Utilities, Windows XP Operating System, Windows Batch Scripting

Tags: , ,

I'm trying to run A bat file with:
%comspec% /K runas /user:scans "ScanFiles.exe"

When I run the bat file within the current user (ATU4)
it runs fine. When I run it from a different
computer with a Remote Procedure Call I get an error SAYING:
Enter the password for scans: (I input the correct password)
Attempting to start ScanFiles.exe as user "ATUUSER4\scans" ...
RUNAS ERROR: Unable to run - ScanFiles.exe
87: The parameter is incorrect.

When I look at Security for Scanfiles.exe it shows for ATUUSER4\Scans that it has Read
and Execute rights.


I have tried changing the user to administrator with the administrator password and it
produced the same error.

Then I signed on as administrator and ran with /user:administrator it produced the same error.
Process Explorer shows CMD.exe running with the user NT Authority\System.
I expected it to be running with the user ATUUSER4\Administrator.

I don't see what would stop runas from doing what it is intended to do.

I'm running this in XP Pro sp2 NTFS "Use Simple File Sharing" is not checked.

Thank you,

DocfxitStart Free Trial
[+][-]05.12.2008 at 08:26PM PDT, ID: 21552072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:49AM PDT, ID: 21556250

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:16PM PDT, ID: 21560996

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.13.2008 at 08:20PM PDT, ID: 21561010

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.21.2008 at 12:09PM PDT, ID: 21618048

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: System Utilities, Windows XP Operating System, Windows Batch Scripting
Tags: Microsoft, OS, XP Pro
Sign Up Now!
Solution Provided By: docfxit
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628