Announcement

Collapse
No announcement yet.

Using cacls command in Batchfile

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using cacls command in Batchfile

    Hi
    I'm using a batch opened while using the HomeDir template. Changing the Rights for Domaon Admin works fine but not the one for the newly created user:
    echo y| cacls \\swisscards10\profile$\%2 /T /G %2:F
    echo y| cacls \\swisscards10\profile$\%2 /T /G "Domain admins":F

    Who know wy?

    Thanks for help

    raser

  • #2
    Re: Using cacls command in Batchfile

    Put a pause command at the end of your batch file, then go into Tools->Settings->User and check the box to Show Batch File Command Windows.

    Create a test user and a DOS window should come up when this runs and stop for the pause command. See if there are any errors being displayed.

    Comment


    • #3
      Re: Using cacls command in Batchfile

      Hi

      I did what you mentioned. Changing the Admin is OK, adding the new user gives me "Access is denied"!

      raser

      Comment


      • #4
        Re: Using cacls command in Batchfile

        As a test, reverse the lines in your batch file so that the Domain Admins are being set first.

        If this still fails, send a screen shot of the error message to [email protected]

        Comment

        Working...
        X