[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 10907
  • Last Modified:

In need an example for a REGINI script i am trying to write

I am trying to replace permissions on a registry key on  a windows 64bit box
the key is HKLM\SOFTWARE and the permmsions i want is

ADMINSTRATORS=FULL
SYSTEMS=FULL
OWNERS=FULL
USERS=READ

any one have this exact syntax ?, if i can get this i can use it to write the rest of the script

0
NAMEWITHELD12
Asked:
NAMEWITHELD12
  • 8
  • 2
1 Solution
 
rlandquistCommented:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23054260.html

http://support.microsoft.com/?kbid=237607

See the above links for information.  The first one talks about creating the script, the microsoft link specifies the permission settings.

0
 
NAMEWITHELD12Author Commented:
Ok here is the issue and it is very similar to an issue I had with SUBINACL earlier, I run the command and no errors it but it does not change anything at all

I created a txt file with this in it

\Registry\Machine\Software [1 5 8]
saved it as a.txt


and then I run this command

“C:\Program Files (x86)\Windows Resource Kits\Tools” REGINI a.txt

it runs with no error whatsever and then it does not change the permissions on  the reg key I can change them with the GUI

I had this issue with SUBINCL also on a 32 bit box , I installed the latest version of SUBINACL and it worked , I installed the latest version of REGINI and am still having issues

THANKS!!!!
0
 
rlandquistCommented:
Your Regini needs to be included in the quotes.

Try this from the command prompt:

“C:\Program Files (x86)\Windows Resource Kits\Tools\REGINI.exe"  Registry\Machine\Software [1 5 8]

Does that work?
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
NAMEWITHELD12Author Commented:

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\Administrator>"C:\Program Files (x86)\Windows Resource
 Kits\Tools\REGINI.exe"  Registry\Machine\Software [1 5 8]
The filename, directory name, or volume label syntax is incorrect.

C:\Documents and Settings\Administrator>cd\

C:\>"C:\Program Files (x86)\Windows Resource Kits\Tools\REGINI.exe"  Registry\Ma
chine\Software [1 5 8]
The filename, directory name, or volume label syntax is incorrect.

C:\>
0
 
NAMEWITHELD12Author Commented:
what is intersting is that if i modify my a.txt file it will give errors , that is if i put junk in it that it cant understand like
hhhh\Registry\Machine\Software [1 5 8]



C:\>C:\"Program Files (x86)\Windows Resource Kits\Tools\REGINI" c:\a.txt
REGINI: CreateKey (hhhh\Registry\Machine\Software) relative to handle (000000000
) failed - 161
REGINI: Failed to load from file 'c:\a.txt' (161)



C:\>
0
 
NAMEWITHELD12Author Commented:
now if i change that file back to

\Registry\Machine\Software [1 5 8]  

and run


\

C:\>C:\"Program Files (x86)\Windows Resource Kits\Tools\"REGINI c:\a.txt

C:\>

I get no error
0
 
NAMEWITHELD12Author Commented:
but it does not change the registry permissions
0
 
NAMEWITHELD12Author Commented:
I still cant get this to work , i am going to have to mod registry permissons on like 100 servers this weekend HELP!!!
0
 
NAMEWITHELD12Author Commented:
i am using setacl and will post this soon
0
 
NAMEWITHELD12Author Commented:
the issue mostly is in the fact the the permissions are inhertied from the parent , If you ever are trying to do this then use SETACL and make sure that you use the copy and not delete when you disaccocate the inherdance from the parent , I got in the situation that a key in the registry for 98% of the environment had the permissions specifically on this key , BUT some of the enviroment did not have the permssions specifcally defined and it removed all rights from this key and broke stuff

SO:
1. use setacl and make sure you COPY the rights and not only have rights that are on the specific key

2. make sure you run this in the front of the script to stop inherdance and copy the permissions


I will have the exact sytntax soon
0

Featured Post

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

  • 8
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now