RE: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers
can you add, roughly WHY you want to do this? FRS is enabled on ALL DCs in an AD forest, and that's the way it should be as SYSVOL replication uses FRS.FRS is one of those special services, that you don't want to screw around with (such as turning off, make a lot of file-system changes, turning back on), unless you really know what you're doing or you really want to have more trouble. /Guido From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Durairaj K. AvasiSent: Sonntag, 9. Mai 2004 23:59To: [EMAIL PROTECTED]Cc: [EMAIL PROTECTED]Subject: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers AD Gurus:: I hope all had very good weekend.. Here is my requirement where I stuck and I need your hand on this In short: This is what I want: Script 1: identify the servers (Domain Controllers) using File Replication service (FRS). Script 2: Disable these found in Script 1. (When I say disable, I just meant to say FRS service on these servers) Script 3: Enable these found in Script 1. (When I say enable, I just meant to say FRS service on these servers) The following is the detail of what I found = How to identify the servers (Domain Controllers) using File Replication service (FRS)? I found the repadmin /replsum in Active Directory cookbook. However I need the same output in a txt file just servernames (Note not the status) and how to disable and enable the FRS service on the above identified servers? I thought of using cscript service.vbs /X /N ntfrs /S __SERVERNAME /U avasi /W password /O c:\temp.txt I dont know how this is going to workout. Thanks in advance. Durairaj K. Avasi
RE: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers
Honestly I am not sure why my sys. Admin needs it I received a development request with the following spec. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grillenmeier, Guido Sent: Monday, May 10, 2004 2:41 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers can you add, roughly WHY you want to do this? FRS is enabled on ALL DCs in an AD forest, and that's the way it should be as SYSVOL replication uses FRS.FRS is one of those special services, that you don't want to screw around with (such as turning off, make a lot of file-system changes, turning back on), unless you really know what you're doing or you really want to have more trouble. /Guido From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Durairaj K. Avasi Sent: Sonntag, 9. Mai 2004 23:59 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers AD Gurus:: I hope all had very good weekend.. Here is my requirement where I stuck and I need your hand on this In short: This is what I want: Script 1: identify the servers (Domain Controllers) using File Replication service (FRS). Script 2: Disable these found in Script 1. (When I say disable, I just meant to say FRS service on these servers) Script 3: Enable these found in Script 1. (When I say enable, I just meant to say FRS service on these servers) The following is the detail of what I found = How to identify the servers (Domain Controllers) using File Replication service (FRS)? I found the repadmin /replsum in Active Directory cookbook. However I need the same output in a txt file just servernames (Note not the status) and how to disable and enable the FRS service on the above identified servers? I thought of using cscript service.vbs /X /N ntfrs /S __SERVERNAME /U avasi /W password /O c:\temp.txt I dont know how this is going to workout. Thanks in advance. Durairaj K. Avasi
RE: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers
Repadmin will identify all DCs that host a particular naming context (or in forest, or site, or.etc.). That said, there are a couple of caveats here: 1) a non-DC could be using FRS (say for an FRS replica set behind DFS) 2) a DC could host more than one replica set (SYSVOL, of course, and one (or more) for DFS) I would suggest identifying machines (not I said machines and not DCs.could be non-DCs) by looking in cn=file replication service,cn=system within a particular domain. That will then have a container for each replica set and you can identify machines that participate in that replica set from looking in that container. If, however, you are only interested in SYSVOL, then it is safe to assume that all DCs in a particular domain replicate SYSVOL for that domain. In terms of turning the service on and off remotely, I would think WMI is the best way to go, but Im not a scripting guru so maybe others know a better way. I think there are scripts up in KB that help with this in the context of performing a global D2 of all DCs except one you D4. I would look there.I think some of it is canned for you already. ~Eric From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Durairaj K. Avasi Sent: Sunday, May 09, 2004 4:59 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [ActiveDir] how to identify the servers (Domain Controllers) using File Replication service - - - And how to enable/disable FRS service on these servers AD Gurus:: I hope all had very good weekend.. Here is my requirement where I stuck and I need your hand on this In short: This is what I want: Script 1: identify the servers (Domain Controllers) using File Replication service (FRS). Script 2: Disable these found in Script 1. (When I say disable, I just meant to say FRS service on these servers) Script 3: Enable these found in Script 1. (When I say enable, I just meant to say FRS service on these servers) The following is the detail of what I found = How to identify the servers (Domain Controllers) using File Replication service (FRS)? I found the repadmin /replsum in Active Directory cookbook. However I need the same output in a txt file just servernames (Note not the status) and how to disable and enable the FRS service on the above identified servers? I thought of using cscript service.vbs /X /N ntfrs /S __SERVERNAME /U avasi /W password /O c:\temp.txt I dont know how this is going to workout. Thanks in advance. Durairaj K. Avasi