7 Replies Latest reply on Jan 17, 2014 3:06 AM by ITSupportLaupheim

    Problem mit ChangeNTFSSecurity

    Apprentice
      Hallo,

      ich habe gerade das selbe Problem. Ich versuche einer Gruppe Rechte auf einen Pfad einzuräumen. Das Script läuft durch, bringt keine Fehler aber das Recht ist trotzdem nicht vorhanden:

      Script:

      Set('ReturnCode','0')
      If CheckInstallMode(imAppRepair)
      ChangeNTFSSecurity('C:\Programme\KIRP','',iSubDirs+csSetACL)
        LAUPHEIM\C__Programme_KIRP _ RWD DRWX

      EndProc/TS
      ChangeNTFSSecurity('C:\KIRU\KIRP','',iSubDirs+csSetACL)
        LAUPHEIM\C__KIRU_KIRP _ RWD DRWX

      EndProc/TS
      RemoveLink('KIRP','','Desktop\',cgAsCommon)/TS
      CreateLink('KIRP','\\FileServer\Freigaben$\Programme\KIRP\KIRP_W7.exe','\\FileServer\Freigaben$\Programme\KIRP\','\\FileServer\Freigaben$\Programme\KIRP\kirpgo.ico,0','Desktop\','',cgAsCommon)/TS
      Else
      If CheckInstallMode(imReinstall)
        RemoveDir('C:\Programme\KIRP')/S/TS
        RemoveDir('C:\KIRU\KIRP')/S/TS
        MakeDir('C:\Programme\KIRP')/TS
        MakeDir('C:\KIRU\KIRP')/TS
        ChangeNTFSSecurity('C:\Programme\KIRP','',iSubDirs+csAddACL)
         LAUPHEIM\C__Programme_KIRP _ RWD DRWX

        EndProc/TS
        ChangeNTFSSecurity('C:\KIRU\KIRP','',iSubDirs+csAddACL)
         LAUPHEIM\C__KIRU_KIRP _ RWD DRWX

        EndProc/TS
        RemoveLink('KIRP','','Desktop\',cgAsCommon)/TS
        CreateLink('KIRP','\\FileServer\Freigaben$\Programme\KIRP\KIRP_W7.exe','\\FileServer\Freigaben$\Programme\KIRP\','\\FileServer\Freigaben$\Programme\KIRP\kirpgo.ico,0','Desktop\','',cgAsCommon)/TS
      Else
        If CheckInstallMode(imUninstall)
         RemoveDir('C:\Programme\KIRP')/S/TS
         RemoveDir('C:\KIRU\KIRP')/S/TS
         RemoveLink('KIRP','','Desktop\',cgAsCommon)/TS
        Else
         MakeDir('C:\Programme\KIRP')/TS
         MakeDir('C:\KIRU\KIRP')/TS
         ChangeNTFSSecurity('C:\Programme\KIRP','',iSubDirs+csAddACL)
          LAUPHEIM\C__Programme_KIRP _ RWD DRWX

         EndProc/TS
         ChangeNTFSSecurity('C:\KIRU\','',iSubDirs+csAddACL)
          LAUPHEIM\C__KIRU_KIRP _ RWD DRWX

         EndProc/TS
         CreateLink('KIRP','\\FileServer\Freigaben$\Programme\KIRP\KIRP_W7.exe','\\FileServer\Freigaben$\Programme\KIRP\','\\FileServer\Freigaben$\Programme\KIRP\kirpgo.ico,0','Desktop\','',cgAsCommon)/TS
      If %ReturnCode%='0'
      ExitProc(Done)
      Else
      If %ReturnCode%='3010'
        ClearRestartFlags
        ExitProc(Done)
      Else
        ExitProc(Failed)
      : $BeginUninstallScript
      RemoveDir('C:\Programme\KIRP')/S/TS
      RemoveDir('C:\KIRU\KIRP')/S/TS
      RemoveLink('KIRP','','Desktop\',cgAsCommon)/TS


      Ni-Log der Installation:

      10:08:26.021 2        ---->Starting installation of "KIRP"

      10:08:26.021 2        -> Set('ReturnCode','0')
      10:08:26.021 2        Condition FALSE  -> skipping IF part
      10:08:26.021 2        Skipping command : ChangeNTFSSecurity
      10:08:26.021 2        Skipping command : ChangeNTFSSecurity
      10:08:26.021 2        Skipping command : RemoveLink
      10:08:26.021 2        Skipping command : CreateLink
      10:08:26.021 2        else - Entering ELSE part
      10:08:26.021 2        Condition FALSE  -> skipping IF part
      10:08:26.021 2        Skipping command : RemoveDir
      10:08:26.021 2        Skipping command : RemoveDir
      10:08:26.021 2        Skipping command : MakeDir
      10:08:26.021 2        Skipping command : MakeDir
      10:08:26.021 2        Skipping command : ChangeNTFSSecurity
      10:08:26.021 2        Skipping command : ChangeNTFSSecurity
      10:08:26.021 2        Skipping command : RemoveLink
      10:08:26.021 2        Skipping command : CreateLink
      10:08:26.021 2        else - Entering ELSE part
      10:08:26.021 2        Condition FALSE  -> skipping IF part
      10:08:26.021 2        Skipping command : RemoveDir
      10:08:26.021 2        Skipping command : RemoveDir
      10:08:26.021 2        Skipping command : RemoveLink
      10:08:26.021 2        else - Entering ELSE part

      10:08:26.193 2        ->    MakeDir('C:\Programme\KIRP')/TS

      10:08:26.255 2        ->    MakeDir('C:\KIRU\KIRP')/TS

      10:08:26.255 2        ->    ChangeNTFSSecurity('C:\Programme\KIRP','',iSubDirs+csAddACL) ... /TS

      10:08:26.255 2        ->    ChangeNTFSSecurity('C:\KIRU\','',iSubDirs+csAddACL) ... /TS
      10:08:26.255 2         xniNT: No Files matching C:\KIRU\gui\*.*

      10:08:26.271 2        ->    CreateLink('KIRP','\\FileServer\Freigaben$\Programme\KIRP\KIRP_W7.exe','\\FileServer\Freigaben$\Programme\KIRP\','\\FileServer\Freigaben$\Programme\KIRP\kirpgo.ico,0','Desktop\','',cgAsCommon)/TS
      10:08:26.271 2         Linkfile : C:\Users\Public\Desktop\KIRP.lnk
      10:08:26.645 2        Condition TRUE  -> entering IF part

      10:08:26.645 2        ->  ExitProc(Done)
      10:08:26.645 2        xniFPS: '{B22A4D3F-643F-43DE-9E9E-946786E1A1EB}' is installed

      10:08:26.645 2        ---->Installation of KIRP complete.

      10:08:26.645 2        ----> Logging installation...
      10:08:26.645 2        Logging wksta-part of split-installation
      10:08:26.676 2     SwmsTpExtenderScript: Installation or Uninstallation of eScriptPackage ESCRIPTPACKAGE.1021 ({B22A4D3F-643F-43DE-9E9E-946786E1A1EB}) successfull
      10:08:26.676 2    SWMSRT: Installation or Uninstallation of Package ESCRIPTPACKAGE.1021 (KIRP) via PolicyInstance POLICYINSTANCE.342 completed!
      10:08:26.692 2    Run of Job JOB:POLICYINSTANCE.342 was successfull
      10:08:26.692 2   Cleaning up Run of Job JOB:POLICYINSTANCE.342...
      10:08:26.692 2    SWMSRT: Handling Reboot
      10:08:26.692 2      SWMSRT: SoftwareControlsReboot:
      10:08:26.692 2    Cleaned up Run of Job JOB:POLICYINSTANCE.342 successfully