Repadmin command parameters

Hello,
I am trying to enable strict replication consistency on a domain controller.
https://deangrant.wordpress.com/2014/02/17/enable-strict-replication-consistency-on-domain-controllers-within-active-directory-domain/
How do get the value of %ServerGUID%, and %DirectoryPartition%
the name of my domain controller is DC1
I am trying to run the following command
repadmin /removelingeringobjects %ServerName% %ServerGUID% %DirectoryPartition% /advisory_mode
Thanks

For the GUID, here you go: https://support.microsoft.com/en-us/kb/224544
For the Directory Partition, you can see this definition:
"The distinguished name of the domain directory partition that might have lingering objects. For example, DC=RegionalDomainName,DC=ForestRootDomainName,DC=com.
Also run the command against the configuration directory partition (CN=configuration,DC=ForestRootDomainName,DC=com),
the schema directory partition (CN=schema,CN=configuration,DC=ForestRootDomainName),
and any application directory partitions that are hosted on the domain controller you are checking for lingering objects."
Source: https://technet.microsoft.com/en-us/library/cc785298%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile

Similar Messages

  • Command Parameters Not Prompted

    I've been trying for some time to resolve this issue but can't quite seem to narrow down what is causing the problem.  The issue is as follows: Say I have a report with both command parameters and dynamic parameters.  When running the report in CR 11 I am usually prompted twice, once for the command parameters and a second time for the dynamic parameters, in two separate windows (empty fields for the command parameters usually show up a second time on the dynamic prompt window).  When I run the report in the viewer I am never prompted for the command parameters.  Only the dynamic parameter prompt window appears with no parameters values, most likely because they depend on the command parameters.  The strange thing is when I have only a command parameter I am prompted for it, the issue arises when both command and dynamic parameters are implemented.  I am running CR for Eclipse 2.0 (fairly sure since I have the more recent excel export options).  Any help with this issue would be very much appreciated.

    I think this may have something to do with a conflict between the date command parameters I use in my report and my dynamic parameters.  When I run the report in CR 2011 I am prompted for the date parameters twice, once in the initial command parameters window and again in the field parameters window containing the dynamic parameters.  Has anyone else seen this double prompt issue and could it be the root of my viewer problem?

  • How to pass relative dates (Yesterday, Last week) via Command Parameters in a linked subreport

    I have been struggling with this one and would sure appreciate your help
    I have a report that runs fine but takes to long when running, to optimise it have setup it up as a subreport , created a main report which I linked to it via a relative field ({?ServiceID}) field, this has reduced the report time but I would like to go even further by user selecting date e.g startdate, enddate or relative field eg ‘yesterday’, ‘Last Week’
    I can do the selectable start and end date fine but I’m failing to make use of the ‘Yesterday’,’ last week’ within the command parameters, below is an example of the code I have on the reports select expert but I want a semiliar filtering on the command parameter to avoid the filtering taking place on crystal but straight from the DB.
    IF  {?Relative Date}= "Yesterday" THEN currentdate-1
    ELSE IF {?Relative Date}="Last Week" THEN LastFullWeek

    Good Day Guys,
    Apologies for the late response, I have been looking and trying the different suggestion you pointed out, unfortunately without any success
    Stored Proc
    Nrupal, I tried setting one up but I’m getting a error I cannot seem to get past, below is my condition, any help would be appreciated
    where cd1.Service_ID = @Service_ID
    and cd1.CallStartDt in (
      Case @RelativeDate
      When 'Today' then CONVERT (date, getdate())
      When 'Yesterday' Then DATEADD(DAY,-1,CONVERT (date, getdate()))
      When ‘Last Week’ then between @LastWeekStart and @LastWeekEnd       //sytntax before between, also tried using ‘IN’, same result
      When ‘Last Month’ then between @LastMonthStart and @LastMonthEnd 
    else between @CallStart and @CallEnd
    END )
    End
    Crystal command parameter code
    where cd1.Service_ID in ({?Service_ID}) and
    convert(datetime,cd1.CallStartdt) in (
    Case {?RelativeDate}
    When 'Yesterday' Then GetDate()-1
    else  {?CallStart}
    END)
    Abhilash,
    I have tried both your proposed command parameters but still fail
    I’m getting an invalid column name ‘Yesterday’ error , I’m not sure if Crytsal takes this type of command formatting using the command parameters, would appreciate your help as I would like to stay clear of the SP, unless it’s the only altanative
    Dell
    I will start working in your re
    Thanks Again

  • Oracle OLE DB and command Parameters in VB6

    Hi,
    here's my problem :
    When i a VB6 command object ( ado ) this works fine with Oracle client 8i/9i, but with 10g it seems to truncate all my string parameters
    Here is my vb code :
    Public Function PRC_APPLICATIONSCENARIO _
    ByRef p_vConnection As Variant, _
    ByVal p_sZlCle As String, _
    ByVal p_dDateDeb As Date, _
    ByVal p_iDiffdate As Integer, _
    ByRef p_sCodeErr As String, _
    ByRef p_sErrMsg As String, _
    ByRef p_lScenar As Long, _
    ByRef p_lSoc As Long _
    ) As Long
    On Error GoTo Err
    Dim cmd As ADODB.Command
    Dim param As ADODB.Parameter
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = p_vConnection
    Set param = cmd.CreateParameter("iZlCle", adInteger, adParamInput, , CLng(p_sZlCle))
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("dDateDeb", adBSTR, adParamInput, , Format(p_dDateDeb, "dd/mm/yyyy"))
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("iDiffDate", adInteger, adParamInput, , CLng(p_iDiffdate))
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("nCodeErr", adInteger, adParamOutput)
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("vErrMsg", adBSTR, adParamOutput, 200, String(200, " "))
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("lIdScenar", adInteger, adParamInput, , CLng(p_lScenar))
    cmd.Parameters.Append param
    Set param = cmd.CreateParameter("lIdSoc", adInteger, adParamInput, , CLng(p_lSoc))
    cmd.Parameters.Append param
    cmd.CommandText = "{CALL ApplicationScenario" & _
    cmd.Execute
    this is what i have with 8i ( checking with SQL Monitor ) :
    BEGIN ApplicationScenario(:1,:2,:3,:4,:5,:6,:7); END;
    :1 = 1
    :2 = '01/11/2010'
    :3 = 6
    :4 = 0
    :5 = <NULL>
    :6 = 2602
    :7 = 1
    and this is what i have in 10g :
    BEGIN ApplicationScenario(:1,:2,:3,:4,:5,:6,:7); END;
    :1 = 1
    :2 = '0'
    :3 = 6
    :4 = 0
    :5 = <NULL>
    :6 = 2602
    :7 = 1
    If someone could help me find where i' m wrong, or maybe it's a known bug ?

    Hi,
    assuming you called the function from a sql select statement (select gf_test from dual;) then the error is as expected, you can't do DML inside a select. Parallel DML is unlikely to be your problem.
    I'm a little unclear what you are trying to do with this function though, you could hack it by declaring this an autonomous transaction, but it's unlikely that that is the best way to solve the business problem. If you are trying to find the value of a primary key that is generated from a sequence then the normal way of doing this is to have a before insert trigger that generates the pk for you and then have a pl/sql procedure to do the insert and return the pk to the calling application (which can be powerbuilder or any other language that can call pl/sql.
    Niall
    Bill Mac wrote:
    OK I have managed to get some code to return an error number and this is it:
    ORA-14551: cannot perform a DML operation inside a query
    Cause: DML operation like insert, update, delete or select-for-update cannot be performed inside a query or under a PDML slave.
    Action: Ensure that the offending DML operation is not performed or use an autonomous transaction to perform the DML operation within the query or PDML slave.
    The code was:
    create or replace function GF_TEST return NUMBER is
    retval number;
    begin
    SET TRANSACTION READ WRITE;
    UPDATE parameters
    SET last_parent_co = last_parent_co + 1
    WHERE (row_no = 1)
    RETURNING last_parent_co INTO retval;
    COMMIT WORK;
    retval := 1001;
    return retval;
    exception when others then
    return sqlcode;
    end;
    Does that now make any sense to any one? Am I a pdml slave?
    Edited by: Bill Mac on 07-Apr-2009 07:38

  • No value for given parameters error when using command parameters in RDC.

    I am trying to create a report using RDC with a parameter in the query, but I keep getting "No value for given parameters" error.  Here is the code I use:
    Dim creport As CRAXDDRT.Report
    Dim appn As CRAXDDRT.Application
    Dim datcmd1 As New ADODB.Command
    Dim adocn As New ADODB.Connection   
    Dim sqltext As String
    Dim x As CRAXDDRT.ParameterFieldDefinition
    Set appn = New CRAXDDRT.Application
    Set creport = appn.NewReport
    Set x = creport.ParameterFields.Add("test", 2)
    x.AddCurrentValue 0
    sqltext = "SELECT Name FROM TestTable WHERE ID={?test}"
    Set adocn = New ADODB.Connection
    adocn.Open "Provider=SQLOLEDB;Data Source=myDB;UID=xxx;PWD=xxx;"
    Set datcmd1 = New ADODB.Command
    Set datcmd1.ActiveConnection = adocn
    datcmd1.CommandText = sqltext
    creport.Database.AddADOCommand adocn, datcmd1
    creport.SaveAs "test", crDefaultFileFormat
    Set datcmd1 = Nothing
    Set adocn = Nothing
    Set creport = Nothing
    Set appn = Nothing

    Hello, Paul;
    If you add your database connection to the command object and put fields on your report without the parameter, do you get the report you expect?
    These are version 8/8.5 samples but the code is the same:
    [Note 1|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [Note 2|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    Once you have added the database connection follow that with the parameter code.
    [Note 3|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [Note 4|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    If you add the parameter and put the field on the report, can you pass the value successfully?
    Elaine

  • Receiving FTP commands/parameters in SAP ABAP

    Hi Friends
    In My program I need to receive acknowledgement from external systems
    they will send some parameters thru FTP Commands to SAP
    my sap ABAP program need to receive when ever External system sends parameters
    and update them in SAP
    can anybody know how to handle the FTP commands and receiving them in
    SAP ABAP program, it should done automatically
    i will be very happy if any one send me some piece of code
    Thanks
    Anil

    I think you will need to watch for the arrival of the file delivered via the FTP, rather than try to act on the FTP commands themselves (as they will be handled by the FTP server software)... for example, if you were to FTP into a subdirectory called "inbox" and then have a cron job or an ABAP program that runs every X minutes to see if the directory contents have changed, you could have an event triggered back job fire up automatically (i.e. using SAPEVT from the operating system, or FM BP_EVENT_RAISE in APAP... see links:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e5e543b11d1898e0000e8322d00/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/content.htm
    for more on this.
    Jonathan

  • Command parameters in sap shortcut

    Hello
    we want to launch a transaction within SAP GUI from the Enterprise Portal. The transaction requires a lot of input parameters (the length of those parameters can reach up to 1000 characters). Unfortunately we found that using generated shortcut files as well as the transaction launcher iview we could not transfer more than 200 characters. All additional chars are simply ignored.
    Does anyone know of a possibility of launching the SAP GUI and transfering more than 200 characters (i.e. completely filling a dynpro containing several input fields).
    Best regards,
    Jan Aufdemkamp

    Hi Jan,
    we've investigated this. It is not only a limitation in SAP GUI, but also the server itself is not able to handle such a long command string. Which server release are you on?
    Best regards,
    Christian

  • Mixing SQL Command parameters and UI created parameters

    Post Author: shecter
    CA Forum: Data Connectivity and SQL
    I'm using Crystal Reports XI.  I've created a report with an SQL Command - no other tables or views. I want to allow my users to be able to choose data from a dynamic parameter and have the SQL read that and spit out the results. I was able to add a parameter to the SQL using the Parameter column in the Command window. This allows my user to type in a parameter. However, when I run the report after creating a parameter using the UI (i.e. Field Explorer/Parameters/right clicking and selecting "new" and then adding the parameter to a field using the selection wizard), i first get a screen that shows me the parameter that I created in the SQL Command window, then I get a screen that shows me the UI created parameters. How can I make it show only one screen with all the parameters?  -Marc 

    Post Author: jenxia
    CA Forum: General
    SQL Command is :
    SELECT UNIQUE ContactID,  incomingAddress,applicationid,
    MediaStatus, MediaDirection, EndDateTime, StartDateTime
    FROM MMCAContactMediaViewwhere EndDateTime>= {?1-reportstarttime}  and  EndDateTime <= {?2-reportendtime}
    Order by ContactID
    Select formula using dynamic prompts as
    {Command.contactid} = {?ContactID} and{Command.applicationid} = {?ApplicationID} and{Command.incomingaddress} = {?IncomingAddress}

  • Runtime exec command parameters with SSH

    hey,
    Im trying to run a unix command using Process proc = Runtime.getRuntime().exec(command);
    It works fine until I tried to combine it with multiple commands.
    For example, I'm trying to run:
    ssh [email protected] 'ls -al'
    This returns a exit value of -1, command not found.
    ssh [email protected] ls works fine so I suspect its related to the extra parameters.
    I checked the Javadoc page for exec:
    The command argument is parsed into tokens and then executed as a command in a separate process. The token parsing is done by a StringTokenizer created by the call:
    new StringTokenizer(command)
    As expected, it tokenized:
    ssh
    [email protected]
    'ls
    -al'
    Is there any way to bypass this default tokenization by exec to include quotes as one token?
    If anyone has any ideas, let me know! Thanks!

    thanks, solves that part.. but if i use execute command with ssh and bsub(a clustering job queue-submitter), it does ot return the correct value.
    For example, if i do ssh [email protected] bsub -I ls using exec and the waitFor() method, the waitFor waits indefinitely.
    I can tell it ran the job and ended, because i checked via bjobs and it finished. So why isn't the java app getting the exit code from waitFor() back?
    If I run the program on the targeted machine, bsub -I ls, it works correctly.
    If i type in the console, ssh [email protected] bsub -I ls, it returns back the results correctly.
    info regarding bsub and bjobs here http://www.ncsa.uiuc.edu/UserInfo/Resources/Hardware/XeonCluster/Doc/Jobs.html

  • Rename oledb command parameters

    Hi
    i am updating nearly 200 columns in oledb command.but it is showing param_0,1,2,3, etc i want makes sure those are not mis matched ,can i rename param0 as customer id
    Please urgent
    thanks in advance
    ADKR

    For large data loads a much better option would be to capture the data to be modified in a temp location (raw file/table) and  then do a batch update using execute sql task in control flow. OLEDB command works on row by row basis and would be really
    slow for large data.
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Crystal Reports 2008 Command Parameters

    Using command prompts with text file import to supply a pick list.  Is there any way to have more interaction with command prompts to select ranges?

    I have written a SQL.  Below is the remaining part with the "where" clause:
    ,D._Session_
    ,D._Modified_
    ,D._Status_
    ,D._Created_
    FROM dbo."Ventas en Pesos" A
    INNER JOIN dbo.Dim_Categoria B
    ON A.Dim_Category_dKey = B.Dim_Category_dKey 
    INNER JOIN Dim_Geografica C
    ON A.Dim_Geografica_dKey = C.Dim_Geografica_dKey
    INNER JOIN Dim_Tiempo D
    ON A.Dim_Tiempo_dKey = D.Dim_Tiempo_dKey
    WHERE C.Compania ={?Compania}
    AND C.Region ={?Region}
    AND C.Tienda = {?Tienda}
    AND B.Area = {?Area}
    AND B."Nivel Proceso" = {?Nivel Proceso}
    AND B.Categoria = {?Categoria}
    For each "where" there has been imported a text file for a pick list.
    The question is that when the report is generated, the viewer of the report has to pick what content that needs to be reviewed in the report:  Is there a way to with these pick list to make them more like with 'ranges' or 'multiple values' instead of just picking content?

  • SH ARP command parameters in ACE

    Hi ,
    Could some one explain "sh arp" command in ACE.
    Example:
    ================================================================================
    IP ADDRESS      MAC-ADDRESS        Interface  Type      Encap  NextArp(s) Status
    ================================================================================
    172.16.161.4     e1.5f.b9.a1.b8.ab  vlan1301  INTERFACE  LOCAL     _         up
    172.16.161.5     e1.5f.b9.a1.61.1d  vlan1301  LEARNED    157    13287 sec    up
    172.16.161.51    10.50.56.a6.00.04  vlan1301  RSERVER    16     82 sec       up
    172.16.161.253   10.0b.fc.fe.1b.01  vlan1201  NAT        LOCAL     _         up
    172.16.163.4     e1.5f.b9.a1.b8.ab  vlan1303  INTERFACE  LOCAL     _         up
    172.16.133.249   10.00.0c.07.ac.01  vlan1299  GATEWAY    37     14 sec       up
    whats is
    1) Interface local ?
    2) Learned  ?
    3) RSEVER ?
    4) NAT Local ?
    5) Gateway ?
    and when can or how do we use this table for ?

    Hi Rajkumar,
    1) Interface local ?  <<< IP address on that particular VLAN >>>
    2) Learned  ?    <<< IP learned outside of ACE >>>
    3) RSEVER ?   <<< Real server ARP entry >>
    4) NAT Local ? << It should be Natted IP which is from NAT pool of ACE >>  ( Need to check )
    5) Gateway ?  << Of course the default gateway >>>
    Hope that helps.
    regards,
    Ajay Kumar

  • "ip inspect tcp max-incomplete host" command parameters

    Hi all,
    I have a 7200 router with IOS version 12.3(3)B1 and I am able to configure a limit of 500 for the "ip inspect tcp max-incomplete host" command:
    ip inspect tcp max-incomplete host 500 block-time 0
    I am migrating to a 7600 with version 12.2(18)SXF but I am not able to configure the limit of 500 as in the 7200. I checked the documentation and the limit is 250, is there a way to increase this value to 500 for the 7600?
    Regards.

    Unfortunately, there is no way to increase this value to 500. I checked both 12.2(18)SXF and 12.2(33)SRB1 and they both have a limit of 250.
    Regards,
    Arul
    ** Please rate all helpful posts **

  • EFIstub, kernel command line parameters

    Hello,
    I read this post and this post, so I'd like to know about the kernel option to load the command line from a file, rather than write it direclty to the NVRAM, the so-called linux.conf, that should reside in the same kernel path.
    Is there with the current kernel, or should I patch it?
    What would it be, then, the kernel's command line option to use it?

    Point 1, I have one scarcely used,
    Point 2, maybe I should write the config in a file and tell efibootmgr to load from there. That would avoid keep track of may changes. Reading from NVRAM comes hard, due to the zero spacing (or unicoding) of its content.
    On top of the topic, that means there is no kernel yet, which will load command parameters from a file, isn't it?
    Probably it is possible, but I should do it on my own as this mentions.

  • UNIX command in ABAP code

    Hi All,
    I need to use unix command (MOVE) in ABAP code for transfering a file from one directory to another directory.
    Can any one help with how to used unix commands in ABAP?
    Thanks in advance.
    Regards,
    Hemendra

    The recommended approach always used to be to use transaction SM69 to define a "soft" command name to the operating system command so that it could be configured to work across Windows, Unix etc.  For example:
    Command name       OS         Type             OS command                                 Parameters for operating system command 
    Z_FILE_MOVE        SunOS      Customer    mv                                                 ? ?   
    You can then call function module SXPG_COMMAND_EXECUTE (quite well documented) to actually perform the command passing in the appropriate number of parameters.
    Jonathan

Maybe you are looking for

  • Time to upgrade my machine...HELP!

    Alright, so it's time to build up my new mac empire...move up from the very tired Dual G4 I've been using to the next (or at least current) generation. Basically, I need to go "balls out" on this machine--I'll have about 10k to spend. I'd like to hea

  • ITunes latest trigging Windows XP Data Execution Prevention (DEP)

    Updated too the latest version of iTunes and now I can't run it due to an Data Execution Prevention (DEP) trigger.  HELP! How do I fix this? Is there a different version avail that fixes this (a bet perhaps?)? WinXP SP3 32bit iTunes ver: 11.3.1.2 HEL

  • Not able to access web service with axis and tomcat

    Dear all i am trying to access web service using axis in tomcat. i downloaded axis-bin-1_4.zip, unzipped it and installed it properly in tomcat. i had tested axis, its working fine. i had created a simple java class(a sample class from book) and depl

  • What exactly is the ECC Register ?

    After performing a low temperature / altitude test on a piece of equipment, our CANbus log showed that several Rx errors had occured during the test and the ECC register showed a value of 243. Can anybody tell me what the value in this register means

  • How do I fix the blocked plug-in when Flash Player version 11.5.502.149 is installed?

    Hi, I have Mac OS X version 10.8.2. Recently I found that I had to update my Flash player so did so but videos still came up with 'Blocked Plug-In' so I followed all the instructions on the Adobe website. unistalled it, reinstalled it, emptied the ca