+ Post New Thread
Results 1 to 10 of 10
MIS Systems Thread, simsperm.bat in Technical; Hey guys! Currently got dot ict install SIMS for us, one thing they mentioned was making users Power Users on ...
  1. #1

    Join Date
    Sep 2006
    Location
    Kettering, Northamptonshire
    Posts
    73
    Thank Post
    0
    Thanked 2 Times in 1 Post
    Rep Power
    16

    simsperm.bat

    Hey guys!

    Currently got dot ict install SIMS for us, one thing they mentioned was making users Power Users on workstations where SIMS is installed. They run a program that, runs a couple of bat files to set permissions on files/folders/registry on the local PC. This then allows Powers Users to modifiy these.

    A few of you have mentioned that all is needed is to run simsperm.bat now this is probably a really easy question but what do i need to modify in this file for it to successfully work for a specific group?

    Robert

  2. #2
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: simsperm.bat

    When running simsperm you are prompted for the usergroup to assign permissions to. Run "simsperm" and it'll show you the syntax

  3. #3
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: simsperm.bat

    Jim Mason once told me that SIMSPERM was intended to match the permissions that a power user would get.

  4. #4

    Join Date
    Sep 2006
    Location
    Kettering, Northamptonshire
    Posts
    73
    Thank Post
    0
    Thanked 2 Times in 1 Post
    Rep Power
    16

    Re: simsperm.bat

    Sorry I don't think i'm doing it right :? I ran the file and it just opened and closed, didn't as for anything. Here's a copy of the batch

    @echo off

    if "%1" == "" goto :usage

    SubInAcl /FILE "%WINDIR%\SIMS.INI" /GRANT=%1=F

    SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes /GRANT=%1
    SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID /GRANT=%1
    SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface /GRANT=%1
    SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib /GRANT=%1

    if "%ALLUSERSPROFILE%" == "" goto :skip_simsapps
    SubInAcl /FILE "%ALLUSERSPROFILE%\Start Menu\Programs\SIMS Applications\*.*" /GRANT=%1=F
    SubInAcl /FILE "%ALLUSERSPROFILE%\Start Menu\Programs\SIMS Applications" /GRANT=%1=F
    SubInAcl /SUBDIRECTORIES "%ALLUSERSPROFILE%\Start Menu\Programs\SIMS Applications\*.*" /GRANT=%1=F
    SubInAcl /SUBDIRECTORIES "%ALLUSERSPROFILE%\Start Menu\Programs\SIMS Applications" /GRANT=%1=F
    goto :after_profile_warning

    :skip_simsapps
    echo.
    echo ** WARNING: The Environment Variable for All Users Profiles is not set on this pc,
    echo ** cannot grant permissions for the SIMS Applications Program Folder.
    echo.


    :after_profile_warning


    if "%ProgramFiles%" == "" goto :skip_simsdir
    SubInAcl /FILE "%ProgramFiles%\SIMS\*.*" /GRANT=%1=F
    SubInAcl /FILE "%ProgramFiles%\SIMS" /GRANT=%1=F
    SubInAcl /SUBDIRECTORIES "%ProgramFiles%\SIMS\*.*" /GRANT=%1=F
    SubInAcl /SUBDIRECTORIES "%ProgramFiles%\SIMS" /GRANT=%1=F
    goto :after_simsdir_warning

    :skip_simsdir
    echo.
    echo ** WARNING: The Environment Variable for the Program Files Folder is not set on this pc,
    echo ** cannot grant permissions to the SIMS Application Folder.
    echo.


    :after_simsdir_warning
    goto :end

    :usage
    echo.
    echo "Usage simsperm [domain]\<username> or simsperm [domain]\<user group>"
    echo.
    :end

  5. #5
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: simsperm.bat

    It should pop up the last few lines listed in the batch file.. "Usage simsperm [domain]\<username> or simsperm [domain]\<user group>"

  6. #6

    Jawloms's Avatar
    Join Date
    Aug 2007
    Posts
    809
    Thank Post
    175
    Thanked 104 Times in 72 Posts
    Rep Power
    185

    Re: simsperm.bat

    I'd guess if you're saying it popped up and disappeared again you are double clicking on it? Go to a DOS box and run it from there, then you should see the usage bits.

    Hope that's some use.

    Stuart

  7. #7
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: simsperm.bat

    Quote Originally Posted by mark
    When running simsperm you are prompted for the usergroup to assign permissions to. Run "simsperm" and it'll show you the syntax
    Not quite correct. When you run SIMSPERM, it will just show the syntax and then exit. You need to specify the name of a user or group on the command line eg;

    SIMSPERM MYDOMAIN\SIMSUSERS

  8. #8
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: simsperm.bat

    ..I was just saying how to get the correct syntax to run simsperm, as prompted by the batch file.

  9. #9
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    34

    Re: simsperm.bat

    sorry Mark. I thought that some may take the term 'prompted' to mean that they will be asked to supply the group after they have launched the script.

  10. #10
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,958
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: simsperm.bat

    I see. Thanks for clarifying.

SHARE:
+ Post New Thread

Similar Threads

  1. WS Security or simsperm.bat
    By techyphil in forum MIS Systems
    Replies: 9
    Last Post: 16th March 2007, 12:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •