Jump to content

Recommended Posts

Posted

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

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

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

Posted

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

Posted
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...