Solved

Permissions for PStools

Posted on 2010-09-08
9
498 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
ID: 33630500
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
ID: 33630785
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
ID: 33630920
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
ID: 33630923
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
ID: 33630980
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
ID: 33631039
-u <username> -p <password>

0
 

Author Comment

by:joemckamey
ID: 33631072
THANKS!!
0
 
LVL 8

Expert Comment

by:ConUladh
ID: 33631119
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
ID: 33631198
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

18 Experts available now in Live!

Get 1:1 Help Now