PDA

View Full Version : Please help with this project - Basic for someone im sure!



vtivti
02-12-2009, 04:20 AM
HI guys, Im soooooo stuck. I wish I could write loops properly!

In a HKusers\{SID}\Software\Microsoft\Terminal Server Client\Usernamehint\
A load of work keys

pc1 local\user1
pc2 local\user2
pc3 local\user3
pc4 local\user4
pc5 local\user5


I need to loop through all of these and change the domain local to a new domain name.

In the project I will just put in the machine name, it will then parse the registry to teh correct key, adn then change all teh affected keys, but I just cant get it to loop!

Help!

Thanks

ShadowUK
02-12-2009, 11:04 AM
If I understand correctly, You want to use a for loop?


Limit = 100;

for I = 1, Limit do
Registry.ActionGoesHere("Something"..I);
end