Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

psexec gets "access denied" from remote computer

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Feb 6, 2002
1,851
IL
HI,
I have a psexec activated from a Perl script and it gets the above error for some remote stations.
The commans id :
psexec.exe \\\\$stationB -n 25 -s -u xxxx -p yyyy reg query HKEY_LOCAL_MACHINE\\SOFTWARE

If I run the same command from cmd - it runs fine !
I have tried opening the cmd from which I activated the Perl script as administartor - did not help.
There is never a problem when running the same staff from XP.
Will appreciate any advice.
thanks

Long live king Moshiach !
 
Yes,look at the psexec command - username and password are used ("-u xxxx -p yyyy" --naturally I have to change the original ones..)
thanks

Long live king Moshiach !
 
Sorry, let me clarify. I meant to ask if you were using the domain username.
As in "-u some_domain\xxxx" .

Otherwise, user xxxx would have whatever local machine access rather than domain access.



-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top