Solved

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

Posted on 2010-08-17
2
1,308 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
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Storage devices are generally used to save the data or sometime transfer the data from one computer system to another system. However, sometimes user accidentally erased their important data from the Storage devices. Users have to know how data reco…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

760 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