Error using Powershell inside a Workflow

Hello,
I have the following scenario: I want to change the Status of every Incident that is created to "Neu". This is a custom Status we created. So my first tought was to use the Authoring Tool with a Workflow. I created a Workflow wich will trigger
whenever a Incident is created (simple) and then I used the Windows PowerShell Script Activity, with the following code:
My First Question Is, I need the ID of the Incident, so I create a new Script Property and as a Value I select
Use a class property -> Incident -> ID, is this way correct?
Then I insert this value in my Code via $id = "$IncidentID";, there is also my question is that correct?
I have tested the Code, it works. If I insert a Incident ID manually it changes the status.
So after I created the Workflow, I saved the MP and copied the .dll to my SM Folder and importet my MP. But if create a new Incident the Status is "Active" and it says the Workflow failed. I looked into the log and found an Error Message, after
some research I found a solution that said I had to modify my MonitoringHost.exe.config
(the error Message had something to with a PowerShell Module/Assembly missing) so I added the follwoing lines:
<dependentAssembly>
<assemblyIdentity name="Microsoft.EnterpriseManagement.Moduls.PowerShell" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="6.0.4900.0" newVersion="7.0.5000.0" />
But now I get the following Message:
Can somebody help me?

I made a mistake while editing the xml.

Similar Messages

  • Promote a 2012 DC using PowerShell 3.0 workflow hangs on Install-ADDSForest

    Hi,
    seeing the value in PowerShell 3.0 workflow for machine / classroom installation I am trying to automate the entire installation of a SharePoint 2013 machine. First steps include making the server a domain controller.
    To promote the domain controller  I make use of the ADDSDeployment module / Install-ADDSForest command. When used in a normal, non-workflow, PowerShell session the command works just fine. However, when running this command in a workflow that continues
    after a reboot the command seems to hang. I also found that debugging a workflow, well, is rather difficult :)
    First, my sample script configures the computer name. Next it reboots. The workflow will be continueing with the installion of the AD-Domain-Services feature. Right after that I call Install-ADDSForest. You can find the full script below.
    For getting the workflow to auto-continue after the reboot I have used two approaches. I have tried to use the RunOnce registry key to fire up PowerShell. This would be my preferred approach as you can see the PowerShell window running before the Explorer
    shell loads. The second approach involves the scheduled task trigger as described on Technet in the PowerShell workflow section. Either way, the promotion command is stuck. I have left it running overnight, after which the workflow still wasn't done.
    Here's my awesomeness:
    workflow Install-Wingtip {
    InlineScript {
    $Computer = Get-WmiObject Win32_ComputerSystem
    $Computer.Rename("WingtipDC") | Out-Null
    #Get ready for reboot
    #Either use the RunOnce key combined with auto-login
    #Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\RunOnce" `-Name "ConfigureServer" -Value "powershell -executionPolicy Unrestricted -Command Import-Module PSWorkflow; Get-Job | Resume-Job -Wait; Get-Job | Wait-Job"
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "DefaultUserName" -Value "Administrator"
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "DefaultPassword" -Value "pass@word1"
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "AutoAdminLogon" -Value "1"
    #Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" -Name "AutoLogonCount" -Value "1"
    # Or use a -AtStartup trigger
    $Trigger = New-ScheduledTaskTrigger -AtStartup
    Register-ScheduledJob -Name ResumeWorkflow -Trigger $Trigger -ScriptBlock { Import-Module PSWorkflow; Get-Job -State Suspended | Resume-Job }
    Restart-Computer -Wait
    InlineScript {
    Import-Module ServerManager
    Install-WindowsFeature AD-Domain-Services
    InlineScript {
    Import-Module ADDSDeployment
    Install-ADDSForest `
    -DomainName "Wingtip.com" `
    -DomainNetbiosName "Wingtip" `
    -SafeModeAdministratorPassword (ConvertTo-SecureString -String "pass@word1" -AsPlainText -Force) `
    -NoDnsOnNetwork `
    -InstallDns `
    -DomainMode Win2008R2 `
    -ForestMode Win2008R2 `
    -NoRebootOnCompletion `
    -Confirm:$false
    Write-Output -InputObject "Done creating domain controller"
    Perhaps anyone has tried something similar? I cannot be the only one looking at promoting a DC through workflow I guess!
    Thanks,
    Wouter

    Hi Diana,
    during the setup there is no dcpromo.log present in the folder you mention. I have a dcpromoui.log and a dfsr000001.log as well as a netsetup.log. Fun stuff, if I read the dcpromoui.log correctly it should have created a domain controller and a new forest.
    However, my machine is still member of a workgroup after reboot, so it isn't in the state you'd expect.
    DCPROMOUI LOG
    dcpromoui 3A0.9F0 0196 23:41:22.366         Enter CheckDomainDnsNormalization Wingtip.com
    dcpromoui 3A0.9F0 0197 23:41:22.366           Enter ValidateDnsNameNormalization Wingtip.com
    dcpromoui 3A0.9F0 0198 23:41:22.366             The canonical form is wingtip.com.
    dcpromoui 3A0.9F0 0199 23:41:22.366             result = true
    dcpromoui 3A0.9F0 019A 23:41:22.366         Enter State::SetNewDomainDNSName Wingtip.com
    dcpromoui 3A0.9F0 019B 23:41:22.366       performed state 9, next state 18
    dcpromoui 3A0.9F0 019C 23:41:22.366       Enter NetbiosNameFunct
    dcpromoui 3A0.9F0 019D 23:41:22.366         Enter GetAnswerFileOption DomainNetbiosName
    dcpromoui 3A0.9F0 019E 23:41:22.366           Enter AnswerFile::GetOption DomainNetbiosName
    dcpromoui 3A0.9F0 019F 23:41:22.366             using value from cmdline
    dcpromoui 3A0.9F0 01A0 23:41:22.366             Wingtip
    dcpromoui 3A0.9F0 01A1 23:41:22.366         Enter NetbiosNameFunctInternal
    dcpromoui 3A0.9F0 01A2 23:41:22.366           Enter ValidateDomainNetbiosName Wingtip
    dcpromoui 3A0.9F0 01A3 23:41:22.366             Enter Dns::HostnameToNetbiosName Wingtip
    dcpromoui 3A0.9F0 01A4 23:41:22.366               WINGTIP
    dcpromoui 3A0.9F0 01A5 23:41:22.366             Enter ValidateNetbiosDomainName WINGTIP
    dcpromoui 3A0.9F0 01A6 23:41:22.366               Enter NetbiosValidationHelper
    dcpromoui 3A0.9F0 01A7 23:41:22.366                 Calling NetpwNameValidate
    dcpromoui 3A0.9F0 01A8 23:41:22.366                 valid name
    dcpromoui 3A0.9F0 01A9 23:41:22.366             Enter MyNetValidateName
    dcpromoui 3A0.9F0 01AA 23:41:22.366               Calling NetValidateName
    dcpromoui 3A0.9F0 01AB 23:41:22.366               lpServer   : (null)
    dcpromoui 3A0.9F0 01AC 23:41:22.366               lpName     : Wingtip
    dcpromoui 3A0.9F0 01AD 23:41:22.366               lpAccount  : (null)
    dcpromoui 3A0.9F0 01AE 23:41:22.366               lpPassword : (null)
    dcpromoui 3A0.9F0 01AF 23:41:22.366               NameType   : NetSetupNonExistentDomain
    dcpromoui 3A0.9F0 01B0 23:41:22.366               Using the same thread : true
    dcpromoui 3A0.9F0 01B1 23:41:27.788               HRESULT = 0x00000000
    dcpromoui 3A0.9F0 01B2 23:41:27.788           ValidateDomainNetbiosName returned 0
    dcpromoui 3A0.9F0 01B3 23:41:27.788           Enter State::SetNewDomainNetbiosName Wingtip
    dcpromoui 3A0.9F0 01B4 23:41:27.788           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01B5 23:41:27.788       performed state 18, next state 19
    dcpromoui 3A0.9F0 01B6 23:41:27.788       Enter ForestFunctionalLevelFunct
    dcpromoui 3A0.9F0 01B7 23:41:27.788         Enter GetAnswerFileOption ForestLevel
    dcpromoui 3A0.9F0 01B8 23:41:27.788           Enter AnswerFile::GetOption ForestLevel
    dcpromoui 3A0.9F0 01B9 23:41:27.788             using value from cmdline
    dcpromoui 3A0.9F0 01BA 23:41:27.788             4
    dcpromoui 3A0.9F0 01BB 23:41:27.788         Enter State::SetForestFunctionalLevel
    dcpromoui 3A0.9F0 01BC 23:41:27.788           forest functional level: 4
    dcpromoui 3A0.9F0 01BD 23:41:27.788       performed state 19, next state 20
    dcpromoui 3A0.9F0 01BE 23:41:27.788       Enter DomainFunctionalLevelFunct
    dcpromoui 3A0.9F0 01BF 23:41:27.788         Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01C0 23:41:27.788         Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01C1 23:41:27.788         Enter State::GetForestFunctionalLevel
    dcpromoui 3A0.9F0 01C2 23:41:27.788           forest functional level: 4
    dcpromoui 3A0.9F0 01C3 23:41:27.788         Enter GetAnswerFileOption DomainLevel
    dcpromoui 3A0.9F0 01C4 23:41:27.788           Enter AnswerFile::GetOption DomainLevel
    dcpromoui 3A0.9F0 01C5 23:41:27.788             using value from cmdline
    dcpromoui 3A0.9F0 01C6 23:41:27.788             4
    dcpromoui 3A0.9F0 01C7 23:41:27.788         Enter State::SetDomainFunctionalLevel
    dcpromoui 3A0.9F0 01C8 23:41:27.788           domain functional level: 4
    dcpromoui 3A0.9F0 01C9 23:41:27.788       performed state 20, next state 14
    dcpromoui 3A0.9F0 01CA 23:41:27.788       Enter SiteSelectionFunct
    dcpromoui 3A0.9F0 01CB 23:41:27.788         Enter GetAnswerFileOption SiteName
    dcpromoui 3A0.9F0 01CC 23:41:27.788           Enter AnswerFile::GetOption SiteName
    dcpromoui 3A0.9F0 01CD 23:41:27.788            
    dcpromoui 3A0.9F0 01CE 23:41:27.788         Enter SiteSelectionFunctInternal
    dcpromoui 3A0.9F0 01CF 23:41:27.788           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01D0 23:41:27.788           Enter ValidateSiteName
    dcpromoui 3A0.9F0 01D1 23:41:27.788             Enter DoLabelValidation
    dcpromoui 3A0.9F0 01D2 23:41:27.788               Enter Dns::ValidateDnsLabelSyntax Default-First-Site-Name
    dcpromoui 3A0.9F0 01D3 23:41:27.788                 Enter DoDnsValidation s: Default-First-Site-Name, max len unicode: 63, max len utf8: 63
    dcpromoui 3A0.9F0 01D4 23:41:27.788                   name is 23 utf-8 bytes
    dcpromoui 3A0.9F0 01D5 23:41:27.788                   Enter MyDnsValidateName Default-First-Site-Name
    dcpromoui 3A0.9F0 01D6 23:41:27.788                     Calling DnsValidateName
    dcpromoui 3A0.9F0 01D7 23:41:27.788                     pszName : Default-First-Site-Name
    dcpromoui 3A0.9F0 01D8 23:41:27.788                     Format  : 3
    dcpromoui 3A0.9F0 01D9 23:41:27.788                     status 0x0
    dcpromoui 3A0.9F0 01DA 23:41:27.788                     ERROR_SUCCESS
    dcpromoui 3A0.9F0 01DB 23:41:27.788             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01DC 23:41:27.788           Enter State::SetSiteName Default-First-Site-Name
    dcpromoui 3A0.9F0 01DD 23:41:27.788       performed state 14, next state 15
    dcpromoui 3A0.9F0 01DE 23:41:27.788       Enter AdditionalDcRolesFunct
    dcpromoui 3A0.9F0 01DF 23:41:27.788         Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01E0 23:41:27.788         Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 01E1 23:41:27.788         Enter State::GetInstallDnsUserOption
    dcpromoui 3A0.9F0 01E2 23:41:27.788           Enter GetAnswerFileOption InstallDNS
    dcpromoui 3A0.9F0 01E3 23:41:27.788             Enter AnswerFile::GetOption InstallDNS
    dcpromoui 3A0.9F0 01E4 23:41:27.788              
    dcpromoui 3A0.9F0 01E5 23:41:27.788           Enter GetAnswerFileOption AutoConfigDNS
    dcpromoui 3A0.9F0 01E6 23:41:27.788             Enter AnswerFile::GetOption AutoConfigDNS
    dcpromoui 3A0.9F0 01E7 23:41:27.788              
    dcpromoui 3A0.9F0 01E8 23:41:27.788         Enter AdditionalDcRolesFunctCheckDnsConfig
    dcpromoui 3A0.9F0 01E9 23:41:27.788           Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 01EA 23:41:27.788           Enter State::IsDNSOnNetwork false
    dcpromoui 3A0.9F0 01EB 23:41:27.788           Enter GetDefaultChoiceForDnsInstallation
    dcpromoui 3A0.9F0 01EC 23:41:27.788             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01ED 23:41:27.788             Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 01EE 23:41:27.788             Enter Dns::IsServiceInstalled
    dcpromoui 3A0.9F0 01EF 23:41:27.788               Enter NTService::IsInstalled dns
    dcpromoui 3A0.9F0 01F0 23:41:27.788                 Enter MyOpenService
    dcpromoui 3A0.9F0 01F1 23:41:27.788                   Enter Win::OpenSCManager
    dcpromoui 3A0.9F0 01F2 23:41:27.788                   Enter Win::OpenService dns
    dcpromoui 3A0.9F0 01F3 23:41:27.788                   HRESULT = 0x80070424
    dcpromoui 3A0.9F0 01F4 23:41:27.788               service is not installed.
    dcpromoui 3A0.9F0 01F5 23:41:27.788             Enter State::SetDnsServerAlreadyInstalled
    dcpromoui 3A0.9F0 01F6 23:41:27.788               b = false
    dcpromoui 3A0.9F0 01F7 23:41:27.788             Enter State::IsDnsServerAlreadyInstalled
    dcpromoui 3A0.9F0 01F8 23:41:27.788               bDnsServerAlreadyInstalled = false
    dcpromoui 3A0.9F0 01F9 23:41:27.788           Enter State::SetAutoConfigureDNS true
    dcpromoui 3A0.9F0 01FA 23:41:27.788           Enter TxtCheckCreateDnsDelegationOptions
    dcpromoui 3A0.9F0 01FB 23:41:27.788             Enter State::GetDnsDelegationUserOption
    dcpromoui 3A0.9F0 01FC 23:41:27.788               Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 01FD 23:41:27.788               Enter GetAnswerFileOption CreateDNSDelegation
    dcpromoui 3A0.9F0 01FE 23:41:27.788                 Enter AnswerFile::GetOption CreateDNSDelegation
    dcpromoui 3A0.9F0 01FF 23:41:27.788                  
    dcpromoui 3A0.9F0 0200 23:41:27.788             Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 0201 23:41:27.788             bResult = true
    dcpromoui 3A0.9F0 0202 23:41:27.788           Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 0203 23:41:27.788           Do install DNS server
    dcpromoui 3A0.9F0 0204 23:41:27.788         Enter GetAnswerFileOption ConfirmGc
    dcpromoui 3A0.9F0 0205 23:41:27.788           Enter AnswerFile::GetOption ConfirmGc
    dcpromoui 3A0.9F0 0206 23:41:27.788            
    dcpromoui 3A0.9F0 0207 23:41:27.788         Enter State::SetGlobalCatalogOption true
    dcpromoui 3A0.9F0 0208 23:41:27.788         Enter State::GetGlobalCatalogOption true
    dcpromoui 3A0.9F0 0209 23:41:27.788         This DC will be a GC
    dcpromoui 3A0.9F0 020A 23:41:27.788         Enter GetAnswerFileOption ReplicaOrNewDomain
    dcpromoui 3A0.9F0 020B 23:41:27.788           Enter AnswerFile::GetOption ReplicaOrNewDomain
    dcpromoui 3A0.9F0 020C 23:41:27.788             using value from cmdline
    dcpromoui 3A0.9F0 020D 23:41:27.788             Domain
    dcpromoui 3A0.9F0 020E 23:41:27.788         Enter State::IsReadOnlyReplica false
    dcpromoui 3A0.9F0 020F 23:41:27.788         Enter TxtCheckConflictingDcAccount
    dcpromoui 3A0.9F0 0210 23:41:27.788           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0211 23:41:27.788           Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 0212 23:41:27.788           bResult = true
    dcpromoui 3A0.9F0 0213 23:41:27.788         Enter TxtCheckRidMasterOnlineRequirement
    dcpromoui 3A0.9F0 0214 23:41:27.788           Enter ValidateRidMasterOnlineRequirement
    dcpromoui 3A0.9F0 0215 23:41:27.788             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0216 23:41:27.788             Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 0217 23:41:27.788             bResult = true
    dcpromoui 3A0.9F0 0218 23:41:27.788           bResult = true
    dcpromoui 3A0.9F0 0219 23:41:27.788         Enter State::IsReadOnlyReplica false
    dcpromoui 3A0.9F0 021A 23:41:27.788         Enter State::IsReadOnlyReplica false
    dcpromoui 3A0.9F0 021B 23:41:27.788         Enter TxtCheckTransferIMRoleOptions
    dcpromoui 3A0.9F0 021C 23:41:27.788           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 021D 23:41:27.788           bResult = true
    dcpromoui 3A0.9F0 021E 23:41:27.788         Enter TxtCheckIMGCCompatibility
    dcpromoui 3A0.9F0 021F 23:41:27.788           Enter State::SetNeedToTransferIMRole
    dcpromoui 3A0.9F0 0220 23:41:27.788             b = false
    dcpromoui 3A0.9F0 0221 23:41:27.788           Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 0222 23:41:27.788           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0223 23:41:27.788         Enter State::IsDnsServerAlreadyInstalled
    dcpromoui 3A0.9F0 0224 23:41:27.788           bDnsServerAlreadyInstalled = false
    dcpromoui 3A0.9F0 0225 23:41:27.788         Enter AdditionalDcRolesFunctDnsRegistrationTest
    dcpromoui 3A0.9F0 0226 23:41:27.788           Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 0227 23:41:27.788           Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 0228 23:41:27.788           Enter TxtIsReadyForDnsInstallation
    dcpromoui 3A0.9F0 0229 23:41:27.788             Enter VerifyStaticIpPresent
    dcpromoui 3A0.9F0 022A 23:41:27.788               Adapter name: {11492924-E5D4-4AE7-B958-9E9E8CC9DAB0}
    dcpromoui 3A0.9F0 022B 23:41:27.788               Examining the IP address 0
    dcpromoui 3A0.9F0 022C 23:41:27.788               Not a global IPv6 address. No need to check it.
    dcpromoui 3A0.9F0 022D 23:41:27.788               Examining the IP address 1
    dcpromoui 3A0.9F0 022E 23:41:27.788               Found a static IPv4 address
    dcpromoui 3A0.9F0 022F 23:41:27.788               Adapter name: {6F0E278D-D6F9-11E1-93E4-806E6F6E6963}
    dcpromoui 3A0.9F0 0230 23:41:27.788               The adapter does not have a physical connector.
    dcpromoui 3A0.9F0 0231 23:41:27.788               Adapter name: {EBA06FBF-9547-4E40-A37A-0FE83A6AF676}
    dcpromoui 3A0.9F0 0232 23:41:27.788               The adapter does not have a physical connector.
    dcpromoui 3A0.9F0 0233 23:41:27.788               HRESULT = 0x00000000
    dcpromoui 3A0.9F0 0234 23:41:27.788           Enter TxtRunDnsRegistrationTest
    dcpromoui 3A0.9F0 0235 23:41:27.788             Enter NeedToDiagnoseDnsRegistration
    dcpromoui 3A0.9F0 0236 23:41:27.788               Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0237 23:41:27.788               bRunDnsRegistrationTest = true
    dcpromoui 3A0.9F0 0238 23:41:27.788             Enter DnsRegistrationTest
    dcpromoui 3A0.9F0 0239 23:41:27.788               Enter GetServerAndDomainForDnsDiagnosis
    dcpromoui 3A0.9F0 023A 23:41:27.788                 Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 023B 23:41:27.788                 Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 023C 23:41:27.788                 Enter State::GetNewDomainDNSName Wingtip.com
    dcpromoui 3A0.9F0 023D 23:41:27.788               Enter DiagnoseDnsRegistration
    dcpromoui 3A0.9F0 023E 23:41:27.788                 Enter FindAuthoritativeServer _ldap._tcp.dc._msdcs.Wingtip.com
    dcpromoui 3A0.9F0 023F 23:41:27.788                   Enter FullyQualifyDnsName _ldap._tcp.dc._msdcs.Wingtip.com
    dcpromoui 3A0.9F0 0240 23:41:27.788                   Enter MyDnsQuery _ldap._tcp.dc._msdcs.Wingtip.com.
    dcpromoui 3A0.9F0 0241 23:41:27.788                     Calling DnsQuery_W
    dcpromoui 3A0.9F0 0242 23:41:27.788                     lpstrName : _ldap._tcp.dc._msdcs.Wingtip.com.
    dcpromoui 3A0.9F0 0243 23:41:27.788                     wType     : 6
    dcpromoui 3A0.9F0 0244 23:41:27.788                     fOptions  : 8
    dcpromoui 3A0.9F0 0245 23:41:27.788                     status = 000005B4
    dcpromoui 3A0.9F0 0246 23:41:27.788                     ERROR_TIMEOUT
    dcpromoui 3A0.9F0 0247 23:41:27.788                   failed to find autoritative server.
    dcpromoui 3A0.9F0 0248 23:41:27.788                   result = 000005B4
    dcpromoui 3A0.9F0 0249 23:41:27.788                   authZone            =
    dcpromoui 3A0.9F0 024A 23:41:27.788                   authServer          =
    dcpromoui 3A0.9F0 024B 23:41:27.788                   authServerIpAddress =
    dcpromoui 3A0.9F0 024C 23:41:27.788                 timeout
    dcpromoui 3A0.9F0 024D 23:41:27.788                 DiagnosticCode = b
    dcpromoui 3A0.9F0 024E 23:41:27.788               Enter State::SetParentZoneName
    dcpromoui 3A0.9F0 024F 23:41:27.788               server name:            _ldap._tcp.dc._msdcs.Wingtip.com
    dcpromoui 3A0.9F0 0250 23:41:27.788               error code:             1460
    dcpromoui 3A0.9F0 0251 23:41:27.788               Auth zone:             
    dcpromoui 3A0.9F0 0252 23:41:27.788               Auth server:           
    dcpromoui 3A0.9F0 0253 23:41:27.788               Auth server IP address:
    dcpromoui 3A0.9F0 0254 23:41:27.788               diagnosticResultCode:   11
    dcpromoui 3A0.9F0 0255 23:41:27.804               Enter GetErrorMessage 800705B4
    dcpromoui 3A0.9F0 0256 23:41:27.804             Enter State::SetDnsRegistrationTestSucceeded
    dcpromoui 3A0.9F0 0257 23:41:27.804               b = false
    dcpromoui 3A0.9F0 0258 23:41:27.804             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0259 23:41:27.804             Enter NeedToCreateDelegationOrShowDnsRegistrationDiagnosis
    dcpromoui 3A0.9F0 025A 23:41:27.804               Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 025B 23:41:27.804               Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 025C 23:41:27.804               Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 025D 23:41:27.804             Enter State::SetCreateDnsDelegation false
    dcpromoui 3A0.9F0 025E 23:41:27.804             Enter State::SetDnsDelegationOptionChangeable false
    dcpromoui 3A0.9F0 025F 23:41:27.804             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0260 23:41:27.804             Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0261 23:41:27.804             Enter State::GetNewDomainDNSName Wingtip.com
    dcpromoui 3A0.9F0 0262 23:41:27.804             Warning: A delegation for this DNS server cannot be created because the authoritative parent zone cannot be found or it does not run Windows DNS server.
    If you are integrating with an existing DNS infrastructure, you should manually create a delegation to this DNS server in the parent zone to ensure reliable name resolution from outside the domain "Wingtip.com". Otherwise, no action is required.
    dcpromoui 3A0.9F0 0263 23:41:27.804             Enter State::AddFinishMessage A delegation for this DNS server cannot be created because the authoritative parent zone cannot be found or it does not
    run Windows DNS server. If you are integrating with an existing DNS infrastructure, you should manually create a delegation to this DNS server in the parent zone to ensure reliable name resolution from outside the domain "Wingtip.com". Otherwise, no action
    is required.
    dcpromoui 3A0.9F0 0264 23:41:27.804             DNS delegation will not be created due to DNS diagnostics failure.
    dcpromoui 3A0.9F0 0265 23:41:27.804         Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 0266 23:41:27.804       performed state 15, next state 16
    dcpromoui 3A0.9F0 0267 23:41:27.804       Enter DnsDelegationFunct
    dcpromoui 3A0.9F0 0268 23:41:27.804         Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 0269 23:41:27.804         Enter State::GetDnsDelegationUserOption
    dcpromoui 3A0.9F0 026A 23:41:27.804           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 026B 23:41:27.804           Enter GetAnswerFileOption CreateDNSDelegation
    dcpromoui 3A0.9F0 026C 23:41:27.804             Enter AnswerFile::GetOption CreateDNSDelegation
    dcpromoui 3A0.9F0 026D 23:41:27.804              
    dcpromoui 3A0.9F0 026E 23:41:27.804         Enter State::GetDnsDelegationOptionChangeable false
    dcpromoui 3A0.9F0 026F 23:41:27.804         Enter State::GetCreateDnsDelegation false
    dcpromoui 3A0.9F0 0270 23:41:27.804         Enter State::GetCreateDnsDelegation false
    dcpromoui 3A0.9F0 0271 23:41:27.804         Enter State::GetCreateDnsDelegation false
    dcpromoui 3A0.9F0 0272 23:41:27.804         Enter State::GetDnsRegistrationTestSucceeded
    dcpromoui 3A0.9F0 0273 23:41:27.804           m_bDnsRegistrationTestSucceeded = false
    dcpromoui 3A0.9F0 0274 23:41:27.804         Enter State::SetHadNonCriticalFailures
    dcpromoui 3A0.9F0 0275 23:41:27.804           b = true
    dcpromoui 3A0.9F0 0276 23:41:27.804       performed state 16, next state 25
    dcpromoui 3A0.9F0 0277 23:41:27.804       Enter PathsFunct
    dcpromoui 3A0.9F0 0278 23:41:27.804         Enter GetAnswerFileOption DatabasePath
    dcpromoui 3A0.9F0 0279 23:41:27.804           Enter AnswerFile::GetOption DatabasePath
    dcpromoui 3A0.9F0 027A 23:41:27.804            
    dcpromoui 3A0.9F0 027B 23:41:27.804         Enter GetAnswerFileOption LogPath
    dcpromoui 3A0.9F0 027C 23:41:27.804           Enter AnswerFile::GetOption LogPath
    dcpromoui 3A0.9F0 027D 23:41:27.804            
    dcpromoui 3A0.9F0 027E 23:41:27.804         Enter GetAnswerFileOption SYSVOLPath
    dcpromoui 3A0.9F0 027F 23:41:27.804           Enter AnswerFile::GetOption SYSVOLPath
    dcpromoui 3A0.9F0 0280 23:41:27.804            
    dcpromoui 3A0.9F0 0281 23:41:27.804         Enter DetermineDefaultSysvolPath
    dcpromoui 3A0.9F0 0282 23:41:27.804           Enter FS::GetFileSystemType
    dcpromoui 3A0.9F0 0283 23:41:27.804             Enter FS::GetRootFolder C:\Windows
    dcpromoui 3A0.9F0 0284 23:41:27.804               Enter FS::GetPathSyntax C:\Windows
    dcpromoui 3A0.9F0 0285 23:41:27.804             HRESULT = 0x00000000
    dcpromoui 3A0.9F0 0286 23:41:27.804           C:\Windows\
    dcpromoui 3A0.9F0 0287 23:41:27.804         dbPath=C:\Windows\NTDS, logPath=C:\Windows\NTDS
    dcpromoui 3A0.9F0 0288 23:41:27.804         sysvol path C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 0289 23:41:27.804         Enter FS::NormalizePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 028A 23:41:27.804         Enter FS::NormalizePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 028B 23:41:27.804         Enter FS::NormalizePath C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 028C 23:41:27.804         Enter TxtValidateDcInstallPath
    dcpromoui 3A0.9F0 028D 23:41:27.804           Enter ValidateDcInstallPath
    dcpromoui 3A0.9F0 028E 23:41:27.804             Enter FS::GetPathSyntax C:\Windows\NTDS
    dcpromoui 3A0.9F0 028F 23:41:27.804             Enter PathHasNonAsciiCharacters C:\Windows\NTDS
    dcpromoui 3A0.9F0 0290 23:41:27.804               result = false
    dcpromoui 3A0.9F0 0291 23:41:27.804             Enter CheckDriveType
    dcpromoui 3A0.9F0 0292 23:41:27.804               Enter IsSupportedDriveType
    dcpromoui 3A0.9F0 0293 23:41:27.804         Enter FS::GetRootFolder C:\Windows\NTDS
    dcpromoui 3A0.9F0 0294 23:41:27.804           Enter FS::GetPathSyntax C:\Windows\NTDS
    dcpromoui 3A0.9F0 0295 23:41:27.804         Enter FS::GetRootFolder C:\Windows\NTDS
    dcpromoui 3A0.9F0 0296 23:41:27.804           Enter FS::GetPathSyntax C:\Windows\NTDS
    dcpromoui 3A0.9F0 0297 23:41:27.804         Enter checkDiskSpace
    dcpromoui 3A0.9F0 0298 23:41:27.804           Enter FS::GetRootFolder C:\
    dcpromoui 3A0.9F0 0299 23:41:27.804             Enter FS::GetPathSyntax C:\
    dcpromoui 3A0.9F0 029A 23:41:27.804           Enter FS::GetAvailableSpace C:\
    dcpromoui 3A0.9F0 029B 23:41:27.804         Enter State::SetDatabasePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 029C 23:41:27.804         Enter State::SetLogPath C:\Windows\NTDS
    dcpromoui 3A0.9F0 029D 23:41:27.804         Enter TxtValidateDcInstallPath
    dcpromoui 3A0.9F0 029E 23:41:27.804           Enter ValidateDcInstallPath
    dcpromoui 3A0.9F0 029F 23:41:27.804             Enter FS::GetPathSyntax C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02A0 23:41:27.804             Enter CheckDriveType
    dcpromoui 3A0.9F0 02A1 23:41:27.804               Enter IsSupportedDriveType
    dcpromoui 3A0.9F0 02A2 23:41:27.804             Enter FS::GetFileSystemType
    dcpromoui 3A0.9F0 02A3 23:41:27.804               Enter FS::GetRootFolder C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02A4 23:41:27.804                 Enter FS::GetPathSyntax C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02A5 23:41:27.804               HRESULT = 0x00000000
    dcpromoui 3A0.9F0 02A6 23:41:27.804         Enter TxtValidateSYSVOLPath
    dcpromoui 3A0.9F0 02A7 23:41:27.804           Enter validateSysvolPath
    dcpromoui 3A0.9F0 02A8 23:41:27.804             Enter State::GetDatabasePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02A9 23:41:27.804             Enter State::GetLogPath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02AA 23:41:27.804             Enter FS::IsParentFolder
    dcpromoui 3A0.9F0 02AB 23:41:27.804             Enter FS::IsParentFolder
    dcpromoui 3A0.9F0 02AC 23:41:27.804             Enter State::ReplicateFromMedia false
    dcpromoui 3A0.9F0 02AD 23:41:27.804             Enter checkDiskSpace
    dcpromoui 3A0.9F0 02AE 23:41:27.804               Enter FS::GetRootFolder C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02AF 23:41:27.804                 Enter FS::GetPathSyntax C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02B0 23:41:27.804               Enter FS::GetAvailableSpace C:\
    dcpromoui 3A0.9F0 02B1 23:41:27.804           validStatus = 0x0
    dcpromoui 3A0.9F0 02B2 23:41:27.804           Enter State::GetDatabasePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02B3 23:41:27.804           Enter State::GetLogPath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02B4 23:41:27.804           true
    dcpromoui 3A0.9F0 02B5 23:41:27.804         Enter State::SetSYSVOLPath C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02B6 23:41:27.804       performed state 25, next state 26
    dcpromoui 3A0.9F0 02B7 23:41:27.804       Enter SafeModePasswordFunct
    dcpromoui 3A0.9F0 02B8 23:41:27.804         Enter GetEncryptedAnswerFileOption SafeModeAdminPassword
    dcpromoui 3A0.9F0 02B9 23:41:27.804           Enter AnswerFile::GetEncryptedOption SafeModeAdminPassword
    dcpromoui 3A0.9F0 02BA 23:41:27.804         Enter SafeModePasswordFunctInternal
    dcpromoui 3A0.9F0 02BB 23:41:27.804           Enter TxtIsValidPassword
    dcpromoui 3A0.9F0 02BC 23:41:27.804             Enter IsValidPassword
    dcpromoui 3A0.9F0 02BD 23:41:27.804               Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 02BE 23:41:27.804               Enter ValidatePasswordAgainstPolicy
    dcpromoui 3A0.9F0 02BF 23:41:27.804                 Using current user context ...
    dcpromoui 3A0.9F0 02C0 23:41:27.851                 HRESULT = 0x00000000
    dcpromoui 3A0.9F0 02C1 23:41:27.851           Enter State::SetSafeModeAdminPassword
    dcpromoui 3A0.9F0 02C2 23:41:27.851       performed state 26, next state 28
    dcpromoui 3A0.9F0 02C3 23:41:27.851       Enter ConfirmFunct
    dcpromoui 3A0.9F0 02C4 23:41:27.851         Enter GetMessage
    dcpromoui 3A0.9F0 02C5 23:41:27.851           Enter State::GetNewDomainNetbiosName Wingtip
    dcpromoui 3A0.9F0 02C6 23:41:27.851           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 02C7 23:41:27.851           Enter State::GetNewDomainDNSName Wingtip.com
    dcpromoui 3A0.9F0 02C8 23:41:27.851         Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 02C9 23:41:27.851         Enter State::GetMode NORMAL
    dcpromoui 3A0.9F0 02CA 23:41:27.866         Enter State::GetForestFunctionalLevel
    dcpromoui 3A0.9F0 02CB 23:41:27.866           forest functional level: 4
    dcpromoui 3A0.9F0 02CC 23:41:27.866         Enter State::GetDomainFunctionalLevel
    dcpromoui 3A0.9F0 02CD 23:41:27.866           domain functional level: 4
    dcpromoui 3A0.9F0 02CE 23:41:27.866         Enter State::IsRepair false
    dcpromoui 3A0.9F0 02CF 23:41:27.866         Enter State::GetSiteName Default-First-Site-Name
    dcpromoui 3A0.9F0 02D0 23:41:27.866         Enter State::IsReadOnlyReplica false
    dcpromoui 3A0.9F0 02D1 23:41:27.866         Enter State::GetGlobalCatalogOption true
    dcpromoui 3A0.9F0 02D2 23:41:27.866         Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 02D3 23:41:27.866         Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 02D4 23:41:27.866         Enter State::GetCreateDnsDelegation false
    dcpromoui 3A0.9F0 02D5 23:41:27.866         Enter State::IsReadOnlyReplica false
    dcpromoui 3A0.9F0 02D6 23:41:27.866         Enter State::GetSYSVOLPath C:\Windows\SYSVOL
    dcpromoui 3A0.9F0 02D7 23:41:27.866         Enter State::GetLogPath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02D8 23:41:27.866         Enter State::GetDatabasePath C:\Windows\NTDS
    dcpromoui 3A0.9F0 02D9 23:41:27.866         Enter State::AutoConfigureDNS true
    dcpromoui 3A0.9F0 02DA 23:41:27.866         Enter State::IsDnsServerAlreadyInstalled
    dcpromoui 3A0.9F0 02DB 23:41:27.866           bDnsServerAlreadyInstalled = false
    dcpromoui 3A0.9F0 02DC 23:41:27.866         Enter State::GetSkipAutoconfigureDns false
    dcpromoui 3A0.9F0 02DD 23:41:27.866         Enter State::ShouldConfigDnsClient
    dcpromoui 3A0.9F0 02DE 23:41:27.866           shouldConfigDnsClient = true
    dcpromoui 3A0.9F0 02DF 23:41:27.866         Enter State::GetNeedToTransferIMRole
    dcpromoui 3A0.9F0 02E0 23:41:27.866           bNeedToTransferIMRole = false
    dcpromoui 3A0.9F0 02E1 23:47:28.212         Info:
    dcpromoui 3A0.9F0 02E2 23:47:28.212         Info: ----------------------------------------
    dcpromoui 3A0.9F0 02E3 23:47:28.212         Info: The following actions will be performed:
    dcpromoui 3A0.9F0 02E4 23:47:28.212         Info: Configure this server as the first Active Directory domain controller in a new forest.
    The new domain name is "Wingtip.com". This is also the name of the new forest.
    The NetBIOS name of the domain is "Wingtip".
    Forest Functional Level: Windows Server 2008 R2
    Domain Functional Level: Windows Server 2008 R2
    Site: Default-First-Site-Name
    Additional Options:
      Read-only domain controller: "No"
      Global catalog: Yes
      DNS Server: Yes
    Create DNS Delegation: No
    Database folder: C:\Windows\NTDS
    Log file folder: C:\Windows\NTDS
    SYSVOL folder: C:\Windows\SYSVOL
    The DNS Server service will be installed on this computer.
    The DNS Server service will be configured on this computer.
    This computer will be configured to use this DNS server as its preferred DNS server.
    The password of the new domain Administrator will be the same as the password of the local Administrator of this computer.
    dcpromoui 3A0.9F0 02E5 23:47:28.212         Info: ----------------------------------------
    dcpromoui 3A0.9F0 02E6 23:47:28.212         Enter State::GetOperation FOREST
    dcpromoui 3A0.4C4 02E7 23:47:28.228 Enter PromoteThreadProc
    dcpromoui 3A0.4C4 02E8 23:47:28.228   Set locale for console
    dcpromoui 3A0.4C4 02E9 23:47:28.228   Enter State::GetMode NORMAL
    dcpromoui 3A0.4C4 02EA 23:47:28.228   top of retry loop
    dcpromoui 3A0.4C4 02EB 23:47:28.228   Enter disableConsoleLocking
    dcpromoui 3A0.4C4 02EC 23:47:28.228     Enter RegistryKey::Create SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
    dcpromoui 3A0.4C4 02ED 23:47:28.228     Enter RegistryKey::SetValue-DWORD DisableLockWorkstation
    dcpromoui 3A0.4C4 02EE 23:47:28.228   Enter State::SetOperationResultsMessage
    dcpromoui 3A0.4C4 02EF 23:47:28.228   Enter State::SetOperationResultsFlags 0x0
    dcpromoui 3A0.4C4 02F0 23:47:28.228   Enter State::SetOperationResults result SUCCESS
    dcpromoui 3A0.9F0 02F1 23:47:28.228         Enter State::GetOperationResultsCode SUCCESS
    dcpromoui 3A0.9F0 02F2 23:47:28.228         OPERATION SUCCESSFUL
    dcpromoui 3A0.9F0 02F3 23:47:28.228         Enter State::GetOperationResultsCode SUCCESS
    dcpromoui 3A0.9F0 02F4 23:47:28.228         Enter State::IsOperationRetryAllowed
    dcpromoui 3A0.9F0 02F5 23:47:28.228           true
    dcpromoui 3A0.9F0 02F6 23:47:28.228         Info:
    dcpromoui 3A0.9F0 02F7 23:47:28.228       performed state 28, next state 29
    dcpromoui 3A0.9F0 02F8 23:47:28.228       Enter FailedFunct
    dcpromoui 3A0.9F0 02F9 23:47:28.228         Enter State::GetOperationResultsCode SUCCESS
    dcpromoui 3A0.9F0 02FA 23:47:28.228         SUCCESS
    dcpromoui 3A0.9F0 02FB 23:47:28.228       performed state 29, next state 30
    dcpromoui 3A0.9F0 02FC 23:47:28.228       Enter FinishFunct
    dcpromoui 3A0.9F0 02FD 23:47:28.228         Enter getCompletionMessage
    dcpromoui 3A0.9F0 02FE 23:47:28.228           Enter State::GetOperation FOREST
    dcpromoui 3A0.9F0 02FF 23:47:28.290         Info:
    dcpromoui 3A0.9F0 0300 23:47:28.290       performed state 30, next state 31
    dcpromoui 3A0.9F0 0301 23:47:28.290       Enter RebootFunct
    dcpromoui 3A0.9F0 0302 23:47:28.290         Enter State::GetNeedsReboot false
    dcpromoui 3A0.9F0 0303 23:47:28.290         reboot not necessary
    dcpromoui 3A0.9F0 0304 23:47:28.290       performed state 31, next state 38
    dcpromoui 3A0.9F0 0305 23:47:28.290       Enter State::GetHadNonCriticalFailures
    dcpromoui 3A0.9F0 0306 23:47:28.290         bHadNonCriticalFailures = true
    dcpromoui 3A0.9F0 0307 23:47:28.290     Enter State::UnbindFromReplicationPartnetDC
    dcpromoui 3A0.9F0 0308 23:47:28.290     Exit code is 3
    dcpromoui 3A0.9F0 0309 23:47:28.290   Exit code is 3
    dcpromoui 3A0.3AC 030A 23:47:28.384 closing log

  • Missing-anchor-value Error using PowerShell MA (Soren Granfeldt)

    Hi Everyone,
    I'm triying  to do a simple sinchronization using PowerShel MA (Soren Granfeld) v5.0. I've already configured the MA, but when I do a Full Import the Sync Engine sent me: missing-anchor-value. I configured the anchor attribute based on the blog PowerShel
    MA (Soren Granfeld).
    Scheema Script
    $obj = New-Object -Type PSCustomObject
    $obj | Add-Member -Type NoteProperty -Name "Anchor-Id|String" -Value 1
    $obj | Add-Member -Type NoteProperty -Name "objectClass|String" -Value "user"
    $obj | Add-Member -Type NoteProperty -Name "AccountName|String" -Value "SG"
    $obj | Add-Member -Type NoteProperty -Name "FirstName|String" -Value "Soren"
    $obj | Add-Member -Type NoteProperty -Name "LastName|String" -Value "Granfeldt"
    $obj | Add-Member -Type NoteProperty -Name "DisplayName|String" -Value "Soren Granfeldt"
    $obj | Add-Member -Type NoteProperty -Name "Description|String" -Value "Standard User"
    $obj
     Import Script
    $obj = @{}
    $Obj.Add("Id", "1")
    $obj.Add("LastName","Cas")
    $obj.Add("[DN]","2")
    $obj.Add("AccountName","rodcas")
    $obj.Add("FirstName","Rod")
    $obj.Add("DisplayName","Rod Cas")
    $obj.Add("Description","IT")
    $obj
    Anyone can help me please?
    Thanks in advance,

    I think it's because there is no objectclass property on the import object. It's required attribute. The sample on the website may be wrong. Try adding $obj.objectclass = 'user' in the import script
    Regards, Soren Granfeldt
    blog is at http://blog.goverco.com | facebook https://www.facebook.com/TheIdentityManagementExplorer | twitter at https://twitter.com/#!/MrGranfeldt

  • Using PowerShell Remoting with Workflows and Functions

    Hello,
    I have an existing set of scripts with a mixture of Modules containing the functions, Workflows that call the functions and Main script that invokes the workflows.
    Step 1: The Main script picks up the list of servers from a custom db and invokes the relevant workflow for further operation
    Step 2: The workflow runs as foreach parallel and calls a function by passing the server name as a parameter
    Step 3. The function in the module does the real job
    All of this runs, from a central location. 90% of the server are geo dispersed. This seems to be a bit of a concern in terms of turnaround time is too high. 
    Hence, I would like to use WinRM (PowerShell Remoting). I have configured WinRM on all the Server with Firewall Exception.
    My Queries:
    1. Apart from using Enter-PSSession or Invoke-Command, are there any other CMDLet's?
    2. Say for example; I plan to use Enter-PSSession, should I embed the code with Workflow?
    3. How will it retrieve the output?
    Please advice, Thanks
    Rajiv

    You cannot use Enter-PSSession in a script.  
    It's only intended to be used interactively from the console. If you try to use it in a script, the script will run the subsequent commands on the local system, not in the remote session.
    You'll need to use Invoke-Command, and you'll have to include the function definitions in the invoked script block, since those functions will not exist in the remote sessions.
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

  • Error using xdofx inside xdoxslt - Help!

    Hi All
    I am trying to assign a value to a variable that applies a UPPER () and not recognize it.
    What would be the correct syntax?
    *<?xdoxslt:set_variable($_XDOCTX, 'var', UPPER(ssCivil)?>*
    ConfFile: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
    Font Dir: C:\Program Files\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
    Run XDO Start
    Template: D:\Proyectos\Macro\Verison 3\BM Reporte ABM Cliente_v2.rtf
    RTFProcessor setLocale: es-es
    FOProcessor setData: D:\Proyectos\Macro\Verison 3\BIP BM Account Report IO 3.xml
    FOProcessor setLocale: es-es
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(Unknown Source)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(Unknown Source)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
    at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
    at RTF2PDF.runRTFto(RTF2PDF.java:629)
    at RTF2PDF.runXDO(RTF2PDF.java:454)
    at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: oracle.xdo.parser.v2.XPathException: Function 'UPPER' not found.
    at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
    at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
    ... 14 more
    Best regards
    Ignacio Vega

    It should work well, if you use
    <?xdoxslt:set_variable($_XDOCTX, 'var', xdoxslt:convert_case(ssCivil,’UPPER’))?>

  • Error using JSF inside JBuilder

    Hi,
    I have a project on JBuilder when I try to follow the steps from this tutorial :
    http://horstmann.com/corejsf/tutorial.html
    If I try to compile it with "check JSPs" enabled it give me this error :
    "index.jsp": ParserUtils: warning org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE declaration.
    2003-10-12 02:37:29 - Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/lib/standard.jar: (line 3, col -1): Element type "taglib" is not declared.
    2003-10-12 02:37:30 - Exception initializing TldLocationsCache: zip file closed
    "welcome.jsp": ParserUtils: warning org.xml.sax.SAXParseException: Valid documents must have a <!DOCTYPE declaration.
    2003-10-12 02:37:31 - Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/lib/standard.jar: (line 3, col -1): Element type "taglib" is not declared.
    2003-10-12 02:37:31 - Exception initializing TldLocationsCache: zip file closed
    If I disable the error messages I am able to create the WAR file. But it still do not run in the JBuilder IDE.
    When I deploy it to JBoss (with integrated Tomcat) I got this error :
    02:42:00,612 INFO [Engine] Exception initializing TldLocationsCache: XML parsin
    g error on file /WEB-INF/lib/standard.jar: (line 6, col 19): Document root eleme
    nt "taglib", must match DOCTYPE root "null".
    Anyway the application is deployed on Jboss and I can test it successfully.
    Any idea of what the error messages cause ?
    Danilo.

    Hi,
    I have a project on JBuilder when I try to follow
    w the steps from this tutorial :
    http://horstmann.com/corejsf/tutorial.html
    If I try to compile it with "check JSPs" enabled it
    t give me this error :
    "index.jsp": ParserUtils: warning
    org.xml.sax.SAXParseException: Valid documents must
    have a <!DOCTYPE declaration.
    2003-10-12 02:37:29 - Exception initializing
    TldLocationsCache: XML parsing error on file
    /WEB-INF/lib/standard.jar: (line 3, col -1): Element
    type "taglib" is not declared.
    2003-10-12 02:37:30 - Exception initializing
    TldLocationsCache: zip file closed
    "welcome.jsp": ParserUtils: warning
    org.xml.sax.SAXParseException: Valid documents must
    have a <!DOCTYPE declaration.
    2003-10-12 02:37:31 - Exception initializing
    TldLocationsCache: XML parsing error on file
    /WEB-INF/lib/standard.jar: (line 3, col -1): Element
    type "taglib" is not declared.
    2003-10-12 02:37:31 - Exception initializing
    TldLocationsCache: zip file closed
    These are XML parsing errors when reading one of the tag library descriptor files embedded in standard.jar (the JSTL standard tag library JAR file). Because this JAR file works fine in other containers, it sounds like a problem with the servlet container embedded in JBuilder.
    Craig

  • How to get Workflow details from workflowinstance ID using PowerShell

    Greetings
    I would like to know if there is a quick PowerShell command that I can run that returns details (eg, name, title, etc) associated with a workflow instance ID presented in an error message.  I would like to be able to do this to assist with troubleshooting
    2010 and 2013 workflow operation.  This would be beneficial in a situation where error messages are filling the Workflo Operations log, and these messages only present a workflowinstance ID and nothing else.  If I could could quickly use PowerShell
    to get details associated with that workflowinstance, it would greatly simplify troubleshooting, as I could more rapidly identify what running instance and list the workflow is associated with.
    Steve
    General

    Hi Stephan,
    According to your description, my understanding is that you want to list the running workflow instances in SharePoint 2013 On-premise.
    You can use PowerShell commands with SPWorkflowState enumeration to classify the workflow instances.
    More information:
    http://www.codeproject.com/Articles/679628/Easiest-Way-of-Cancelling-All-S
    http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.workflow.spworkflowstate(v=office.15).aspx
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error Using New-WebServiceProxy cmdlet with SQL Agent Powershell Subsystem

    I created a powershell script to connect to SSRS via web service so I can cache reports in the database and expose them directly through our application. The script works fine when I run it through Powershell directly, but when I try running it through the
    SQL Agent Powershell subsystem I am getting a strange error:
    "A job step received an error at line 61 in a PowerShell script. The corresponding line is '$RS = New-WebServiceProxy -Class 'RS' -Namespace 'RS' -Uri $reportServerURI -UseDefaultCredential  '. Correct the script and reschedule the job. The error
    information returned by PowerShell is: 'Could not load file or assembly 'file:///C:\WINDOWS\TEMP\yfqiivtg.dll' or one of its dependencies. The system cannot find the file specified.  '.  Process Exit Code -1.  The step failed."
    I am using SQL Server 2014, SSRS 2014, Windows 8.1. The only difference I can think of is that when I run Powershell from the OS, I am using v 4.0 whereas when I run it from SQL Agent it loads v 2.0. My understanding is that v 2.0 supports the New-WebServiceProxy
    cmdlet, so I'm not convinced the version discrepancy is the culprit. Any ideas what might be causing this?
    On a side note, is there a way to have SQL Agent use Powershell 4.0 for the subsystem? v 2.0 feels a little dated for SQL Server 2014.

    Hi WilliamW,
    When creating a PowerShell job step, there is only one security context available, which is the "SQL Server Agent Service Account." That means that if you intend to execute PowerShell scripts from SQL Agent Job steps, the SQL Server Agent
    service account must have appropriate permissions.
    According to your error message, I recommend to check if the SQL Server Agent service account has access to the folder where the scripts live, as well as the folder C:\WINDOWS\TEMP.
    In addition, when we execute a PowerShell job step in SQL Server, SQL Server Agent subsystem run the sqlps utility, and the sqlps utility launches PowerShell 2.0 and imports the sqlps module. If you need to run a PowerShell v4.0 script from a SQL Server
    Agent job, you can create a proxy account to run the agent job which contains PowerShell script. For more details, please review this similar blog:
    Run a PowerShell v3 Script From a SQL Server Agent Job.
    Thanks,
    Lydia Zhang

  • Anyone get this error message when trying to use a pre-installed workflow?

    When I try to use one of several workflows under Photo in Automator I get this error message:
    * -[NSNull length]: unrecognized selector sent to instance 0xa00dc008
    The workflows affected are those with the small feather appearing icon next to it. Don't know which application it refers to. For example: Convert to Profile, Change resolution, Assign Color Profile, Color balance.
    Are these referring to some application that I don't have installed? 'Tis a puzzlement.
    OT

    I think I've found the solution. The workflows that were not working were for Photoshop. Now they are. The fix must have been the 10.5.2 Combo updater as that's the only change I've made that would affect Automator. My PS CS3 installation has not been touched since before the problem started.

  • Uploading document using Powershell is throwing error- There is no file with URL

    Hi.
    I am trying to upload multiple documents to a sub folder in a library using powershell.
    I am getting the error as : ForEach-Object : Exception calling "Add" with "3" argument(s):
    "<nativehr>0x80070003</nativehr><nativestack></nativestack>There is no file
    with URL 'server/TestLibrary/User_image/ab_3f_wht_ist_small_gif.gif' in this Web."
    I have used the below code:
    function UploadImages($weburl)
    $docLibraryName = "TestLibrary"
    $localFolderPath = "C:\Users\Imgs\user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    $subFolderName="user_image"
    Add-PsSnapin Microsoft.SharePoint.PowerShell -erroraction silentlycontinue
    $web = Get-SPWeb -Identity $webUrl
    $docLibrary = $web.Lists[$docLibraryName]
    #Attach to local folder and enumerate through all files
    $files = ([System.IO.DirectoryInfo] (Get-Item $localFolderPath)).GetFiles() | ForEach-Object {
    #Create file stream object from file
    $fileStream = ([System.IO.FileInfo] (Get-Item $_.FullName)).OpenRead()
    $contents = new-object byte[] $fileStream.Length
    $fileStream.Read($contents, 0, [int]$fileStream.Length);
    $fileStream.Close();
    write-host "Copying" $_.Name "to" $docLibrary.Title "in" $web.Title "..."
    #Add file
    $folder = $web.getfolder($docLibrary.Title + "/" + $subFolderName)
    write-host "folder is " $folder
    $spFile = $folder.Files.Add($folder.Url + "/" + $_.Name, $contents, $true)
    $spItem = $spFile.Item
    Write-Host -f Green "Added Images to Library !!!"
    $web.Dispose()
    How to fix this?
    Thanks

    HI,
    Is the name of the image or the sub folder name the issue?
    I have the images with the name as "ab_3f_wht_ist_small_gif.gif".  folder name "User_image"
    There are underscores on the file name, but there is no space. When I add the file from the library (using the UI), the image is getting added.
    But adding through the powershell is giving the issue.
    I have checked this:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/e810ad03-81ef-4fa6-aab8-ddc896a13ebf/getting-error-during-uploading-a-document-using-powershell?forum=sharepointdevelopmentprevious
    but did not help.
    Thanks

  • SP 2013 - Use PowerShell to Deploy, Activate and Associate a SharePoint Designer Workflow

    Hello Community!
    I'm using SP 2013 Enterprise and I need to use PowerShell to deploy a reusable SharePoint Designer Workflow to the solution gallery, activate it, activate the workflow feature, and then associate the workflow to a list and or library.  Has anyone done
    this before and if so please provide guidance and code examples.
    Thanks!
    Tom
    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award -
    Linked-In - SharePoint Gypsy

    Hi Tom,
    Below are the links might help, please check:
    Lists the Windows PowerShell cmdlets that you can use to manage workflows in a SharePoint 2013 farm.
    http://technet.microsoft.com/en-us/library/ee906558(v=office.15).aspx
    Series of articles written by Sahil Malik about SharePoint 2013 workflow
    http://www.codemag.com/Article/1301021
    http://www.codemag.com/Article/1304021
    SharePoint 2013: How to Schedule a PowerShell Script to Run Automatically
    http://www.proactivespeaks.com/2013/07/30/sharepoint-2013-how-to-schedule-a-powershell-script-to-run-automatically/
    Similar threads:
    http://stackoverflow.com/questions/15045189/how-to-start-workflow-2013-from-powershell
    http://sharepoint.stackexchange.com/questions/65555/deploying-workflow-wsp-as-sandbox-solution
    http://sharepoint.stackexchange.com/questions/89312/launch-sharepoint-2013-workflow-w-javascript
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Management Point created using Powershell will error CM Console when viewing properties

    Greetings,
    We have an established ConfigMgr 2012 R2 CU3 environment with several Primaries and management points already active. These were all installed manually using the CM Console.
    I am now trying to add additional Management Points using Powershell using the command:
    Add-CMManagementPoint -enablessl -sitecode "ABC" -sitesystemservername "MPservername.domain.com" -allowdevice -clientconnectiontype internetandintranet -generatealert -verbose
    The PS completes without error, the MPSetup.log and MPControl.log indicate all is well once the setup completes
    The MP appears as a component under the Server when viewing in the console
    The IIS logs show clients communicating fine and the CM component Status monitor is all green with no errors showing in the status message
    A Get-CMManagementPoint returns fine showing all the same details as other working MP's
    However if I try to view the properties of the Management Point from the console, the console will error
    If I click Continue it will open the properties but they don't appear correctly. The "sitedatabase" tab is missing and the mobile device and generate alert boxes aren't selected. If I click Quit the then console crashes.
    So everything appears to be working, except for being able to view the actual properties through the console.

    It doesn't appear to give a specific error
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.ManagementPointConnectionsControl.InitializePageControl()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnInitialize()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnLoad(EventArgs e)
    at System.Windows.Forms.UserControl.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.ControlCollection.Add(Control value)
    at System.Windows.Forms.TabControl.ControlCollection.Add(Control value)
    at System.Windows.Forms.TabControl.TabPageCollection.Add(TabPage value)
    at Microsoft.EnterpriseManagement.ConsoleFramework.SheetFramework.AddTabs()
    at Microsoft.EnterpriseManagement.ConsoleFramework.SheetFramework.OnLoad(EventArgs e)
    at Microsoft.ConfigurationManagement.AdminConsole.DialogFramework.Forms.SmsPropertySheet.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    Followed by lots of entries of the loaded dll's and finished off with
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

  • Update workflow status column using PowerShell

    Hi All,
    Using PowerShell i want to update the 'Document Status' column as 'Approved'  if it is 'Pending' when it is approved and Task Status is = 'Completed'
    Intermittently my custom workflow is not updating the 'Document Status' column as 'Approved' though it is approved and Task Status is = 'Completed'
    So I thought about running a PowerShell script to work around it.
    Can you please help me for the script.
    Thanks & Regards
    MD.Liakath ali

    Hi,
    The following PowerShell script for your reference:
    $SPWeb = Get-SPWeb http://site
    $List = $SPWeb.Lists["ListName"]
    $items = $List.Items
    foreach ($item in $items) {
    $taskStatus = $item["Task Status"]
    $docStatus = $item["Document Status"]
    if ($taskStatus -eq "Completed" -and $docStatus -eq "Pending")
    $item["Document Status"] = "Approved"
    $item.Update()
    $list.Update()
    $SPWeb.Dispose()
    If the 'Document Status' column is "Approval Status" column and your workflow is an approval workflow, the following articles may be helpful:
    Approval workflow does not update the approval status of items
    https://kanithi.wordpress.com/2014/03/13/approval-workflow-does-not-update-the-approval-status-of-items/
    SharePoint 2010 Approval Workflow with Content Approval
    https://eointherealworld.wordpress.com/2010/12/29/sharepoint-2010-approval-workflow-with-content-approval/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Using powershell to deploy provider-hosted app and specify remote Url instead of using appinv.aspx page

    Hello all,
    Could you possibly help me with provider-hosted app development/deployment process.
    We developed SharePoint provider-hosted app that works just fine in development environment. Now we need to automate it's installation in test environment via powershell.
    In AppManifest.xml that we are deploying we have key instead of explicit URL:
    <App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" Name="ShowAllRoomsApp" ProductID="{922a18aa-5592-b59a-4da9-4791baef02e7}" Version="1.0.0.0"
    SharePointMinVersion="15.0.0.0">
      <Properties>
        <Title>SomeTitle</Title>
        <StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
    If we use as
    https://technet.microsoft.com/en-us/library/jj655398.aspx recommends, we cannot specify Redirect Url as we can do this on
    /_layouts/appinv.aspx
    So now it seems like the only way to deploy this kind of solution is using appinv.aspx page.Or must we apply this URL in AppManifest on developing stage in Visual Studio?
    What did I miss?
    P. S. Even if I use /_layouts/appinv.aspx after powershell commandlets, I get error.

    hi,
    to deploy provider hosted app you need 2 things
    1. Client ID
    2. Redirect URL.
    What you can do you can generate app from visual studio using clientID and URL from developer enviornment.
    Now a app file is just a simple compressed zip file if you rename it as .zip and extract you will find AppManifest
    inside it. So to create an app for Testing enviornment what you have to to Get the CLient ID (from AppRegNew.aspx) in testing enviornment. Unzip .App file change the AppManifest with testing client ID and URL than again zip file and rename as .app.
    Now if you upload this file it will work.
    To automate this scenerio i have created a simple windows Application in which i Pass the Client ID and StartURl and an App File it unzips the app file make changes to app and again zip it.
    public static class AppPackageHelper
    public const string StartUrlExpression = "{0}?{1}";
    public const string StandardToken = "{StandardTokens}";
    public static string Publish(string appPath, string ClientId,string StartUrl)
    string tempDir = string.Empty;
    string outPutFile = string.Empty;
    try
    string parentDir = System.IO.Path.GetDirectoryName(appPath);
    outPutFile = System.IO.Path.Combine(parentDir, ClientId + "-Winshuttle.app");
    tempDir = System.IO.Path.Combine(parentDir, ClientId.ToString());
    Directory.CreateDirectory(tempDir);
    int lastInd = appPath.LastIndexOf('.');
    string tempPath = string.Empty;
    string targetFilePath = string.Empty;
    string cabPath = System.IO.Path.Combine(tempDir, System.IO.Path.GetFileNameWithoutExtension(appPath) + ".cab");
    FileInfo fInfo = new FileInfo(appPath) { IsReadOnly = false };
    File.Copy(appPath, cabPath);
    XDocument doc = null;
    string appManifest = string.Empty;
    using (ZipArchive zipArch = ZipFile.Open(cabPath, ZipArchiveMode.Update))
    appManifest = string.Format(@"{0}\AppManifest.xml", Directory.GetParent(cabPath).FullName);
    ZipArchiveEntry manifestEntry = zipArch.Entries.LastOrDefault(e => e.Name.ToLower() == "appmanifest.xml");
    manifestEntry.ExtractToFile(appManifest);
    doc = XDocument.Load(appManifest);
    XNamespace ns = doc.Root.GetDefaultNamespace();
    string defaultUrl = string.Format(StartUrlExpression, StartUrl.TrimEnd('/'), StandardToken);
    doc.Descendants(XName.Get("StartPage", ns.NamespaceName)).First().Value = defaultUrl;
    doc.Descendants(XName.Get("RemoteWebApplication", ns.NamespaceName)).First().Attribute(XName.Get("ClientId")).Value = setupInfo.ClientId.ToString();
    doc.Save(appManifest);
    if (manifestEntry != null)
    manifestEntry.Delete();
    zipArch.CreateEntryFromFile(appManifest, "AppManifest.xml");
    int totEnt = zipArch.Entries.Count;
    for (int e = 0; e < totEnt; e++)
    if (zipArch.Entries[e].Open().Length == 0)
    //if (zipArch.Entries.Count > totEnt && e >= totEnt) break;
    //zipArch.CreateEntry(zipArch.Entries[e].FullName);
    File.Delete(appManifest);
    if (File.Exists(outPutFile))
    File.Delete(outPutFile);
    File.Move(cabPath, outPutFile);
    return outPutFile;
    catch
    throw;
    finally
    if (System.IO.Directory.Exists(tempDir))
    System.IO.Directory.Delete(tempDir, true);
    return outPutFile;
    using System.IO.Compression.FileSystem.dll.
    Also if you want to do it using powershell You need to do the same thing unzip-> changes values-> zip
    So basic thing is You need to ahve only valid AppManifest file which contains 2 valid values Client Id and StartUrl
    if you changes it inside appmanifest manuall than it will also work. Using above code you can create a console Application to do it. You can use powershell it just that i dont know how to zip unzip in powershell but i am pretty sure you can easily find it
    on searching.
    Whenever you see a reply and if you think is helpful,Vote As Helpful! And whenever you see a reply being an answer to the question of the thread, click Mark As Answer

  • Using Powershell Script Run simple query in MS Access 2007 and export the results of query to Excel

    Hi Experts,
    I have a Access 2007 DB file and 2 Big tables inside that (bigger than the size that can be easily handled by MS Excel 2007).
    My requirement is automate using powershell scripts the below things.
    1. Create a SQL query in Access DB and save that in access DB
    2. Run the saved query and export the result in excel sheet where I can create the charts and Pivots. Thanks in advance
    Prajesh

    Do you have to use the Access query, couldn't you just recreate the query in Powershell?  Here's a link with good info that references an existing script for querying an Access database:
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/08/13/hey-scripting-guy-can-i-query-a-microsoft-access-database-with-a-windows-powershell-script.aspx
    Once you have your dataset you can pipe it to
    Export-Csv -NoType c:\pathtofile\output.csv

Maybe you are looking for