Adf: Get Id foreach

Hi,
In the code below I have 3 for each as master-detail(Clients-->Proyects-->Tasks), and the tasks are drag source components.
I'm trying programmatically to get the value of the Id of each one on Drop, I'm able to get the "Name" of each item but I have no idea of how I could get the Id
Help please!
<code>
<af:forEach var="clients" items="#{bindings.ClientsView2.children}">
<af:showDetailItem id="sdi1" disclosed="true" text="#{clients.Name}"
immediate="true">
<af:forEach items="#{clients.children}" var="projects">
<af:showDetail disclosed="false" id="sd1"
disclosedText="#{projects.Name}"
undisclosedText="#{projects.Name}">
<af:forEach items="#{projects.children}" var="tasks">
<af:outputText value="#{tasks.Name}" id="ot8">
<af:componentDragSource/>
</af:outputText>
</af:forEach>
</af:showDetail>
</af:forEach>
</af:showDetailItem>
</af:forEach>
</code>
Thanks,
Diego Velez

Hi Diego,
You can add a client attribute and reference it using an af:attributeDragSource, should look like this:
<af:outputText value="#{tasks.Name}" id="ot8">
  <af:attributeDragSource attribute="id"/>
  <af:clientAttribute name="id" value="#{tasks.Id}"/>
</af:outputText>See this demo: http://jdevadf.oracle.com/adf-richclient-demo/faces/components/attributeDragSource.jspx
AP

Similar Messages

  • Getting pcs:foreach to iterate a Javascript array

    Dear Experts,
    I've got a selection list in a content item, and I can happily use <pcs:foreach> to iterate over it.
    So now, I would like to add an additional item to that which the user has selected, or get rid of some of the items.
    I have been able to get the values that I want intop a javascript array, but <pcs:foreach> to iterate. I have tried a delimited string with both a spaces and commas, no luck.
    Any ideas on programatically editing a selection list, or getting <pcs:foreach> to deal with an array?
    Thanks!
    Rob
    PS Here's the code !
    <script>
    var NewsCategoriesToShow = myArray.split(',');
    </script>
    This fails: <pcs:foreach var="cat" expr="NewsCategoriesToShow">
    This also fails: <pcs:foreach var="cat" expr="myArray">
    Only this works: <pcs:foreach var="cat" expr="mySelectionList">
    ...

    have you tried using straight javascript or jquery to edit the selection list after it is built? like with some javascript at the bottom of the page? i'll see if i can dig up any old code to see if i find that i've done this before.

  • ADF FACES: af:forEach and panelGrids

    Hi,
    I can't get code resembling the following to work:
    <h:panelGrid columns="4">
      <af:forEach items="#{bindings.WebCategoriesIterator.collectionModel}"
        var="current">
        <af:panelGroup>
          <af:outputText value="#{current.CatName}" />
          <af:outputText value="#{current.CatDesc}" />
        </af:panelGroup>
      </af:forEach>
    </h:panelGrid>Am I misunderstanding how one of these components works? I know <af:forEach> "only works with ADF Faces components", but I'd been assuming that means that all the components inside it have to be ADF Faces components, not that all the components on the page do. (That is, I'd assumed that the panelGrid was fine.)
    I get a couple of Log4J "Error null" messages on the console when I run this, and the panel grid doesn't seem to render at all. A table built on the same data model works fine.
    Assuming I can't use a forEach inside a panel grid, does anyone have any suggestions? Eventually, there will be images and links in these cells--the idea is to have a n x m grid of images, each linked to a "product" page, much as you might see in most web stores.
    I suppose I could use a large tableLayout with cellFormats and manually check each row in the range in the form bean, setting rowLayout and cellFormat properties to "false" once there aren't any more rows, but this seems hideously ugly for what should be a fairly simple widget.

    Hi,
    I can't get code resembling the following to work:
    <h:panelGrid columns="4">
      <af:forEach items="#{bindings.WebCategoriesIterator.collectionModel}"
        var="current">
        <af:panelGroup>
          <af:outputText value="#{current.CatName}" />
          <af:outputText value="#{current.CatDesc}" />
        </af:panelGroup>
      </af:forEach>
    </h:panelGrid>Am I misunderstanding how one of these components works? I know <af:forEach> "only works with ADF Faces components", but I'd been assuming that means that all the components inside it have to be ADF Faces components, not that all the components on the page do. (That is, I'd assumed that the panelGrid was fine.)
    I get a couple of Log4J "Error null" messages on the console when I run this, and the panel grid doesn't seem to render at all. A table built on the same data model works fine.
    Assuming I can't use a forEach inside a panel grid, does anyone have any suggestions? Eventually, there will be images and links in these cells--the idea is to have a n x m grid of images, each linked to a "product" page, much as you might see in most web stores.
    I suppose I could use a large tableLayout with cellFormats and manually check each row in the range in the form bean, setting rowLayout and cellFormat properties to "false" once there aren't any more rows, but this seems hideously ugly for what should be a fairly simple widget.

  • ADF  Get selected values from Dynamic Lists

    Hi,
    I have a created a dropdown list box where the list gets value through a managed bean. On commit I want the selected value to be saved into the CardiacV1EchoSched column of the Entity object (database). The source looks like this.
    <af:selectOneChoice value="#{bindings.CardiacV1EchoSched.inputValue}"
    label="#{bindings.CardiacV1EchoSched.label}"
    valuePassThru="true">
    <f:selectItems value="#{TTrack.carScheList}"/>
    </af:selectOneChoice>
    The problem is that getCardiacV1EchoSched() in the entity object class is null. The selected value does not get passed into #{bindings.CardiacV1EchoSched.inputValue} at all. If I bind the value to a variable in managed bean I get the selected value.
    Thanks in advance,

    Hi,
    not sure which business service you use to update the database, but if you use ADF Business Components then you need to call the commit operation
    Frank

  • ADF Faces af:forEach bug

    I have a page that has a af:showOneTab that contains a af:forEach to dynamically populate the af:showDetailItem tabs. Within the af:showDetailItem I can reference the forEach iterator to associated fields on the screen with their corresponding values. This works fine.
    But these tabs also contain af:selectOneChoice fields. And within this field I need the f:selectItems to reference a list of options that is part of the data object associated with the forEach iterator. This does not seem to work. The option lists are always empty. I have tried debugging this process and the system does not call the accessor functions for this list items. It does call the accessors for all of the simple field value attributes referenced by the forEach iterator, but the "getMyOptionsList" referenced in the f:selectItems value="#{listIterator.myOptionsList}" statement is never called.
    Should this work or is it a limitation for the af:forEach?
    Thanks

    Dang, nobody is listening...
    But I also now have another problem with af:forEach. In the same scenario as above (in fact trying to get around the problem above...), I am trying to bind an af:inputText component to a backing bean. I am using the af:forEach iterator value "addresslist" just like it is used for the component value. This works fine for the value property, but does not work for the binding property. I get the error <i>"javax.faces.el.PropertyNotFoundException: Error setting property 'cityInputText' in bean of type null"</i>.
    The component definition looks like this:
    af:inputText
    id="csrv_detailsCity"
    binding="#{addresslist.cityInputText}"
    columns="40"
    maximumLength="40"
    simple="true"
    value="#{addresslist.city}"
    Should this work or is it another "limitation" of the af:forEach?
    Thanks

  • Get-EventLog - Foreach

    Guys.
    Can anyone see anything wrong with this? Basically the Computers.txt file has a list of computer names in it but when the script is run it seems to be checking the local machine and not each of the remote computers?
    Any ideas?
     $computers = Get-Content "H:\Computers.txt";
     $eventID = "1000"
    foreach($computer in $computers)
     Get-EventLog -LogName Application -EntryType Error | where {$_.eventID -eq $eventID} | Where {$_.message –match "Outlook"} | Format-Table -Wrap -Property MachineName, Index, TimeGenerated, EntryType, Source, InstanceID, Message -AutoSize

    You never specify the -ComputerName parameter so modify it to be
    Get-EventLog -ComputerName $computer -LogName Application -EntryType Error
    If you find that my post has answered your question, please mark it as the answer. If you find my post to be helpful in anyway, please click vote as helpful.
    Don't Retire Technet

  • ADF: getting current week through sysdate

    hi,
    Im using Jdev 11G.
    i have a table with sysdate displaying.
    now i need to calculate week by this sysdate and display in another column of the table.
    for ex: if sysdate is 3/2/2012 then the week should be 09 (bcoz 2nd March 2012 is the 9th week for the year 2012).
    How can i achieve this.
    Thanks.

    Hi,
    Have you tried adding to_char(sysdate,'WW') as a new column (calculated) in your VO's query.
    Ex :
    select to_char(to_date('3/2/2012','mm/dd/yyyy'),'WW') from dual-Arun

  • How to get the logged in userId value in adf task flow OIM11g R2

    Hi,
    I have created an adf task flow. Now I want to run some query in that based on the logged in userId.
    Could you please help me in knowing how to get the logged in userID value in adf TaskFlow so that I can run a parameterized query.
    Thanks

    3 different ways to retrieve the username (not sure what you mean by user ID) :
    http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
    Also provide your JDev version.
    Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
    That's if you are using ADF BC of course.

  • How to get the logged in userId value in adf task flow

    Hi,
    I have created an adf task flow and deployed the same in application as an adf library.
    Now I need to get the Logged in User ID value in the adf task flow which I created.
    Based on this userid I need to run query to fetch the data related to the user from the database.
    Please help/guide me to solve this issue.

    3 different ways to retrieve the username (not sure what you mean by user ID) :
    http://mahmoudoracle.blogspot.be/2012/06/adf-get-current-logged-user-name.html#.USI_c-h8zIo
    Also provide your JDev version.
    Basicly, you should use the groovy expression in a view criteria (it's the fastest and easiest way) and call that view criteria whenever you need it.
    That's if you are using ADF BC of course.

  • Foreach output from get-command, add menu item

    Hi
    I'm making a script to configure some basic settings for new servers, and one of the features in the script is to set ip-address on the network interface. 
    At some servers there are several network interfaces, and I would like to create a menu based on the output from a get-query(Get-NetAdapter | select Name). Setting the ip-addresses is okay, but I'm having a problem creating a menu.
    What I want to do: If there is more than one NIC, create a menu with each network interface.
    Any clues?

    I didn't work that in, because I had no clue what you were trying to do when I initially wrote it.
    This version returns an object that you can work with ($selectedNIC) :
    $i = 1
    $menuList = @()
    $menuList = Get-NetAdapter | ForEach {
    $props = [ordered]@{
    'NIC Number'=$i
    Name=$_.Name
    InterfaceDescription=$_.InterfaceDescription
    ifIndex=$_.ifIndex
    Status=$_.Status
    MacAddress=$_.MacAddress
    LinkSpeed=$_.LinkSpeed
    New-Object PsObject -Property $props
    $i++
    $menuList | Format-Table -AutoSize
    $nicChoice = Read-Host 'Enter the NIC Number to process'
    $selectedNIC = Get-NetAdapter -InterfaceIndex ($menuList[$nicChoice-1]).ifIndex
    $selectedNIC
    Don't retire TechNet! -
    (Don't give up yet - 12,420+ strong and growing)

  • How to get the results in one line

    Hi
    if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
    another question - is there a way that the script will not show the server name on every path?
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
    THC

    If you take you script and pipe it to get member, it will give you a list of various script properties.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
    You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
    TypeName:
    Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
    Name MemberType Definition
    Equals Method bool Equals(System.Object obj)
    GetHashCode Method int GetHashCode()
    GetType Method type GetType()
    ToString Method string ToString()
    CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
    Timestamp Property datetime Timestamp {get;set;}
    Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
    You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
    This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
    and then give it various options. This is how you would pipe it (without any options).
    (Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
    Get-Counter | format-table }
    Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
    get-help format-table
    I hope this helps!
    Thank for all the info...

  • Script to get application stats running on multiple windows servers

    Hi,
     I am beginner in powershell and trying to write a script to get the different stats of an application/s running on  windows WAS server. am trying to gather all the stats into one custom object and planning the tabular output to send via html mail.
    am finding it hard to frame logic to get this done and below is piece of script. can somebody guide on this ?
    # Get the profiles list in the server
    $ppath = "profilePath"
    $profiles = Get-ChildItem "profilePath" | ForEach-Object { $_.Name }
    $SystemInfo = @()
    $profiles | ForEach-Object {$_}{
    $Obj = New-Object -TypeName PSObject
    $pathToCheck = $ppath + $_ + "application path" 
    $SerFile = "profilePath" + $_ + "service file"
    $ContFile = "profilePath" + $_ + "context file"
    if(Test-Path $pathToCheck)
    #Write-Host "Profile ==>" $_
    $Obj | Add-Member -MemberType NoteProperty -Name Profile -Value $_
    $PIDFile = $ppath + $_ + "PID file path"
    if(test-path $PIDFile)
    $ProcID = get-content $PIDFile
    #Write-Host "PID     ==>" $ProcID
    $memTmp = Get-WmiObject -class Win32_PerfFormattedData_PerfProc_Process | where{$_.idprocess -eq $ProcID} | Select WorkingSetPrivate
    $memUsage = $memTmp | Select -Expand WorkingSetPrivate
    #Write-host "Memory  ==>" $memUsage
    else{
    $ProcID = "PID Not Found"
    $Obj | Add-Member -MemberType NoteProperty -Name Memory -Value $memUsage
    if(test-path $SerFile)
    $temp = Get-ChildItem -name $SerFile
    $SerStr = $temp.Substring(0,4)
    $nm = Get-Service -name *$SerStr* | Select Name
    $name = $nm | select -expand Name
    $sts = Get-Service -name *$SerStr* | Select Status
    $status = $sts | select -expand Status
    #Write-Host "Service Name ==>" $name
    #write-host "Status " ==> $status
    else{
    $SerStr = "Service Not Found"
    $Obj | Add-Member -MemberType NoteProperty -Name Service-Name  -Value $name
    $Obj | Add-Member -MemberType NoteProperty -Name Service-Status -Value $status
    if(test-path $ContFile)
    [XML]$rav = get-content $ContFile
           $tmp1 = @($rav.GetElementsByTagName("context-root"))
           $client = $tmp1[0]."#text"
           #write-host "Environment" ==> $client
    else{
    $client = "ContextRoot Not Found"
       }$Obj | Add-Member -MemberType NoteProperty -Name Environment -Value $client
    write-output $Obj | format-table -autosize  Profile , Environment

    Hi Ravi0211,
    The script below may be helpful for you, which can filter the process based on the property "idprocess" and the services based on the service "name":
    $pids=@()
    $output=@()
    $output1=@()
    get-content d:\processid.txt|foreach{
    $pids+=$_} #store the processid as an array
    Get-WmiObject -class Win32_PerfFormattedData_PerfProc_Process | foreach{
    if ($pids -contains $_.idprocess){#filter the processid listed in the file d:\processid.txt
    $Obj = New-Object -TypeName PSObject
    $Obj | Add-Member -MemberType NoteProperty -Name idprocess -Value $_.idprocess
    $Obj | Add-Member -MemberType NoteProperty -Name Memory -Value $_.WorkingSetPrivate
    $output+=$obj}
    $services = get-content d:\service.txt
    Foreach($service in $services){
    Get-service | foreach{
    If ($_.name –like “*$service*”){#filter the service based on the service name stored in d:\service.txt
    $Obj1 = New-Object -TypeName PSObject
    $Obj1 | Add-Member -MemberType NoteProperty -Name Service-Name -Value $_.name
    $Obj1 | Add-Member -MemberType NoteProperty -Name Service-Status -Value $_.status
    $output1+=$obj1}
    $output
    $output1
    I hope this helps.

  • Can't seem to get sort-object working in powershell widget

    I'm experiencing a bit of exasperation with the powershell widget in SCOM 2012 - go easy on me though, this is my first time posting and I'm a bit of a newbie with powershell.
    Because of the issues with the logical disk space performance widget and multiple disks (if you have 3 disks attached you get 9 results back) I've been trying to adapt a script somebody else wrote (http://blogs.technet.com/b/lukaszr/archive/2014/06/18/how-to-get-nice-logical-disk-state-view-using-powershell-grid-widget.aspx)
    as I want something slightly different.
    My objective is to list the 10 servers with lowest free GB space. The script I've been trying to adapt just lists all disks on all servers.
    Here is my modified version of the script
    $disklist = @()
    $disks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $disks)
    $query = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object Size, FreeSpace
    $size = $query.Size
    $free = $query.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $diskobject = $ScriptContext.CreateFromObject($disk, "Id=Id", $null)
    $diskobject["Server"] = $disk.Path
    $diskobject["Drive"] = $disk.Displayname
    $diskobject["FreeG"] = $freeGB
    $diskobject["FreeP"] = $pervalue
    $diskobject["FreeTotal"] = ($freeGB + " / " + $sizeGB)
    $disklist += $diskobject
    $GBdisklist = $disklist | Sort-Object -Property {[float]($_.FreeG)} | select -first 10
    foreach($thing in $GBdisklist) {
    $ScriptContext.ReturnCollection.Add($thing)
    My thinking was to put all the info into one big collection, then sort that by free disk space and select the top 10, then pipe those back into the scriptcontext collection for displaying. It's slightly unwieldy, granted, but works fine in standard powershell
    (after changing the scriptcontext bits), just not the widget!
    It all seems to work, and brings back data, except the data that comes back has clearly not been sorted before having the top 10 selected. It's as if the sort command is completely ignored. I've tried quite a few variations on the script sort/sort-object
    with or without -property in desperation as I seem to be so close, but yet so far.
    Any help would be appreciated!
    Pete.
    Incidentally, this is the script that works perfectly in standard powershell:
    $disklist = @()
    $disks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $disks)
    $query = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object Size, FreeSpace
    $size = $query.Size
    $free = $query.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $diskobject = New-Object System.Object
    $diskobject | Add-Member -MemberType NoteProperty -Name "Id" -Value $disk.ID
    $diskobject | Add-Member -MemberType NoteProperty -Name "Server" -Value $disk.Path
    $diskobject | Add-Member -MemberType NoteProperty -Name "Drive" -Value $disk.Displayname
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeP" -Value "$pervalue"
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeG" -Value $freeGB
    $diskobject | Add-Member -MemberType NoteProperty -Name "FreeTotal" -Value ($freeGB + " / " + $sizeGB)
    $disklist += $diskobject
    $GBdisklist = $disklist | Sort-Object -Property {[float]($_.FreeG)} | select -first 10
    $GBdisklist | ft

    After hacking the code around massively I've managed to solve the issue with it and made it a lot neater in the process. Still unsure what the issue was, but I think it helps to sort the output of the diskinfo first before starting with any of the info processing
    / scriptcontext adding
    $disklist = @()
    $rawdisks = Get-SCOMClass -Name "Microsoft.Windows.Server.LogicalDisk" | Get-SCOMClassInstance
    foreach ($disk in $rawdisks)
    $diskdetails = GET-WMIOBJECT –query "SELECT * from win32_logicaldisk where DeviceID = '$disk'" -ComputerName $disk.Path | Select-Object PSComputerName, DeviceID, FreeSpace, Size
    $disklist += $diskdetails
    $top10disks = $disklist | Sort-Object -Property FreeSpace | select -first 10
    foreach ($object in $top10disks) {
    $size = $object.Size
    $free = $object.FreeSpace
    $percent = $free / $size
    $pervalue = "{0:P0}" -f $percent
    $sizeGB = "{0:N1}" -f ($size / 1024 / 1024 / 1024)
    $freeGB = "{0:N1}" -f ($free / 1024 / 1024 / 1024)
    $dataObject = $ScriptContext.CreateInstance("xsd://foo!bar/baz")
    $dataObject["Id"] = (($object.PSComputerName).ToString() + ($object.DeviceID).ToString())
    $dataObject["Server"] = ($object.PSComputerName).ToString()
    $dataObject["Drive"] = $object.DeviceID
    #$dataObject["Free GB"] = ($freeGB).ToString("0000.00")
    $dataObject["Free GB"] = ($freeGB).ToString()
    $dataObject["FreeTotal"] = (($freeGB).ToString() + " / " + ($sizeGB).ToString())
    $ScriptContext.ReturnCollection.Add($dataObject)

  • I can get the last time a patch was applied. What I need is this info for ALL servers.

    Getting the last time a server was patched is a simple, single line of PowerShell:
         get-hotfix -computername seadcweb10 | sort InstalledOn | select -last 1
    What I need is to get a list of *all* the servers in Active Directory, and get this information for each.
    I've tried variations of foreach , but I get errors.
    foreach ( $p in Get-ADComputer -Filter 'OperatingSystem -like "Windows *Server*"' ) { get-hotfix -computername $p.Name | select -last 1 }
    Get-HotFix : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    At line:1 char:97
    + foreach ( $p in Get-ADComputer -Filter 'OperatingSystem -like "Windows *Server*"' ) { get-hotfix <<<<  -computername
    $p.Name | select -last 1 }
        + CategoryInfo          : NotSpecified: (:) [Get-HotFix], COMException
        + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.PowerShell.Commands.GetHotFixCommand
    What am I doing wrong?

    Hi
    The RPC server is unavailable
    This error  comes when any server is not pingable.
    Make sure you are able to ping to all server from the server you are running the script.
    Then give a try to below script :
    foreach ( $p in Get-ADComputer -Filter {OperatingSystem -like "Windows *Server*"})
    get-hotfix -computername $p.Name | select -last 1
    MCITP - Exchange 2010 | MCITP - Windows Server 2008 R2

  • Adding secondary ADFS server to farm fails with Could Not Load Assembly error

    Hi all,
    I have two servers running Server 2012 R2.
    There are two AD sites, in site 1, I have the primary ADFS server running on a member server.  In site 2 I have a secondary ADFS server running on the only DC in the site.  There will be WAP servers publishing these servers in either site.
    I successfully set up the first ADFS server in site 1, and this is working ok.  However, when I set up the server in site 2 I get the following error during the prerequisite checker:
    Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
    Unable to retrieve configuration from the primary server. Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Access is denied.
    I ran this as my domain admin account and also as domain\administrator which is seldom used.
    When I run the resulting PowerShell script, I get errors relating to the GSMA, so not sure if that is where my issue lies.  Here is the script:
    # Windows PowerShell script for AD FS Deployment
    Import-Module ADFS
    # Get the credential used for performaing installation/configuration of ADFS
    $installationCredential = Get-Credential -Message "Enter the credential for the account used to perform the configuration."
    Add-AdfsFarmNode `
    -CertificateThumbprint:"Thumbprint Here" `
    -Credential:$installationCredential `
    -GroupServiceAccountIdentifier:"DOMAIN\STSSvc`$" `
    -PrimaryComputerName:"machine.domain.net"
    I tried using the FQDN of the ADFS server as well as the common name of sts.domain.net, neither worked.
    Any suggestions?
    Andrew Hodgson

    Hi,
    Thanks for your post.
    According to the error message, it is more about permission issue.
    Please refer to this artile about how to resolve the error "Could not load file or assembly or one of its dependencies. Access is denied"
    http://blogs.msdn.com/b/sayanghosh/archive/2007/04/21/solution-to-could-not-load-file-or-assembly-or-one-of-its-dependencies-access-is-denied.aspx
    Regards.
    Vivian Wang

Maybe you are looking for

  • Error in Updating Billing Docs

    Hi Gurus, When i'm updating the some billing docts in VBOF,  the system thros the "No correction due to value change" error. Can u tell me what is the problem? cheers, Sumith

  • Jar file in Web Dynpro Java Application!

    Hi All: I needed a Jar file in my WDJ App. I am using SP16. Can someone provide ideas/instructions on how to do this? Thanks in Advance!

  • Updating the Customer & Material Tax Classification via LSMW only

    We need to update the Customer and Material Tax Classification via LSMW only, in such a way that on the updation of the Tax classifications the Customer Master and the Material Master should be updated automatically. Please let me know if anyone has

  • Interface file reading

    Hi Experts, I am doing an Interface. This should be executing daily one time. In this I am reading file from SAP Server, and uploading data. Now I got a problem if there is more then one file how can I red. The file naming is Date & time stamp. How c

  • Atomic disk writes using Java, is it possible??

    Hi, I need to do atomic disk writes using Java, is that supported/possible? And if, how is it done? With a atomic disk write I mean that if I write to a file all information should be written or none at all, not just some of the data. (In case of a p