0

I have some workstations (workstation1, workstation2, workstation3) connected to a domain (MyDomain).
I would like to create a script that changes to each workstation the key:

HKLM \ SYSTEM \ CurrentControlSet \ Control \ terminalserver \ AllowRemoteRPC

and set it from 0 to 1. Can you give me any suggestions?
Thanks.

Francesco Irrera
  • 205
  • 1
  • 4
  • 10
  • 3
    Sounds familiar: http://serverfault.com/questions/681996/how-can-we-insert-multiple-keys-into-a-registry-folder-without-using-3rd-party-t – jscott Oct 22 '15 at 10:04

2 Answers2

5

Group Policy Preferences targeted at the computer would be the most "user friendly" way to make this change.

Assuming that all these computers are in the same Organizational Unit (OU) in your Directory, created a Group Policy Object (GPO) at that OU. In that GPO, under the "Computer Settings", "Preferences", "Windows Settings", and "Registry", create an entry that targets the key and value you'd like to set.

Microsoft has step-by-step directions here but, honestly, the interface is intuitive enough that you should be able to figure it out. If you're concerned about testing it create a "bogus" entry first on an OU with a single computer in it and observe the results using REGEDIT.

Evan Anderson
  • 141,881
  • 20
  • 196
  • 331
3

Use regedit and a .reg file to do this and deploy it using AD.

user9517
  • 115,471
  • 20
  • 215
  • 297
  • I finally gave in to Group Policy Preferences. As long as all the machines being managed are Windows XP (with the GPP update installed) or newer it's probably not worth the pain of deploying a registry merge and will be easier on the next admin who may not understand be as savvy. – Evan Anderson Oct 22 '15 at 12:12
  • I would too if I ever did any windows admin stuff but the OP wanted a script ... How're you anyway ? – user9517 Oct 22 '15 at 13:09
  • @Iain - +1 for my reading comprehension, eh? >smile< Oh, you know-- busy as heck-- the glamorous life of an independent IT contractor combined with the life of having a 2 and 1/2 y/o child at home! It's very relaxing... heh heh... – Evan Anderson Oct 22 '15 at 13:41
  • Drop into slack some time and say Hi. – user9517 Oct 25 '15 at 17:54