web-dev-qa-db-ja.com

フォルダのアクセス許可を変更する(大量)

サーバーでいくつかの問題が発生したため、いくつかのフォルダーに書き込み許可を与える必要がありますが、それを行うためのフォルダーがたくさんあります。

私のサーバーはWindowsServer 2008です。すべてのフォルダーを選択して右クリックし、プロパティを選択すると、アクセス許可を変更するための[セキュリティ]タブがありません。1つずつ実行できますが、多くの時間を失いました。

私のフォルダにこれらの権限をすばやく与える方法はありますか?

ありがとうございました!

3
Felipe Oriani

いくつかのオプションがありますが、グループを選択して右クリックしてもセキュリティは得られません。とにかく

Icaclsをチェックしてください。

icacls c:\windows\* /save AclFile /T
- Will save the ACLs for all files under c:\windows
  and its subdirectories to AclFile.

icacls c:\windows\ /restore AclFile
- Will restore the Acls for every file within
  AclFile that exists in c:\windows and its subdirectories.

icacls file /grant Administrator:(D,WDAC)
- Will grant the user Administrator Delete and Write DAC
  permissions to file.

icacls file /grant *S-1-1-0:(D,WDAC)
- Will grant the user defined by sid S-1-1-0 Delete and
  Write DAC permissions to file.
4
BugFinder

VBscript。それが昔ながらのWindowsのやり方です。

Server2008にはPowershellが付属しています。それを試してみてください。

0
surfasb

このタスクを自動化するために私のスクリプトを使用できます。

https://sourceforge.net/u/gavenkoa/utils/ci/tip/tree/win/uac/

両方のスクリプトをディレクトリに配置して、uac.jsを実行します。すべての階層に属するこのディレクトリスクリプトは、すべての所有権とグランドフルアクセスを復元します。

0
gavenkoa