robert.mabbutt Posted August 15, 2007 Posted August 15, 2007 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
MkII Posted August 15, 2007 Posted August 15, 2007 When running simsperm you are prompted for the usergroup to assign permissions to. Run "simsperm" and it'll show you the syntax
ajbritton Posted August 15, 2007 Posted August 15, 2007 Jim Mason once told me that SIMSPERM was intended to match the permissions that a power user would get.
robert.mabbutt Posted August 15, 2007 Author Posted August 15, 2007 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]\ or simsperm [domain]\" echo. :end
MkII Posted August 15, 2007 Posted August 15, 2007 It should pop up the last few lines listed in the batch file.. "Usage simsperm [domain]\ or simsperm [domain]\"
Jawloms Posted August 15, 2007 Posted August 15, 2007 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
ajbritton Posted August 15, 2007 Posted August 15, 2007 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
MkII Posted August 15, 2007 Posted August 15, 2007 ..I was just saying how to get the correct syntax to run simsperm, as prompted by the batch file.
ajbritton Posted August 15, 2007 Posted August 15, 2007 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now