Solved

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

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
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 …

912 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

22 Experts available now in Live!

Get 1:1 Help Now