Solved

Batch File: 7z.exe : NTFS and Audit Settings

Posted on 2010-08-17
2
1,388 Views
Last Modified: 2013-12-01
Hi there,

By adding features to the command line, would it be possible to archive NTFS security and Audit settings as well.

"C:\Program Files\7-Zip\7z.exe" -p1234 a -r -mx=9 "Z:\Documents.zip" "C:\Documents\*.*"

If not please advise.

Thanks,
Rene
0
Comment
Question by:ReneGe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
BasiKobrA earned 500 total points
ID: 33454790
As far as I know 7zip does not support this, while Info-Zip and tar claim to do so.
As it is now, I guess your unzipped files will have the permissions of the 'unzipper' account.

If you need this however, I guess you could make the unzip script change permissions on the unzipped files afterwards, but I do not have enough experience with NTFS security/audit settings to advise you further on this topic.

Good luck.
0
 
LVL 10

Author Comment

by:ReneGe
ID: 33456662
Well, thinking about it, the unziped file will inherit NTFS security and Auditing attributes of the folder receiving it.

Also, it will bet better that 7z does not keep NTFS security and Auditing attributes, because, what if they are changed along the way and I retreive a zipped file eith OLD attributes.... NOT GOOD...

Thanks BasiKobrA for contributing.

Cheers,
Rene
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Simple Linear Regression
Progress

635 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