[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

setting nt rights on command line

Posted on 1997-08-04
1
Medium Priority
?
154 Views
Last Modified: 2013-12-28
is there any possibility to set nt4 file rights on the command line (e.g. in a batch file) and what is the name of this command?
my problem is that I have to set the same rights on 36 workstations and I wanted to do this with a batch job.
0
Comment
Question by:pman
1 Comment
 
LVL 2

Accepted Solution

by:
gantriis earned 120 total points
ID: 1780953
Hi pman.

In the usual Windows NT terminology rights apply to users and permissions apply to files and other resource objects.

So I guess you are asking for a command line utility that will help you set file permissions. CACLS.EXE included with Windows NT will do this for you. Type "cacls /?" for help on how to use it.

This utility does not take the server name as a parameter, so if you need to set permissions on files on another server than the command is being run from you need to make a network drive connection to the share where the file is before using cacls.

I hope this is the answer to your question.

Cheers
JG
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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.

873 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