Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
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 …

751 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