Jump to content

Recommended Posts

Posted

Hi all,

 

This may have been asked before so sorry if it has.

 

I need to add users to the local power users group during login (script if poss) so the staff can update their installed copy of SIMS.net. I have been informed that this is the best method as it will be less problematic in the future.

 

How could i accomplish this with a straight forward script as i installed the update on the server and came in this morning (late as car broke down) and found no one could do the reg. I don't want to go around and update one at a time again like the last one.

 

Hope you can help.

 

Thanks.

Posted (edited)

The best way that i have found is to run Simsperm.bat on each station after install you can get it on the capita site, it give users write access to C:\IDAPI (I think it's called that), C:\Program Files\SIMS and a couple of reg keys. We've been running like that for 3 years with restricted users with no issues.

 

Even better way is to add those settings to a GPO as then you don't have to visit each station.

 

Take a look at the bottom of this link there is a html export of the settings.

 

http://www.edugeek.net/forums/educational-software/12268-sims-nova-t.html

 

 

Either of these ways means that you don't have users running as Power User or Admin neither of which i recommend.

Edited by cookie_monster
  • Thanks 1
Guest metalmonkey
Posted

If this is a domain, this can be done without the use of a script.

 

Create or modify a group policy for the Computers, which utilises the 'Restricted Groups' option. Here you can specify what users have local admin rights.

 

Be aware, using this will remove all manually set local membership to that group and therefore, if not done right, will cause you problems.

Posted
If this is a domain, this can be done without the use of a script.

 

Create or modify a group policy for the Computers, which utilises the 'Restricted Groups' option. Here you can specify what users have local admin rights.

 

Be aware, using this will remove all manually set local membership to that group and therefore, if not done right, will cause you problems.

 

Well I never knew that!! I've got a VBS script which does this for me, but this sounds a much more sensible option. What I would do thou is specify a domain group if it lets you, that way insted of editing a group policy everytime you want to add or a remore a user, you simply need to make the user a member of that group in your domain. I have two called Local Admins and Local Power Users on my domain which I use for those purposes, they are added as members of the repective local groups on all my workstations by my script.

 

Mike.

  • Thanks 1
Posted

The restricted groups method is tidiest because it does remove all the odds and ends - it means you have one place you control membership of "special" groups.

 

If you want to use a script it has to be machine startup - a logon script runs in the context of the user and they can't add themselves to power users (unless they're already an admin in which case they don't need to!)

  • Thanks 1
Posted
I had a quick look at the simsperm.bat but wasn't sure how /what it did. The last line was user/domain. Do I need to specify the actual user names or just the user group or am I missing it entirely.
Posted
Specify the user group e.g. domain users, i can't check at the moment but it'll be obviouse if it hasn't worked as domain users won't have write access to the SIMS program folders. You would need to run that on each station.
  • Thanks 1
Posted

Thanks for the replies. I will look into them tomorrow as I am at home now. :)

I think I will look at the simsperm bat first as I don't really want to add the users to the local admins groups as the least rights the users have the better as they sometimes let the pupils use the machines when the staff are logged in themselves.

Posted

Take a look at the GPO option as well it's pretty easy to setup and then it's done the settings are in the link i posted above.

 

I agree on not using the admins group i've found staff to be as bad as students for installing things if they can, power users also allows them to install a surprising amount of stuff, toolbars, browser helper objects all sorts.

 

Good luck.

Posted
I use the GPO option as well. took bit of tweaking to get set up but once it is there is no problems and much more secure that making the users power users
Posted

I have looked at the SIMSperm.bat and not quite sure what i need to edit to make the file add the users to the security settings on the files. I think you need to edit the [domain]\ section but cannot see how it adds the users as it seems to be just an echo command and no where else has information about the username \domain.

 

I have done a search on the sims support site for simsperm.bat and found nothing.

 

What do i need to do to this file in order to add users to the security on these files? For example if i have a domain called school and a group called staff, what do i need to add the make it work?

 

SIMSPerm.bat below:

 

@echo off

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

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

SubInAcl /SUBDIRECTORIES %ProgramFiles%\SIMS\*.* /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

goto :end

:usage

echo.

echo "Usage simsperm [domain]\"

:end

Posted
jinnantonnix is right the command should be SIMSPERM yourdomain\youruser (or group), i just put that into another .bat file in the same folder so it calls simsperm.bat and passes the parameter.
Posted
But if you're using Active Diretory, a neater solution is to look at the code and transfer its security changes to a group policy to be applied by Active Directory. This really is a much better way of doing it.

 

I'm not sure i follow the above. Where about do i use the settings found in the batch file and apply them to GPO's? I don't go too deep into Group Policy usually as it tends to be a pain in the a**e.

 

jinnantonnix is right the command should be SIMSPERM yourdomain\youruser (or group), i just put that into another .bat file in the same folder so it calls simsperm.bat and passes the parameter.

 

I have just added the bat file to the Staff GPO for login and found that nothing changed. Am i going about it all the wrong way? I think i am but somethings not clicking at the moment. It's been a while since i touched the GPO.

 

This is what i have done so far: I editied the Bat file to say mydomain\staff (as all users for sims are staff) and then applied the bat file to the Staff GPO assuming that it would set the permissions on the files and folders for the user when they log in.

 

Is this not right?

 

I also looked at the Restricted groups. I don't really get this though. How do you add the local power users group to the restricted group. Maybe an article. I read the linked one at windowssecurity but the guy was speaking some different language becuase i didn't really get what he was saying.

 

Sorry for the lengthy topic on this just not getting it :confused:

Posted

You could use the following script:

 

NET local group "power users" /add "Domain name\usergroup"

 

e.g. NET local group "power users" /add "TGG\Teacher"

 

Place this scripts in computer configuration - start up scripts in the GPO for OU computer group in question.

 

To remove the group in the future just change the witch /add to /delete

  • Thanks 1
Posted
OK, let's take a quick look at some of the SIMSPERM.BATfile...

 

take this line:

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

 

This means that the sims.ini file in your windows folder needs full permissions granted to your SIMS group.

(The %windir% is a system variable. To see all the system variables, open up a cmd window and type 'set' (without the quotes) and this will list all the variables)

 

So, in Active Directory, use the group policy management tool to create a new group policy. Call it something like SIMSSecurity.

In the policy, drill down to computer configuration/windows settings/Security settings/File system then right-click and choose 'add file'

Type in %windir%\sims.ini and set the security for the sims group to full rights.

 

 

Let's look at another line of the script:

SubInAcl /KEYREG HKEY_LOCAL_MACHINE\SOFTWARE\Classes /GRANT=%1

 

This is a similar sort of thing, but concerning a registry key. Again, browse the policy object to computer configuration/windows settings/Security settings/registry and from here you can add registry keys you want to give rights to your SIMS group.

 

 

So it took me a while to sort it out but i think i finally have SIMS updating itself when users log in. I followed the above guide and linked the Policy to the Computer OU and it worked. Yey.

 

At first i tried to link the SIMSSecurity Policy to the Users OU to see if that worked but it did not. I thought it may be how i was applying the permissions at first so played with them. In the end i left them all at the first setting "apply permissions to inheritable files/folders. I think thats what its called.

 

This still did not work. I tried to enter the Registry key manually but could not click OK. You can't enter what is exactly written. You have to navigate down through the machine/software/classes etc and then choose that.

 

It was only when i linked the SIMSSecurity to the Computer OU that it worked.

 

I Hope that helps someone else if they need it. In the end it proved to be pretty simple. Just hadn't used the setting before so not sure how it worked entirely although i may need to tidy up some of the permission inheritance settings.

 

A big thanks to all of the help given from you guys. THANK YOU :D

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...