PS Add-CMDistributionPoint "No object corresponds to the specified parameters."

Hi,
I'm trying to add a distribution point via Powershell. Thanks to the Add-cmdistributionpoint it should be pretty easy. The SCCM-server sccmserver1 is the main siteserver, sccmsiteserver2 is a Windows 2012 server on which all prereqs are installed and on
which sccmsiteserver1 is member of local administrators.
However, I get the error below "No object corresponds to the specified parameter".
I assume the computer account of sccmsiteserver1 is used by default (couldn't trigger this error anyhow) and the parameter -sitesystemservername is not the main siteserver but the new distribution point.
Please advise.
J.
PS TLS:\> Add-CMDistributionPoint -SiteSystemServerName "sccmserver2.ourdomain" -SiteCode "TLS" -ClientConnectionType Intranet -EnableAnonymous -CertificateExpirationTimeUtc "2112/12/12 12:00:00" -MinimumFreeSpace 50 -Verbose
VERBOSE: Performing the operation "Add" on target "DistributionPoint: NewDistributionPoint".
VERBOSE: Executing WQL query: SELECT * FROM SMS_SCI_SysResUse WHERE SiteCode='TLS'  AND RoleName='SMS Site System'  AND FileType=2  AND ItemType='System Resource Usage'  AND N
ALPath='["Display=\\\\sccmserver2.ourdomain\\"]MSWNET:["SMS_SITE=TLS"]\\\\sccmserver2.ourdomain\\'
VERBOSE: Query returned 0 results.
Add-CMDistributionPoint : No object corresponds to the specified parameters.
At line:1 char:1
+ Add-CMDistributionPoint -SiteSystemServerName "sccmserver2.ourdomain" -SiteCod ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:String) [Add-CMDistributionPoint], ItemNotFoundException
    + FullyQualifiedErrorId : SessionStateException,Microsoft.ConfigurationManagement.Cmdlets.HS.Commands.AddDistributionPointCommand
Jan Hoedt

Yes, just a typo, sorry.
What worries me is that the output of the query is 0 "VERBOSE: Query returned 0 results."
So that means everything is working but there is actually no result to the query. Not sure why though. 
Jan Hoedt

Similar Messages

  • More than one X.509 certificate was found with the specified parameters

    Greetings All,
    We are getting an error in our application event logs every minute or so and it seems to be causing search queries to fail. Same error is appearing in the ULS logs.
    System
    Provider
    Name]
    System.ServiceModel
    4.0.0.0
    EventID
    3
    Qualifiers]
    49154
    Level
    2
    Task
    5
    Keywords
    0x80000000000000
    TimeCreated
    SystemTime]
    2014-06-25T02:30:12.000000000Z
    EventRecordID
    92894
    Channel
    Application
    Computer
    Security
    UserID]
    EventData
    System.ServiceModel.ServiceHostingEnvironment+HostingManager/63835064
    System.ServiceModel.ServiceActivationException:
    The service '/0c98374520dc4b748d92a1e51b365dce/SearchService.svc' cannot be
    activated due to an exception during compilation. The exception message is: More
    than one X.509 certificate was found with the specified parameters.. --->
    System.ArgumentException: More than one X.509 certificate was found with the
    specified parameters. at
    Microsoft.SharePoint.Utilities.CertificateManager.GetCertificate(String
    storeName, StoreLocation storeLocation, X509FindType findType, Object findValue)
    at
    Microsoft.SharePoint.Administration.SPIisWebServiceSettings.get_LocalSslCertificate()
    at Microsoft.SharePoint.SPServiceHostOperations.Configure(ServiceHostBase
    serviceHost, SPServiceAuthenticationMode authenticationMode) at
    Microsoft.Office.Server.Search.Administration.SearchServiceHostFactory.CreateServiceHost(String
    constructorString, Uri[] baseAddresses) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.CreateService(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(ServiceActivationInfo
    serviceActivationInfo, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) --- End of inner
    exception stack trace --- at
    System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String
    normalizedVirtualPath, EventTraceActivity eventTraceActivity) at
    System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String
    relativeVirtualPath, EventTraceActivity
    eventTraceActivity)
    w3wp
    6328
    Doesn't appear to affect the component health status or the crawling process, only the return of search results.
    Sorry, something went wrong.
    Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    I checked the certificates snapin, didn't see anything out of the ordinary but I have a feeling it goes deeper than that.
    Where can I remove this duplicate certificate? Thanks!

    Open IIS and check server certificates
    Check if there is any certificate applied to Security token service
    Did you used any certificate for web application in site
    Check binding of all web application in IIS
    Try to browse
    servername/0c98374520dc4b748d92a1e51b365dce/SearchService.svc from all servers, check the certificate details
    If this helped you resolve your issue, please mark it Answered

  • Add STEXT of object U in the result of search help PREM

    Hi All,
    At a customer (4.7 system) we would like to add a field "company" in the result of the search help PREM in pa30:
    This field "company" is the long text of object U. And object U is linked to object P.
    The problem is that I am not able to define join conditions in the selection method (ZM_PREMN) of the elementary search help (PREMN) to get the column "company" filled. Not possible to link HRP1001, PA0002, and HRP1000 to get stext of the correct object in the field company.
    I tried to define a user-exit for the search help, but the problem is that at the place where HRMC_PREM_EXIT_A is called I have not even the pernr's. (To be able to retrace the U's (company's) that are linked with the P's.)
    Does anyone already solved this kind of problems? Does anyone has the knowledge of BADI's for searchhelps?
    Or does anyone has knowledge of the place where we could repair it?
    Any help would be appreciated!
    Thomas

    Hi,
    You might have access to the pernr field by reader memory id 'PER'.
    thanks.
    JB

  • Object in import-file header does not correspond to the migration object

    Hi Forum,
    I have loaded Business partner successfully with the file created in Workbench with test data.
    Now I want to load the data from Application server. But i am getting the error
    "Object in import-file header does not correspond to the migration object".
    I have read that the import file should have 3 types of record
    1. Header record corrs to the structure TEMINFO
    2. Actual data records
    3. Final record for individual object.
    I am not sure where I am making a mistake
    my files header looks like
    <004F><Space><&INFO><Company><Migration Object><User><Date><Time>
    Please help.
    Thanks in advance

    I am assuming you are in transaction EMIGIMP loading a converted migration file for import, correct?
    If so, you should be able to read the company, mig. object, user name, etc. in the import file tab overview.  If conversion did not work correctly, this info will not display here. 
    It is possible you are missing some data in the header, or spacing is not correct.  Are you converting the input file with program REMIG_FILE_TRANSFORM or are you trying to create the migration file yourself?

  • I am missing the add objects section from the fly out menu in Photoshop CS6. 3d workspace

    I am missing the "add objects" section from the fly out menu in Photoshop CS6. I am in the 3D workspace of Photoshop. "Scene" is highlighted and I have clicked on the little fly out menu in the upper right hand corner of that panel. The whole section that should contain, Add objects, delete objects, duplicate objects, all the way through reverse order is missing. The add lights section above and render section below it is there. I am not new to Photoshop, but I am new to the 3D section of Photoshops work space.
    I do know about creating a new layer in the layers tab and merging the objects together trick. But I kind of would like for the program to work correctly as I am sure that doing it that way will cause some sort of problems later in the work process.
    Below are the specs of my system.
    Adobe Photoshop Version: 13.0.1 (13.0.1.3 20131024.r.34 2013/10/24:21:00:00) x64
    Operating System: Windows NT
    Version: 6.2
    System architecture: Intel CPU Family:6, Model:12, Stepping:3 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2394 MHz
    Built-in memory: 32651 MB
    Free memory: 28832 MB
    Memory available to Photoshop: 29606 MB
    Memory used by Photoshop: 89 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Basic
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: Intel
    Video Card Renderer: Intel(R) HD Graphics 4600
    Display: 3
    I am actually running windows 8. So I am not sure why it is saying windows NT. Anyway...
    Photoshop says that my software is up to date. I use Photoshop daily and everything else works just fine. I have looked through this forum and there is someone else who had the same issue as me but their question was not given a solution. So that is why I choose to post it again.
    Any help will be great. Thank you!
    Mark.

    I've made tests with four different 3rd party tools: OpenGL Extension Viewer, GPU Caps Viewer, Compute4Cash OpenCL Diagnostic Tool and Mudlord's Glide3x wrapper tester. All those tools report no problems with my video card driver and OpenGL/CL.
    I have contacted nVidia and based on reports from the tools and visual tests from GPU Caps Viewer nVidia support doesn't see a problem with my driver.
    I found sniffer_gpu.exe which according to Adobe Help pages is a kind of diagnostic tool and determines whether Photoshop uses the graphic card OpenCL or not. Here is the output:
    Device: 00000000002B1BE8 has video RAM(MB): 1023
    Vendor string:    NVIDIA Corporation
    Renderer string:  GeForce GTX 650/PCIe/SSE2
    Version string:   3.0.0
    OpenGL version as determined by Extensionator...
    OpenGL Version 3.0
    Has NPOT support: TRUE
    Has Framebuffer Object Extension support: TRUE
    OpenGL ok
    OpenCL ok, version=1.1 CUDA 4.2.1
    Return code: 3
    From Adobe GPU Sniffer tool, it looks OK.
    On the other hand, I have your word that there is no problem with Photoshop not recognizing OpenCL for my card and that nVidia driver has problems. Can you justify this somehow? Perhaps you could provide more details on technical level, or another utility to run and extract details, to at least identify the problem Photoshop has and hopefully solve it on either side.
    P.S. During tests there were two things which I noticed, but they are probably not related to the issue:
    1. One tool reports the lack of Windows registry key SOFTWARE/Microsoft/Windows (NT)/CurrentVersion/OpenGLDrivers. But according to your previous statement, Photoshop only uses OS calls, no registry and according to nVidia, this key is not used in Windows 7.
    2. During some tests GPU Caps Viewer reports that "OpenCL CPU not supported on the selected platform". This is not complaining about GPU, only about CPU. But Photoshop is complaining about GPU, so it shouldn't be relevant.

  • How do I add a Recent Objects direct link group to the navigation bar?

    Hi
    I've noticed in some of the tutorials in the eLearning section there is a Recent Objects direct link group. I presume this is a dynamic collection of recent activities the user has created similar to the My Recent Documents folder you see in the Start menu in Windows XP.
    Does anyone know how to implement this functionality to the navigation bar in the WebClient UI? I know how to add a direct link group to the navigation bar but I don't see any trace of this recent objects functionality.
    Cheers
    Declan

    Hi Vikash
    Thank you for you advice. However the IMG activity Define Business Role does not allow me to add a new entry.
    Instead I used the IMG activity: CRM > UI Framework > Technical Role Definition > Define Navigation Bar Profile. I double clicked on Define Profile, selected my business role and double clicked on Assign Direct Link Group. I tried to enter the Group ID REC_ITEMS but it produced an error saying Entry REC_ITEMS does not exist in CRM_UI_DLG (check entry).
    Can you advise further please?
    Cheers
    Declan

  • How to add an variable to the object name of the arraylist

    Greetings,
    i will like to create an object for arraylist with it name concat with a variable. This is what i mean as show below.
    for i=1; i <8; i++)
    ArrayList list = new ArrayList();
    What i want when it loops, the arrayliost will auto create list1, list 2, list3 and so on until the for loops end. How do i add the variable i to the object name list?
    Thanks

    Do anyone of u mind if let me know hows the code look like?This isn't intended to be an alternative to the previous reply: in fact it's worthless unless you read the information in the link given.
    import java.util.ArrayList;
    import java.util.InputMismatchException;
    import java.util.List;
    import java.util.Random;
    import java.util.Scanner;
    public class ListListEg {
        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            Random random = new Random();
                // create the mainList outside the for loop
            List<List<Integer>> mainList = new ArrayList<List<Integer>>();
            System.out.print("How many lists would you like? ");
            try {
                int num = in.nextInt();
                if(num <= 0) {
                    System.out.println("Smartass!");
                    System.exit(1);
                    // populate the main list inside the loop
                for(int i = 0; i < num; i++) {
                    mainList.add(new ArrayList<Integer>());
            } catch(InputMismatchException ime) {
                System.out.println("Idiot!");
                System.exit(1);
                // later do stuff with the lists, which you access with get()
            for(int i = 0; i < mainList.size(); i++) {
                for(int times = 0; times < 3; times++) {
                    mainList.get(i).add(random.nextInt());
            System.out.println("The first list is " + mainList.get(0));
            if(mainList.size() > 1) {
                System.out.println("The second list is " + mainList.get(1));
            System.out.println("The last list is " + mainList.get(mainList.size() - 1));
    }(In reality all the action would not take place in one method like this, and the exception handling would be more useful and polite.)

  • [svn:osmf:] 14486: Add stream metadata support by extracting the actual metadata object from the binary data stream .

    Revision: 14486
    Revision: 14486
    Author:   [email protected]
    Date:     2010-03-01 14:27:41 -0800 (Mon, 01 Mar 2010)
    Log Message:
    Add stream metadata support by extracting the actual metadata object from the binary data stream.
    Fix bug 466
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/ManifestParser.as
        osmf/trunk/framework/OSMF/org/osmf/elements/f4mClasses/Media.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/HTTPStreamingUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FIndexHandler.as
        osmf/trunk/framework/OSMF/org/osmf/net/httpstreaming/f4f/HTTPStreamingF4FStreamInfo.as

    same problem, data not replicated.
    its captured,propagated from source,but not applied.
    also no apply errors in DBA_APPLY_ERROR. Looks like the problem is that LCRs propagated from source db do not reach target queue.can i get any help on this?
    queried results are as under:
    1.at source(capture process)
    Capture Session Total
    Process Session Serial Redo Entries LCRs
    Number ID Number State Scanned Enqueued
    CP01 16 7 CAPTURING CHANGES 1010143 72
    2. data propagated from source
    Total Time Executing
    in Seconds Total Events Propagated Total Bytes Propagated
    7 13 6731
    3. Apply at target(nothing is applied)
    Coordinator Session Total Total Total
    Process Session Serial Trans Trans Apply
    Name ID Number State Received Applied Errors
    A001 154 33 APPLYING 0 0 0
    4. At target:(nothing in buffer)
    Total Captured LCRs
    Queue Owner Queue Name LCRs in Memory Spilled LCRs in Buffered Queue
    STRMADMIN STREAMS_QUEUE 0 0 0

  • How to add a ChartOfAccounts object into the database.

    how to add a ChartOfAccounts object into the database. please shows sample code
    thanks

    Dim CoA As SAPbobsCOM.ChartOfAccounts
                CoA = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oChartOfAccounts)
                CoA.Code = 11223344
                CoA.ExternalCode = "a1234"
                CoA.ForeignName = "f Test Account"
                CoA.Name = "Test Account"
                CoA.AccountType = SAPbobsCOM.BoAccountTypes.at_Other
                CoA.ActiveAccount = SAPbobsCOM.BoYesNoEnum.tYES
                CoA.FatherAccountKey = 100001
                If CoA.Add <> 0 Then
                    MessageBox.Show(oCompany.GetLastErrorDescription)
                Else
                    MessageBox.Show("Added Account")
                End If
    Remember the father account key must be a valid account number in the company where you are trying to add the new account.  (The G/L Account code seen in the SBO client)

  • Invoke-Command & Add-CMDistributionPoint - Certificate failure

    Hi together,
    for automatic creation of Distribution Points I am doing the following things.
    Doing this locally on the Primary Site Server as Network Access Account everything works fine.
    But when I try to do this with invoke-command on my machine with Network Access Account too, I'll get an error:
    WARNING: The self signed certificate could not be created successfully.
    What am I doing wrong?
    Here is what I am doing locally:
    Write-Host "------------------NOW Running on REMOTE Primary Site----------------" -BackgroundColor Yellow -ForegroundColor Black
    if(!(Test-Path $RemoteSCCMModule))
    Write-Error "Could not find Remote SCCM Module!"
    Exit
    Write-Debug "Importing SCCM Module..."
    Import-Module $RemoteSCCMModule -Force
    $SiteLocation = $SiteCode + ":"
    Set-Location $SiteLocation | Out-Null
    if(($BoundaryName -ne "") -and ($BoundaryName -ne " ") -and ($BoundaryName -ne $null) -and ($BoundaryName -ne $false))
    $BoundaryValue = $BoundaryStartIP + "-" + $BoundaryEndIP
    New-CMBoundary -DisplayName $BoundaryName -BoundaryType IPRange -Value $BoundaryValue
    New-CMBoundaryGroup -Name $BoundaryGroupName
    Add-CMBoundaryToGroup -BoundaryGroupName $BoundaryGroupName -BoundaryName $BoundaryName
    New-CMSiteSystemServer -ServerName $using:NewDPServer -SiteCode $using:SiteCode
    Start-Sleep -Seconds 2
    Add-CMDistributionPoint -SiteSystemServerName $NewDPServer -SiteCode $SiteCode -MinimumFreeSpaceMB $MinimumFreeDiskSpace -EnablePxeSupport -AllowRespondIncomingPxeRequest -EnableUnknownComputerSupport -ComputersUsePxePassword $PXEPassword -UserDeviceAffinity DoNotUse -PxeServerResponseDelaySeconds 5 -CertificateExpirationTimeUtc $CertExpirationDate
    Start-Sleep -Seconds 2
    Foreach($DPGroup in $NewDPServer_Groups)
    Add-CMDistributionPointToGroup -DistributionPointGroupName $DPGroup -DistributionPointName $NewDPServer
    And this is what I am doing with Invoke-Command:
    Invoke-Command -ComputerName $PrimarySiteServer -ConfigurationName Microsoft.PowerShell32 -Credential $NAACred -ScriptBlock {
    $DebugPreference = $using:DebugPreference
    Write-Host "------------------NOW Running on REMOTE Primary Site----------------" -BackgroundColor Yellow -ForegroundColor Black
    Write-Debug "Importing SCCM Module..."
    Import-Module $using:RemoteSCCMModule -Force
    $SiteLocation = $using:SiteCode + ":"
    Set-Location $SiteLocation | Out-Null
    if(($using:BoundaryName -ne "") -and ($using:BoundaryName -ne " ") -and ($using:BoundaryName -ne $null) -and ($using:BoundaryName -ne $false))
    $BoundaryValue = $using:BoundaryStartIP + "-" + $using:BoundaryEndIP
    New-CMBoundary -DisplayName $using:BoundaryName -BoundaryType IPRange -Value $BoundaryValue
    New-CMBoundaryGroup -Name $using:BoundaryGroupName
    Add-CMBoundaryToGroup -BoundaryGroupName $using:BoundaryGroupName -BoundaryName $using:BoundaryName
    New-CMSiteSystemServer -ServerName $using:NewDPServer -SiteCode $using:SiteCode
    Start-Sleep -Seconds 2
    Add-CMDistributionPoint -SiteSystemServerName $using:NewDPServer -SiteCode $using:SiteCode -MinimumFreeSpaceMB $using:MinimumFreeDiskSpace -EnablePxeSupport -AllowRespondIncomingPxeRequest -EnableUnknownComputerSupport -ComputersUsePxePassword $using:PXEPassword -UserDeviceAffinity DoNotUse -PxeServerResponseDelaySeconds 5 -CertificateExpirationTimeUtc $using:CertExpirationDate
    Start-Sleep -Seconds 2
    Foreach($DPGroup in $using:NewDPServer_Groups)
    Add-CMDistributionPointToGroup -DistributionPointGroupName $DPGroup -DistributionPointName $using:NewDPServer
    If you need more information what different valus of variables are i can provide.
    Thank you.
    Kind regards
    Martin Krämer

    Hi,
    Here is the whole script - I'm still testing around this is why it is not really nice at the moment ;-) :
    $DebugPreference = "Continue"
    $Script:Script= $MyInvocation.MyCommand.Definition
    $Script:DebugOut = "Script started: " + "$Script:Script"
    Write-Debug $Script:DebugOut
    $Script:ScriptPath = Split-Path -Path $Script:Script -Parent
    $CertExpirationDate = (Get-Date).AddYears(100)
    #region Setting_Variables
    $NAACred = Get-Credential -Message "provide NetworkAccessAccount credentials:" -UserName "test.loc\NAA_User"
    [string]$RemoteSCCMModule = "D:\ConfigMgr\AdminConsole\bin\ConfigurationManager.psd1"
    [string]$PrimarySiteServer = "Test-Primary"
    [string]$SiteCode = "KN1"
    [string]$NewDPServer = "TEST-DP.test.loc"
    $PXEPassword = ConvertTo-SecureString -AsPlainText "mypass" -Force
    [int]$MinimumFreeDiskSpace = 2000
    [string]$BoundaryName = " "
    [string]$BoundaryStartIP = "192.168.30.1"
    [string]$BoundaryEndIP = "192.168.30.254"
    [string]$BoundaryGroupName = "TEST-DP_Group"
    [array]$NewDPServer_Groups = "04 All Aviable DPs", "01 All PXE DPs"
    #endregion Setting_Variables
    #region REMOTE PrimarySiteServerScript
    <#
    IF ($env:PROCESSOR_ARCHITECTURE -ne "x86")
    Write-Debug "Powershell needs to be in x86 mode. Restarting powershell..."
    $PS32exe = "$env:windir\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"
    if(!(Test-Path $PS32exe))
    Write-Error "x86 Powershell not found!"
    exit
    $powershell = [System.Diagnostics.Process]::GetCurrentProcess()
    $psi = New-Object System.Diagnostics.ProcessStartInfo $powerShell.Path
    $script = $MyInvocation.MyCommand.Path
    $prm = $script
    foreach($a in $args)
    $prm += ' ' + $a
    $psi.Arguments = $prm
    $psi.FileName = $PS32exe
    [System.Diagnostics.Process]::Start($psi) | Out-Null
    exit
    Else
    Write-Debug "Powershell already in x86 mode..."
    if(!(Test-Path $using:RemoteSCCMModule))
    Write-Error "Could not find Remote SCCM Module!"
    Exit
    #>
    <#
    Invoke-Command -ComputerName $PrimarySiteServer -ConfigurationName Microsoft.PowerShell32 -Credential $NAACred -ScriptBlock {
    $DebugPreference = $using:DebugPreference
    Write-Host "------------------NOW Running on REMOTE Primary Site----------------" -BackgroundColor Yellow -ForegroundColor Black
    Write-Debug "Importing SCCM Module..."
    Import-Module $using:RemoteSCCMModule -Force
    $SiteLocation = $using:SiteCode + ":"
    Set-Location $SiteLocation | Out-Null
    if(($using:BoundaryName -ne "") -and ($using:BoundaryName -ne " ") -and ($using:BoundaryName -ne $null) -and ($using:BoundaryName -ne $false))
    $BoundaryValue = $using:BoundaryStartIP + "-" + $using:BoundaryEndIP
    New-CMBoundary -DisplayName $using:BoundaryName -BoundaryType IPRange -Value $BoundaryValue
    New-CMBoundaryGroup -Name $using:BoundaryGroupName
    Add-CMBoundaryToGroup -BoundaryGroupName $using:BoundaryGroupName -BoundaryName $using:BoundaryName
    New-CMSiteSystemServer -ServerName $using:NewDPServer -SiteCode $using:SiteCode
    Start-Sleep -Seconds 2
    Add-CMDistributionPoint -SiteSystemServerName $using:NewDPServer -SiteCode $using:SiteCode -MinimumFreeSpaceMB $using:MinimumFreeDiskSpace -EnablePxeSupport -AllowRespondIncomingPxeRequest -EnableUnknownComputerSupport -ComputersUsePxePassword $using:PXEPassword -UserDeviceAffinity DoNotUse -PxeServerResponseDelaySeconds 5 -CertificateExpirationTimeUtc $using:CertExpirationDate
    Start-Sleep -Seconds 2
    Foreach($DPGroup in $using:NewDPServer_Groups)
    Add-CMDistributionPointToGroup -DistributionPointGroupName $DPGroup -DistributionPointName $using:NewDPServer
    #>
    #endregion REMOTE PrimarySiteServerScript
    #region LOCAL PrimarySiteServerScript
    Write-Host "------------------NOW Running on REMOTE Primary Site----------------" -BackgroundColor Yellow -ForegroundColor Black
    if(!(Test-Path $RemoteSCCMModule))
    Write-Error "Could not find Remote SCCM Module!"
    Exit
    Write-Debug "Importing SCCM Module..."
    Import-Module $RemoteSCCMModule -Force
    $SiteLocation = $SiteCode + ":"
    Set-Location $SiteLocation | Out-Null
    if(($BoundaryName -ne "") -and ($BoundaryName -ne " ") -and ($BoundaryName -ne $null) -and ($BoundaryName -ne $false))
    $BoundaryValue = $BoundaryStartIP + "-" + $BoundaryEndIP
    New-CMBoundary -DisplayName $BoundaryName -BoundaryType IPRange -Value $BoundaryValue
    New-CMBoundaryGroup -Name $BoundaryGroupName
    Add-CMBoundaryToGroup -BoundaryGroupName $BoundaryGroupName -BoundaryName $BoundaryName
    New-CMSiteSystemServer -ServerName $using:NewDPServer -SiteCode $using:SiteCode
    Start-Sleep -Seconds 2
    Add-CMDistributionPoint -SiteSystemServerName $NewDPServer -SiteCode $SiteCode -MinimumFreeSpaceMB $MinimumFreeDiskSpace -EnablePxeSupport -AllowRespondIncomingPxeRequest -EnableUnknownComputerSupport -ComputersUsePxePassword $PXEPassword -UserDeviceAffinity DoNotUse -PxeServerResponseDelaySeconds 5 -CertificateExpirationTimeUtc $CertExpirationDate
    Start-Sleep -Seconds 2
    Foreach($DPGroup in $NewDPServer_Groups)
    Add-CMDistributionPointToGroup -DistributionPointGroupName $DPGroup -DistributionPointName $NewDPServer
    #endregion LOCAL PrimarySiteServerScript
    Thank you for help :-)

  • How to update ADF VO object to refresh the data in ADF Pivot table

    I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
    here are the steps I performed to create ADF pivot table application using VO at design time.
    1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
    2) Dragged this collection to the page in which wanted to create the pivot table
    3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
    Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
    I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
    but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
    here is the code
    Our slider component will look like
    <af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
    autoSubmit="true" />
    The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
    public void setDataValue(boolean value) {
    DataValue = value;
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
    Object result = operationBinding.execute();
    The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
    public void filterVO(boolean value) {
    if (value != null) {
    ViewObjectImpl ibVO = getVO1();
    ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
    ibVO.executeQuery();
    }

    Did you define a filterVO action in your pagedef.xml file?
    You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5

  • How to add OLE wordpad objects to a crystal report through VB program

    Can we programmatically add OLE wordpad objects to a crystal report XI r 2. through VB.NET or VB6?
    And is there a way of treating a database binary/blob field as an ole object in CR?

    Hi Mohan,
    Try it in the Designer first. If it works in the designer then it will work in our SDK's but you'll have to use RAS. So when you post your question to the .NET Development - Crystal Reports Forum be sure to specify what version you are using and anything else as far as versions go.
    It may be easier to simply link the OLE Object in the designer, check the help file out on how to.
    Thank you
    Don

  • How to add a code TestIfElse(10) to the Main method of the Program.cs class?

    How to add a code  TestIfElse(10) to the Main method of the Program.cs class?
    Here is my code and I have copied from the Wiley book for Microsoft certification page 14,
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace ifelse_Statement
        class Program
            static void Main(string[] args);
            TestIfElse(10);
            public static void TestIfElse(int n);
            if(n < 10)
                     Console.WriteLine("n is less than 10");
             else if(n < 20)
                    Console.WriteLine("n is less than 20");
             else if(n < 30)
                Console. WriteLine("n is greater than or equal to 30");
    Here is the error list I am getting,
    Error 1      Method must have a return type        C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\switch_Statement\Program.cs
    12 13
    switch_Statement
    Error 2
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\switch_Statement\Program.cs
    12 24
    switch_Statement
    Error 3
    Method must have a return type C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    12 9
    ifelse_Statement
    Error 4
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    12 20
    ifelse_Statement
    Error 5
    Invalid token 'if' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 9
    ifelse_Statement
    Error 6
    Invalid token '10' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 16
    ifelse_Statement
    Error 7
    Type expected C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    16 16
    ifelse_Statement
    Error 8
    Invalid token '(' in class, struct, or interface member declaration
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    18 35
    ifelse_Statement
    Error 9
    A namespace cannot directly contain members such as fields or methods
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    20 10
    ifelse_Statement
    Error 10
    Type or namespace definition, or end-of-file expected
    C:\Users\PVS\documents\visual studio 2013\Projects\Lesson01\ifelse_Statement\Program.cs
    30 1
    ifelse_Statement
    Error 11
    The type or namespace name 'n' could not be found (are you missing a using directive or an assembly reference?)
    c:\users\pvs\documents\visual studio 2013\projects\lesson01\ifelse_statement\program.cs
    16 12
    ifelse_Statement
    Error 12
    'System.Console.WriteLine(string, params object[])' is a 'method' but is used like a 'type'
    c:\users\pvs\documents\visual studio 2013\projects\lesson01\ifelse_statement\program.cs
    18 26
    ifelse_Statement

    static void Main(string[] args){
    TestIfElse(10);
    public static void TestIfElse(int n)
    if (n < 10)
    Console.WriteLine("n is less than 10");
    else if (n < 20)
    Console.WriteLine("n is less than 20");
    else if (n < 30)
    Console.WriteLine("n is greater than or equal to 30");
    Fouad Roumieh

  • How to add a field object to group header section in crystal report document?

    Hi All, I have got two questions mentioned below, please share your inputs. 1)I want to know whether it is possible to add a field object to header section in crystal report document programmatically? I am using crystal runtime for visual studio. I know that using RAS we can do it, but I want to do it using managed library of crystal runtime. Please suggest. 2) I am doing a POC where I am using RAS (unmanaged library) to manipulated crystal report document. Please see code below: var dbTable = _reportDocument.ReportClientDocument.DatabaseController.Database.Tables[0]; var dbField = dbTable.DataFields.FindField(item.ColumnName,                         CrystalDecisions.ReportAppServer.DataDefModel.CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,                         CrystalDecisions.ReportAppServer.DataDefModel.CeLocale.ceLocaleEnglishUS); CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject fieldObject = new CrystalDecisions.ReportAppServer.ReportDefModel.FieldObject();                     fieldObject.DataSourceName = dbField.Name;                     fieldObject.FieldValueType = dbField.Type; var groupHeaderArea = _reportDocument.ReportClientDocument.ReportDefController.ReportDefinition.GroupHeaderArea[0].Sections[i]; _reportDocument.ReportClientDocument.ReportDefController.ReportObjectController.Add(fieldObject, groupHeaderArea); In above code last line throwing exception : "The report field type is not valid." at CrystalDecisions.ReportAppServer.Controllers.ReportObjectControllerClass.Add(ISCRReportObject ReportObject, Section Section, Int32 nIndex) Thanks, Jai

    Hi Jaikumar
    As per the SCN Rules of engagement, one question per thread please.
    Re. your 1st question. Adding a field to a report is considered to be a report creation APIs (RCAPI). Only the RAS SDK has RCAPIs, so you can not use plain jane crystal APIs. For how to with RAS, see the examples here: NET RAS SDK Samples - Business Intelligence (BusinessObjects) - SCN Wiki
    Also, consult the Developer Help Files:
    Report Application Server .NET SDK Developer Guide
    Report Application Server .NET API Guide
    Re. your second question, please create a new discussion.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

Maybe you are looking for