Solved

Permissions for PStools

Posted on 2010-09-08
9
497 Views
Last Modified: 2013-12-04
I am using the program PStools to start a program remotely inside my network.  However, I keep getting permission issues.  The script I am running to start the program connects fine then windows tells me Access Denied.  I am sure I need to give some kind of permission to my computer.  I can send the command from my domain server and it works.  Exact same command from a different PC doesn't.  I can't always use the server to send the command so I would like to figure out the permission issue.  Any help would be appreciated!
0
Comment
Question by:joemckamey
  • 5
  • 4
9 Comments
 
LVL 8

Expert Comment

by:ConUladh
Comment Utility
The user you're running the script as probably needs to be an administrator on the target machine, is the user you're logging onto the DC as different from the user you log on as when you try it from another computer?
0
 

Author Comment

by:joemckamey
Comment Utility
It is different and I gave that user access as an administrator.  Do I have to reboot to make that take affect?
0
 
LVL 8

Accepted Solution

by:
ConUladh earned 500 total points
Comment Utility
Assuming you're using psexec you can include username and password in the command. So create a test local account on the target machine and add it to the local administrators group. Then when launching the command include the username and password.

Apologies if you're already doing this, I'm assuming you are curently relying on pasthrough authentication.
0
 
LVL 8

Expert Comment

by:ConUladh
Comment Utility
and no you don't need to reboot
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:joemckamey
Comment Utility
I don't do much command line work, so forgive me if this is elementary.  What is the syntax to include the username and password?
0
 
LVL 8

Expert Comment

by:ConUladh
Comment Utility
-u <username> -p <password>

0
 

Author Comment

by:joemckamey
Comment Utility
THANKS!!
0
 
LVL 8

Expert Comment

by:ConUladh
Comment Utility
No prob, technically this is a workaround as i would think passthrough authentication should work but hey if it works and you're happy...:)
0
 

Author Comment

by:joemckamey
Comment Utility
Actually the passthrough did work.  I wonder if it just took a few moments for the permissions to refresh.  I tried it before lunch and it denied but after lunch it worked.
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
The term "Bad USB" is a buzz word that is usually used when talking about attacks on computer systems that involve USB devices. In this article, I will show what possibilities modern windows systems (win8.x and win10) offer to fight these attacks wi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now