Results 1 to 11 of 11

Thread: Richiesta software modifica permessi cartelle

  1. #1
    Lieutenant Commander Kali's Avatar
    Join Date
    Nov 2003
    Location
    Verona
    Posts
    7.876

    Default Richiesta software modifica permessi cartelle

    Ciau,

    avrei la necessità di modificare i permessi di accesso ad alcune cartelle Windows e relative sottocartelle in massa,praticamente devono perdere gli attuali diritti e prendere tutte il permesso "everyone" file compresi.

    conoscete qlc software che lo fa in automatico?
    parliamo di centinaia di cartelle quindi manualmente sarebbe una pazzia

    grazie

  2. #2
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    In vbs

    Function SetPermissions()
    Dim strHomeFolder, strHome, strUser
    Dim intRunError, objShell, objFSO

    strHomeFolder = "C:\Test"

    Set objShell = CreateObject("Wscript.Shell")
    Set objFSO = CreateObject("Scripting.FileSystemObject")
    If objFSO.FolderExists(strHomeFolder) Then
    intRunError = objShell.Run("%COMSPEC% /c Echo Y| cacls " _
    & strHomeFolder & " /e /c /g everyone:F ", 2, True)

    If intRunError <> 0 Then
    Wscript.Echo "Error assigning permissions for user " _
    & strUser & " to home folder " & strHomeFolder
    End If
    End If
    End Function
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

  3. #3
    Lieutenant Commander Kali's Avatar
    Join Date
    Nov 2003
    Location
    Verona
    Posts
    7.876

    Default

    mm interessante grazie mille provo in questi giorni

    Prende solo la cartella specificata o tutte le sotto cartelle e file inclusi?

  4. #4
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    Onestamente non l'ho mai provato, ma a naso e' ricorsiva.
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

  5. #5
    Lieutenant Junior Grade Eltarion's Avatar
    Join Date
    Dec 2004
    Location
    Venaria
    Posts
    4.085

    Default

    a me non sembra ricorsiva

    comunque c'è questo programma che potrebbe fare al caso tuo: Access Administrator

    Il problema è che non è freeware, ma se ti serve solo "momentaneamente" potrai sicuramente pescarlo con la giusta esca
    Realm Of Trollers
    while ( ! ( succeed = try() ) );
    Spoiler

  6. #6
    Lieutenant Commander Rayvaughan's Avatar
    Join Date
    Mar 2005
    Location
    45.663989,8.783906
    Posts
    17.274

    Default

    Script in autoit, una funzione predefinita, una riga

    da notare che una cartella è considerato un file


    http://www.autoitscript.com/autoit3/...eSetAttrib.htm

  7. #7
    Lieutenant Commander Kali's Avatar
    Join Date
    Nov 2003
    Location
    Verona
    Posts
    7.876

    Default

    Grazie a tutti provo le 3 soluzioni

  8. #8
    Lieutenant Commander Rayvaughan's Avatar
    Join Date
    Mar 2005
    Location
    45.663989,8.783906
    Posts
    17.274

    Default

    hum avevo letto male, attributi al posto di permessi

    vabbè ci sarà sicuro una funzione simile

  9. #9
    Lieutenant
    Join Date
    Jan 2007
    Location
    Roma
    Posts
    4.723

    Default

    Non vorrei ricordare male, ma se dai everyone come accesso ad una cartella, le sottocartelle ed i file son accessibili in automatico...

    Edit : almeno in XP.

    Last Exile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Unknowns
    Nuida FollettoInLutto Bard Tiarna . . . . . . . . . . . . . . . . Deo The Undaunted Rune Priest
    Amiag Blademaster Silver Hand. . . . . . . . . . . . . . Viol The Sacrificed Shadow Warrior
    Viola Vampiir Grove Protector. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

    Nero Incubus. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DarkBane
    Naida Cabalist Phoenix Knight. . . . . . . . . . . . . . . . . . . . . . . . . . . . Viole No-Stealth Scout

  10. #10
    Lieutenant Commander Kali's Avatar
    Join Date
    Nov 2003
    Location
    Verona
    Posts
    7.876

    Default

    Quote Originally Posted by Amiag View Post
    Non vorrei ricordare male, ma se dai everyone come accesso ad una cartella, le sottocartelle ed i file son accessibili in automatico...

    Edit : almeno in XP.
    No,dipende da dove hanno ereditato i permessi.

    A me serve qualcosa che con i diritti di administrator me le cambi tutte ^^

  11. #11
    Chief Petty Officer
    Join Date
    Jan 2004
    Location
    Trento
    Posts
    1.127

    Default

    Quote Originally Posted by Eltarion View Post
    a me non sembra ricorsiva
    La funzione no, ma i parametri mi pare lo indichino
    Jeff
    "I'm not a stranger, I'm just a friend you haven't met yet"
    "il bello degli ingegneri è che hanno sempre una dote non sfruttata che un’altra parte di mondo avrebbe usato per guadagnarci i milioni. L’ingegnere no, fa calcoli. Fenomenale."
    "This program had an unexpected end. What I have to do? [R]etry, [I]gnor or [C]ancel?" "C[a]re a saw"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[Output: 78.89 Kb. compressed to 66.88 Kb. by saving 12.01 Kb. (15.23%)]