Scripting Agent - Cannot find node xml

Hi all,
I am just learning about Scripting Agent, and in doing so I am having some difficulties.
Basically I want to set the default work hours for all new users to be different than microsoft default, and I think I have the scripting right, but the problem is that I cannot get any command to run at all when the Scripting Agent is enabled.  Even
if the command is not one that is listed in the xml.
I get the following error (note that this is not even the command listed below in the xml, but it does the same for any "set" or "enable" type cmdlet):
[PS] C:\Windows\system32>Set-MailboxCalendarConfiguration nicholasa
Provisioning layer initialization failed: '"Scripting Agent initialization failed: "Invalid configuration file C:\Program Files\Microsoft\Exchange Server\V14\Bin\CmdletExtensionAgents\ScriptingAgentConfig.xml: cannot find node xml.""'
    + CategoryInfo          : NotSpecified: (:) [], ProvisioningBrokerException
    + FullyQualifiedErrorId : C136A4D5
My xml is below. I have tried a bunch of other sample ones from online, and they all do the same, even when the cmdlet is not the one specified in the xml.:
<?xml version="1.0" encoding="utf-8" ?>
<Configuration version="1.0">
<Feature Name="MailboxProvisioning" Cmdlets="Enable-Mailbox">
<ApiCall Name="OnComplete">
if($succeeded) {
$mailbox = $provisioningHandler.UserSpecifiedParameters["Identity"]
Set-MailboxCalendarConfiguration -identity $mailbox -WorkingHoursStartTime 09:00 -WorkingHoursEndTime 16:30
</ApiCall>
</Feature>
</Configuration>

So - I just took your code into my lab SP2 Ru3
I changed to New-Mailbox as I'm not enabling existing accounts,   you can add another section.
When I changed to the Name parameter this works.
<?xml version="1.0" encoding="utf-8" ?>
<Configuration version="1.0">
<Feature Name="MailboxProvisioning" Cmdlets="New-Mailbox">
<ApiCall Name="OnComplete">
if($succeeded) {
$mailbox = $provisioningHandler.UserSpecifiedParameters["Name"]
Set-MailboxCalendarConfiguration -identity $mailbox -WorkingHoursStartTime 09:00 -WorkingHoursEndTime 16:30
</ApiCall>
</Feature>
</Configuration>
Cheers,
Rhoderick
Microsoft Senior Exchange PFE
Blog:
http://blogs.technet.com/rmilne 
Twitter:   LinkedIn:
  Facebook:
  XING:
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

Similar Messages

  • Cannot find user_lpd.xml

    Recently purchased a new Twist.  My event viewer log is full with the following message, see below.  This file does not exist on my PC, what is it related to.  What would recreate it?
    (GetUserLpd()): Cannot find user_lpd.xml, check if Lenovo Settings is installed: C:\Users\Albert Franz\AppData\Local\Packages\LenovoCorporation.LenovoSettings_4642shxvsv8s2\LocalState\user_lpd.xml

    It seems as though your lenovo settings metro app is'nt installed :/ I beleive you can get it from the microsoft store.
    Hope this helps

  • "Adobe CFC Generator" error "cannot find ide_config.xml file"

    Hi there
    Yesterday I downloaded a CF Builder 2 Trial. I install in my machine I am running CF 9.01 Dev version.
    When I try install "Adobe CFC Generator" extension "cannot find ide_config.xml file"
    I try to find some fix. but I can't.
    Some Ideas thank you!!

    With ColdFusion Builder 2, CFC Generator was intended to be removed.However mistakenly, CFC Generator was removed only partially.
    If you want to use:
    Plesae download it from: http://adobecfcgenerator.riaforge.org/
    Or If you have ColdFusion  Builder 1 or ColdFusion  Builder 2 Beta installation:
    You can take it from <ColdFusion Builder 1 or ColdFusion Builder 2 Beta Install Dir>\extensions      and deploy it to your server instead of using the incorrectl installed CFC Generator.
    Thanks,
    Krishna

  • DNG SDK build project cannot find the xml sdk

    On win7/x64.  Installed dng sdk and all dependencies per the readme files.  xml sdk built OK with vc10 express, as 64 bit static and dll.
    But the vc solution for dng_validate has incorrect names for the xml sdk build projects, so it cannot find those components.  Specifically it looks for "..\..\..\xmp_sdk\build\vc\XMPCore.vcxproj".  the actual paths in the xmp sdk are different and longer, like "..\..\..\xmp_sdk\build\vc10\dynamic\windows_x64".  Moreover there is no XMPCore.vcxproj there.
    I suppose the real problem may be that the dng sdk project is trying to build it as .net managed code, while the xml sdk was built as open code.  So I guess what I am looking for is a way to build the dng sdk open.

    I would confirm your post, but I have not found a solution. I wish someone at Adobe would look into this.

  • "cannot find build.xml"

    Hi there,
    I follow the instructions under :
    http://java.sun.com/docs/books/tutorial/uiswing/learn/creatinggui.html
    yet first I wanted to compile/run my celsius prog under the Ide with actually no code in it but the empty jframe.
    This was the error message:
    C:\Documents and Settings\???&#153;?&#158;?&#153;\CelsiusConverterProject\build.xml:7: Cannot find nbproject/build-impl.xml imported from C:\Documents and Settings\???&#153;?&#158;?&#153;\CelsiusConverterProject\build.xml
    thank a lot to whom that will help me,
    Simon

    OK. Found.
    The "full path name" of my project includes hebrew characters..
    I mooved it to D:\ and it worked out...
    Message was edited by:
    Shimmy

  • IWeb won't open-cannot find "index.xml" file

    I've been having kernel panics lately and ran off my hard drive to another Mac (iMac) -not using migration assistant-and upon returning back to my main computer (MacBook Pro) and after diligently saving my Domain file, iWeb won't open because it cannot find the "index.xml". I have the site up on my idisk and when I open up the package in Domain, there's plenty in there. How do I get back to where I was-an iWeb site that I can manipulate.
    Any way I can get what I do still have to work? Or do I have to make my site from scratch again even though I have loads of files all over the place and only this one missing?
    I think Apple needs to tell us "how" and "what" to save when we need to vacate a computer because of kernel panics and the like-wouldn't you say? I ALWAYS suffer from something missing when I have to put the OS back on the computer from scratch-not to mention hours of wasted time downloading updates again and having to find keycodes and various application discs!
    MacBook Pro 2.16mhz Core 2 Duo 120gb hd 3gb ram   Mac OS X (10.4.9)   </span

    Welcome to the discussions, RPashman.
    I got this message before when I was editing multiple Domain.sites. I believe it happened when I tried to Publish when the Domain was not in the iWeb folder. During the Publish, it places a Domain file in the iWeb folder (maybe because it has to publish from there even though the actual file is elsewhere??) and if anything goes wrong, iWeb when it next opens will default to that improperly created Domain.sites file.
    Check in the iWeb directory (Library/Application Support/iWeb/Domain.sites
    ) and see how large the Domain.sites file is. If it's something under a meg, then maybe this is what happened to you. Move it out of that directory (I held mine just in case) then relaunch iWeb. Since there's not a Domain.sites file there anymore, it should ask if you want to create one or open an existing one.
    Not sure if this happened to you, but it's possible. It happened to this user as well.
    http://discussions.apple.com/thread.jspa?messageID=4178327&#4178327

  • Cannot find opmn.xml

    Hi
    I installed Development suite (Forms Builder [32 Bit] Version 10.1.2.0.2 (Production) ) and DB (10GR2) in same machine (XP)
    Issue is I can't find the opmn.xml on both paths. In Dev suite path cannot find the opmn folder as well. But in DB path opmn folder is there but no the xml
    Any particular reason?
    Cheers
    Shabar

    shabar wrote:
    I installed Development suite (Forms Builder [32 Bit] Version 10.1.2.0.2 (Production) ) and DB (10GR2) in same machine (XP)
    Issue is I can't find the opmn.xml on both paths. In Dev suite path cannot find the opmn folder as well. But in DB path opmn folder is there but no the xmlOPMN is primarily to manage the application server. Useful for all versions of application server (pre-WebLogic Server) EXCEPT standalone OC4J. (Although the N part of OPMN is used in ONS ...)
    For Dev Suite, there really is no need for the OPMN. The OC4J is primarily there to catch forms/reports requests and route them to the forms/reports servers (which are/were written in C, not Java). In dev, you can go straight to those servers.
    For database, the only OC4J is for the DB Control. That is pretty much hardwired and standalone. So again no need for opmnctl.
    I would not expect to find opmn directory nor useable opmnctl anywhere in dev or database.
    I suspect what you want is a full Oracle Application Server 10.1.2.0.2 install.

  • In the newest version of Firefox I am trying to enable java script and cannot find "Tools" to go to "Options" to go to "Web Features." What can I do to activate javascripts for facebook etc. ?

    Cannot find the place to enable java scripts

    Your issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

  • Cannot find BICAdapterMetadata.xml file

    Hi,
       We just deployed the BICAdater. But we are not able to find the BICAdapterMetadata.xml file to deploy. Can someone please tell me where i can find that file
    Regards,
    Anil

    Anil,
    Please see this document where Prasad have mentioned on how to deploy this:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e2aeb02c-0601-0010-d680-c9be61ffa390
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6dc02f5d-0601-0010-cd9d-f4ff9a7e8c33
    ---Satish

  • Error while using custom xslt: Cannot find the script or external object that implements prefix 'ScriptNS0'.

    Hi,
    We had a complex map. Because of some requirement, we used custom xslt on this map. Somehow at runtime that custom xslt is giving below error:
    Cannot find the script or external object that implements prefix 'ScriptNS0'.
    I checked below links, it seems this is a bug in Biztalk 2010/Visual stuio 2010.
    http://sandroaspbiztalkblog.wordpress.com/2012/07/29/biztalk-mapper-patterns-calling-an-external-assembly-from-custom-xslt-in-biztalk-server-2010/
    The above link suggest to add a xml element in the .btm file. I tried that as well but no luck. Can anyone suggest me reason and solution for this?
    Thanks, Girish R. Patil.

    When using the Custom XSLT option, you have to maintain the Extension Xml yourself, just as you would for inline custom Xslt that calls external Assemblies.
    Docs:
    http://msdn.microsoft.com/en-us/library/aa547368.aspx
    Sample:
    http://blog.vertica.dk/2013/03/20/using-custom-xslt-in-biztalk/

  • Get-Item: Cannot find path ' ' because it does not exist. While running Powershell script.

    I am trying to run a PowerShell script to upload files into a SharePoint site in an Azure environment...the script works fine on my local machine, but every time I run it in Azure (remotely), I get errors. Here is what my simple script looks like...
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
    Write-Host "Loading Sharepoint Module "
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
    Add-PSSnapin -Name Microsoft.SharePoint.PowerShell
    if ( (Get-PSSnapin -Name Microsoft.SharePoint.PowerShell) -eq $null )
    Write-Host "Failed to load sharepoint snap-in. Could not proceed further, Aborting ..."
    Exit
    #Script settings
    $webUrl = "http://sampleWebUrl"
    $docLibraryName = "My Documents"
    $docLibraryUrlName = "My%20Documents"
    $localFolderPath = get-childitem "C:\Upload\Test Upload\My Documents\" -recurse
    $contentType = "ContenttType1"
    #Open web and library
    $web = Get-SPWeb $webUrl
    write-host "Web:" $web
    $docLibrary = $web.Lists[$docLibraryName]
    write-host "docLibrary:" $docLibrary
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    write-host "files:" $files
    If ($contentType = "ContenttType1")
    #Open file
    $fileStream = ([System.IO.FileInfo] (Get-Item $file.FullName)).OpenRead()
    # Gather the file name
    $FileName = $File.Name
    #remove file extension
    $NewName = [IO.Path]::GetFileNameWithoutExtension($FileName)
    #split the file name by the "-" character
    $FileNameArray = $NewName.split("_")
    $check = $FileNameArray.Length
    #Add file
    $folder = $web.getfolder($docLibrary.rootFolder.URL)
    write-host "Copying file " $file.Name " to " $folder.ServerRelativeUrl "..."
    $spFile = $folder.Files.Add($folder.Url + "/" + $file.Name, [System.IO.Stream]$fileStream, $true)
    $spItem = $spFile.Item
    write-host "Success"
    write-host "SP File:" $spFile
    write-host "SP Item" $spItem
    #populate columns
    $spItem["Column1"] = $FileNameArray[0]
    $spItem["Column2"] = $FileNameArray[1]
    $spItem.Update()
    $fileStream.Close();
    Again, I can run this on my local machine and it works just fine, but when I attempt to run it on the Azure environment I get this error...
    Get-Item : Cannot find path 'C:\powershellscripts\12653_B7045.PDF' because it does not exist.
    At C:\PowerShellScripts\Upload-FilesIntoSharePointTester.ps1:32 char:42
    +     $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    +                                          ~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ObjectNotFound: (C:\powershellscripts\12653_B7045.PDF:String) [Get-Item], ItemNotFoundException
        + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
    What strikes me first is the fact that the file its looking for is in the "C:\Upload\Test Upload\My Documents\" directory, but the error keeps saying "C:\powershellscripts\" which is where my script resides and not the files I want to
    upload into SharePoint. When I step through the code, all the variables are holding the correct values. The $localFolderPath shows the name of files that I am attempting to upload, so it recognizes them. But once I step through this particular line of code,
    the error occurs...
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()
    Is this an error caused because I am remoting into the Azure environment? Has anyone dealt with this issue before? I would really appreciate the help. Thanks
    Update: quick thing I noticed is that these two lines of code are returning null values. Again, is this handled differently in Azure or remotely? I ask cause this is the way I know how to do this, locally.
    $docLibrary = $web.Lists[$docLibraryName]
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles()

    "...square brackets are wildcard characters in Windows PowerShell..."
    When you use cd without a parameter it uses the -Path parameter. In this case you'll have to escape the square brackets so they are not considered wildcards. Each of the commands in the first example does the exact same thing.
    cd 'Learn PowerShell `[Do Whatever`]'
    cd -Path 'Learn PowerShell `[Do Whatever`]'
    cd (or Set-Location) also has a literal path parameter (-LiteralPath) that does not require using an escape character (`) before each of the brackets. Hope this helps.
    cd -LiteralPath 'Learn PowerShell [Do Whatever]'

  • The operation failed because of a protection agent failure. (ID 998 Details: The system cannot find the path specified (0x80070003))

    Hello,
    We are getting the following error when trying to backup our fileserver (DPM 2012 R2) to tape.
    "The operation failed because of a protection agent failure. (ID 998 Details: The system cannot find the path specified (0x80070003))"
    What is interesting:
    - The "Short-Term Protection" to disk runs successfully without error
    - The "Long-Term Protection" to tape fails after writing ~2TB of data to a TL2000 tape loader. (Always appears to fail towards end of job with the above error)
    - In the past (until roughly a month ago) the tape portion of this job was completing successfully.
    The DPM logs fail to give much information around the time of error regarding any failures. Likewise windows event logs give no hint of a problem when the job fails.
    Looking for any ideas that may help resolve this.
    Cheers!

    Hi
    Has it just started happening? What rollup version are you on currently?

  • Cannot find the file MsDtsSrvr.ini.xml

    My SSIS 2008 book says that - 
    The MSDTSServer100 service is configured through an XML file that is located by default in the following path: C:\Program Files\Microsoft SQL Server\100\DTS\Binn\MsDtsSrvr.ini.xml. 
    I cannot find this file in the given folder. But, I did find a MsDtsSrvrUtil.dll file which is of no use to me. 
    The book also says that if you cannot find the path, go to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\100\SSIS\ServiceConfigFile registry key in the Registry. By default, the XML file should look like the following: 
    < ?xml version=”1.0” encoding=”utf-8” ? >
    < DtsServiceConfiguration xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” >
    < StopExecutingPackagesOnShutdown > true < /StopExecutingPackagesOnShutdown >
    < TopLevelFolders >
    < Folder xsi:type=”SqlServerFolder” >
    < Name > MSDB < /Name >
    < ServerName > . < /ServerName >
    < /Folder >
    < Folder xsi:type=”FileSystemFolder” >
    < Name > File System < /Name >
    < StorePath > ..\Packages < /StorePath >
    < /Folder >
    < /TopLevelFolders >
    < /DtsServiceConfiguration >
    But, I don't see this either inside regedit. All i see is a blank "thing" (photo attached). What is happening and how do I complete these steps ? 

    Hello,
    Are you sure you have SSIS installed on your machine? Please check it with Windows Service Manager (services.msc) if you have an entry like "SQL Server Integration Services 10.0"
    BTW, the blank "\SSIS\ServiceConfigFile" registry key exists also on machines, where only the client tools are installed, but not SSIS itself.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]
    Thanks for your answer. This is very embarrassing, I did find the xml file there. But, what is the difference between SSIS and SSIS client tools ?

  • Remote Execution of a script with Get-Child Item cannot find path

    Hello!
    I have been tackling this problem for a few days now and I just can't find the answer.
    I want to execute scripts remotely in parallel so that each of remote machine will run the script with their own resources.
    Below is just the simple script in the local machine server1
    $Folder = \\server1\folder\subfolder
    GCI $folder
    It works fine it I call that through my client with this I am using in my client
    invoke-command -computername server -scriptblock {powershell.exe C:\filepath\script.ps1}
    But if I change the script inside to look at another machine server 2 and do
    $folder = \\server2\folder\subfolder
    It generates an error that it cannot find that path when trying to call GCI remotely. Note that it still works if the script is run locally.
    I did some research and I see about the double-hop using credssp but I just can't get it to work.
    Any help would be appreciated.

    Each system that you're remoting into (or calling Invoke-Command against) will need to have the WSManCredSSP server role enabled. You can do this through group policy, or you can do it on a per-machine basis. Here's what you would run on a computer if you
    want to only enable it on certain computers (you should be able to run this remotely):
    Enable-WSManCredSSP -Role Server
    The system that you're running everything from will be the CredSSP client. You'll need to run this from it:
    Enable-WSManCredSSP -Role Client -DelegateComputer *.yourdomain.com
    You'll need to change the 'yourdomain.com' to your domain name (or, you could simply put a * for the delegate computer, just be aware that this will allow your computer to pass credentials along to any computer when you tell a cmdlet to use CredSSP authentication).
    Now, to use Invoke-Command, do this:
    $cred = Get-Credential
    Invoke-Command -computername server.yourdomain.com -scriptblock {"Commands go here"} -Authentication CredSSP -Credential $cred
    Notice that the -ComputerName parameter is using a fully qualified domain name. If your -DelegateComputer parameter above used a domain name, you'll have to have the FQDN here.
    Let me know if that works for you. If you want more information, you can check out the Enable-WSManCredSSP and Disable-WSManCredSSP help topics.
    Hi Rohn,
    I tried doing your instruction but it gives me this error
    Connecting to remote server failed with the following error message : The WinRM client cannot process the request because the server name cannot be resolved. For more information, see the about_Remote_Troubleshooting Help topic.
    After enabling the client and server with the wsmancredssp
    Here is the command I executed that produced the error
    invoke-command -computername server01.domain01 -scriptblock {get-process} -authentication credssp -credential $cred.
    Thank you very much for all the help.

  • RoboHelp 10 Compile Error: Cannot find xml definition file Template Error

    Does anyone know how to resolve this error? I'm exhausted googling.
    I generated Webhelp and got the error below. When I View the Help, nothing displays; IE browser does not open the Help.
    Initializing compiler...
    Generating WebHelp 5.50 (10.0.0.287)...
    Error: Cannot find xml definition file C:\Program Files (x86)\Adobe\Adobe RoboHelp 10\RoboHTML\webhelp5Ext\template_skin\webhelp5skin.xml.
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.navpane.dhtml
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.navpane.list
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.toolbar
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.pane.minibar
    Template Error: can not resolve macro: WT_DS_TOC_ICON_PAGE_REMOTE
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.topic
    Template Error: can not resolve macro: WEBHELP_TEMPLATE.frame
    Processing TOC data...
    Processing Glossary data...
    Processing Context-sensitive-Help data...
    Updating HTML topics...
    Finished updating HTML topics in 5 sec(s) : total 431 topic(s).
    Processing Full-text-search data...
    Finished processing Full-Text-Search data in 41 sec(s)
    Applying WebHelp 5.50 Template...
    ..........................Template Error: can not resolve macro: WT_DS_SEARCHFORM_GO in C:\FuelsManager Primus\Web Application\Projects\FMHelp\Cirrus\whfform.htm
    Error: Fail to update Template file whskin_frmset010.htm
    Error: Fail to update Template file whskin_frmset01.htm
    Error: Fail to update Template file whskin_frmset0.htm
    Finished applying Template in 10 sec(s)
    Finished compiling WebHelp in 107 sec(s)
    Compilation complete.

    Why Robo 8 would remove RH10 files is beyond me.
    A reinstall of RH is sure to fix it. But if you PM me your email
    address, I can send you a copy of the file (might save you a reinstall).
    Kind regards,
    Willam

Maybe you are looking for

  • Flash player 12.0.0.77 keeps on crashing every 2 minutes

    Flash player 12.0.0.77 keeps on crashing on every browser I have ( Opera, Chrome, Firefox) every 2 minutes when you are watching video or loading something flash based. It has gotten worse because it crashes almost instantly and I did try to reinstal

  • Program not installed properly???

    When opening QT 6.5.2 with win 98 i get...QTstreaming authoring failed to load because version of Qtstreaming and QT authoring do not match. I click ok, then get "QTstreaming extras failed to load because the versions of Qtstreaming and QT streaming

  • How to write/insert lines in a file from top

    I am opening a writing to a file as follows: (part of the code which does so) FileOutputStream file; // declare a file output object PrintStream r; file = new FileOutputStream("filename") + ".properties",true); r = new PrintStream( raj); r.println (

  • 2007 MBP LED Banding Issue

    Short backstory: My mac was working fine, except when I would open the lid to wake it from sleep it would turn on the display, but not the backlight. Sometimes the backlight would take 5 seconds to turn on, sometimes it would take upwards of a whole

  • Not to allow material movements with qty in decimals

    Hi All, A material X is having the Basic UoM as PC(piece) and alternate Uoms as kg & EA . conversion factor is : 1 PC=1EA  &  1PC=1 kg I want to restrict the system from allowing the Goods Receipt / Goods Issue in decimals. eg: 0.6 PC Also, in produc