Problem with a package that calls powershell script

The long story short: I'm trying to schedule a SSIS package, with SQL Server Agent, that runs a powershell script/command via a proxy account. The problem seems to be that proxy account didn't have the required permissions to run a .ps1 script, so I've
changed the execution policy to "Unrestricted" of everything that could be changed (from ps command prompt):
Scope ExecutionPolicy
MachinePolicy Unrestricted
UserPolicy Unrestricted
Process Undefined
CurrentUser Unrestricted
LocalMachine Unrestricted
So far, so good! But when I try to execute the SSIS package that calls the powershell script like this:
powershell.exe -file D:\script.ps1 -FileName testme
I get the error:
AuthorizationManager check failed.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : UnauthorizedAccess
And when I try something more simple like:
powershell.exe -Command &{Get-ExecutionPolicy}
I get this:
Get-ExecutionPolicy : Access denied At line:1 char:3
+ &{Get-ExecutionPolicy}
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-ExecutionPolicy], Managem
entException
+ FullyQualifiedErrorId : System.Management.ManagementException,Microsoft.
PowerShell.Commands.GetExecutionPolicyCommand
It's worth mentioning that I can call the regular cmdlets: dir; get-content, whoami, so powershell.exe is working fine! Anyone with an idea what's going on here?

Check to make sure Windows Management Instrumentation service (WMI) is Enabled and running. If it’s disabled, try enabling it and starting it to see if that clears the error.
If all else fails, go to the path noted in the error and delete the PowerShell profile file.
Arthur
MyBlog
Twitter

Similar Messages

  • Session problem with a form that calls psp web page.

    Hi,
    My unique form is based on table A.
    Within the form I call a stored procedure, which insert data from A into tables B,C,D
    And then within the same form I call a psp procedure using web.show_document('http://server:8080/plsql/psp_procedure?pvId=1001);
    The plsql web page displays data from tables B,C,D for each single pvId.
    The problem is:
    If any commit is issued the psp web page contains no data from B,C,D.
    I suppose I'm working with two different sessions, can I work within the same one?
    Thanks

    Hi,
    I'd say the main problem is that you have both rows with the same name 'Rangée1'. This is not a good idea, especially as the first row is the repeatable row.
    When objects have the same name, you can see the instances in the hierarchy, eg 'Rangée1[0]' and 'Rangée1[1]'. The instances use a zreo-based numbering system.
    By the way you can also see it in the Object > Binding tab:
    So that is when you have multiple objects with the same name.
    The problem with your form is that when objects are repeated (add new instance button), then these new objects also have instances, eg 'Rangée1[0]', 'Rangée1[1]', 'Rangée1[2]', etc.
    So the Acrobat gets confused ;-)
    I have renamed the second row 'Rangée2'. That seems to have solved the problem.
    Here is the form back to you: https://acrobat.com/#d=jcCs7X85xeRYQjvI2Yb*Cw
    Good luck,
    Niall

  • URGENT :   EP 7.0 /ECC 5.0  -   Problem with Business Package : ESS/MSS

    Dear Portal Gurus,
    We are facing a problem with business package for ESS/MSS
    Our system Info is as under :
    Portal:- NW 2004s
    ERP2004: - (R3 ECC 5.0)
    ESS:- BP for Employee Self-Service (mySAP ERP 2004) 60.2
    MSS:- BP for Manager Self-Service (mySAP ERP 2004) 60.1.1
    SAP XSS  à (SAP ESS 100, SAP MSS 100 and SAP PCUI_GP 100 , all upto SP 12)
    After the Business Packages were installed,found that some  ess apps where not deployed...so manually deployed it.
    The JCO connections are OK.
    Do we need to set up the backend Homepage Framework for the same......even for preview.....was thinking not.
    Also, here is the error and exception that we get when we preview any ESS iview.
    A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.
    Please contact your system administrator.
    You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: You dont have the authorization to start service sap.com/pcui_gp~xssutils/XssMenuArea.
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
    at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:121)
    at com.sap.pcuigp.xssfpm.wd.BackendConnections.initBackend(BackendConnections.java:234)
    at com.sap.pcuigp.xssfpm.wd.BackendConnections.connectModel(BackendConnections.java:159)
    at com.sap.pcuigp.xssfpm.wd.wdp.InternalBackendConnections.connectModel(InternalBackendConnections.java:183)
    Thanks.
    Message was edited by: Ashutosh Rana

    I got the same problem :/
    not the authorization, but the fields in working time is displaying wrong.. (too big)
    Any solution to this?
    Best Regards
    Kristoffer Engh

  • Acrobat Problem with Vista X64 OLE calls

    Acrobat Problem with Vista X64 OLE calls - CreateObject("AcroExch.AVDoc") does NOT open its window in the CreateObject("AcroExch.App") - but opens a new (invisible) window. Works correctly in XP x64 and 32 bit Vista - happens with Acrobat v8 and v9.

    Again, I contend that something changed between 8.1.2 and 8.1.3.
    refer to http://www.adobeforums.com/webx/.59b6fe7c
    To show the viewer, use the show method after the document is opened.
    In 8.1.2 you did not have to perform this extra step.

  • Problems with answering and making calls

    I have owned a Droid 2 for almost a year now. I love it! But for the last few months I have had a problem with answering and making calls. Sometimes when I answer a phone call it connects like I have answered the call but I can't hear anything and the other person can't hear me. The call says I am connected and I can see the timer going but there is no communication. It does the same thing when I go to make calls sometimes. I can hit send and it connects the call but I can't hear anything. The timer is going and the other person answers but I can't hear anything. The only reason I know they answered is because they then call me back and leave a voicemail, sounding very confused. I have to restart my phone and then the problem is solved. But only for a little bit. I haven't been able to pick out a pattern or anything. It is random and very frustrating. I went into my local Verizon store about the issue and they arranged for me to receive a new, certified pre-owned phone because I pay insurance on my phone. I received the phone the next day and everything went great, for a few days. But this phone is also having the same problem. I am getting very frustrated with this because I need to be able to actually talk to people when they call me. Anyone else having the same problem? I want to go back to the store but I feel like they wouldn't do anything more than they did last time, which didn't solve the problem.

    I have this same issue on a bi-daily basis: I can place a call, but then I hear nothing.  I can answer a call, but I then hear nothing.  The calls connect as the people I am in contact with will tell me they answered my calls and heard me, though I could not hear them - and vice versa.  Also, this phone does not like to place a call using the "call" option if dialing from "recent calls".  I turn this phone on/ off daily, I've taken the battery out on about 50% of the occassions when this issue has happened.  This has been a problem for me for approximately 1yr.  My early renew date is just shy of 2 months from now and I cannot wait to get rid of this phone.  Aside from having great difficulty making/ receiving calls, the phone is overall slow to respond to basic functions like text messaging or using the camera.  Also, most times while taking a picture, the camera will "take a picture" but then there is no image in the file.  Highly annoying - the only way to temporarily fix this is to reboot - but like the call issue, the problem recurs.  I do have a bunch of apps on installed on the phone, but since I also have an APP killer on the phone, nothing aside from "Weather Bug" app is ever really running in the background that would slow this phone.  BUT, right now my main concern is may safety: God forbid I am ever in danger or in an emergency situation, this phone's constant malfunctioning could possibly be the physical harm or death of me.  I hope that my family can sue the company that provides the software for this phone, Verizon & Motorola in the event of my untimely death.

  • Unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    unable to update itunes. help. error message when trying to update to latest version of itunes. "the installer has encountered an unexpected error installing this package. this may indicate a problem with this package. error code 2721"

    Hello chae84swangin,
    I recommend following the steps in the article below when getting an error message trying to install iTunes:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I have a ipod classic 160GB , the problem with it is that it is dead no respond at all, i even tried to do a hard reboot, i tried to connect to itunes but it did not work, if somebody has a solution please let me know! the screen on the ipod shows nothing

    I have a ipod classic 160GB , the problem with it is that it is dead no respond at all, i even tried to do a hard reboot, i tried to connect to itunes but it did not work, if somebody has a solution please let me know! the screen on the ipod shows nothing........

    This is the iPod touch forum. I will request that you post be moved to the iPod Classic forum.

  • I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    I have Adobe Reader XI with the package that allows me to send pdfs and convert pdfs to Word. When I open a pdf and try to search the search shows no matches even though the word I am searching for is in the document. Any suggestions how to search?

    Once again, my thanks for your assistance. If I may impose on your generosity one more time, if I understand you correctly if I create a document on Word or WordPerfect, print it and scan it to create a pdf, the search function will not work. But, if I create the pdf document in Word the search function will work. Unfortunately, I am not sure how I create a pdf document in Word other than by printing it and scanning it. Could you please explain.
    William B. Kohn, Esq.
    General Counsel
    Paul V. Profeta & Associates, Inc.
    769 Northfield Avenue
    Suite 250
    West Orange, New Jersey 07052
    (973) 325 - 1300
    (973) 325 - 0376 (Facsimile)
    [email protected]<mailto:[email protected]>

  • I have problems with my films that become slightly jerky after I have imported and edited them in iMovie and then burned them onto a DVD using iDVD. I can see the weak jerkiness when panning in both laterally and vertically. I shoot with a camcorder Canon

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

    I have problems with my films that become slightly jerky after I have imported
    and edited them in iMovie and then burned them onto a DVD using iDVD.
    I can see the weak jerkiness when panning in both laterally
    and vertically.
    I shoot with a camcorder Canon Vixia HF10. The camera has been set to deliver HD quality (1920x1080). But I have accidentally filmed with a frame rate of 60 (?).
    When I import the films in iMovie I have been asked if I want to change to frame rate 30 (instead of 25). I have chosen 30.
    Could it be the setting of a frame rate 60 in my camcorder that causes jerkiness when panning or what else?

  • I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware software worked more than 3 times did not fix

    dears,
    I have a problem with iPhone is that I can replace it at points of sale in the U.S. because I bought from Saudi Arabia because the problem I think in the hard ware I do resoftware more than 3 times did not fix.
    Network also always missing.
    I am living in KS Wichita. I hope you help me pleas.
    Regards.

    iPhone warranty is not international. You will have to return your
    iPhone to Saudi Arabia for repair/replacement. Either take it back
    yourself or send to friend/relative for them to take to Apple. Apple
    will not accept international shipments for repair nor will Apple
    ship repaired/replaced iPhones out of the country where the repair
    was done.

  • I can't install wmpfirefoxplugin at Firefox 4, It show "The installer has encountered an unexpected error installing theis package. This may indicate a problem with this package. The error code is 2755.

    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755.

    Although you're getting a different error message, perhaps try the procedure from the following user tip:
    "The administrator has set policies to prevent this installation" error messages when installing iTunes for Windows on Windows Vista and Windows 7 systems

  • The installer has encountered an unexpected error installing this package.This may indicate a problem with this package. The error code is 2869

    Hi,
    I am getting error "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869." while installing SAP B1DE.
    Note:
    Downloaded the B1DE from B1DE:SAP Business One Development Environment Tools
    Using Window XP , .Net 2008, SAP B1 8.81 Version
    Company Name, Contact Person, Namespace all were given while installing. All of its length is less than 8
    Any help is appreciated.
    Thanks in advance.
    Parvatha Solai.N

    Hi,
    Try post a comment in B1DE 2.0.1 new version! blog.
    Beni.

  • I have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    i have an ipod nano 5th generation. the problem with it's that it doesn't show in itunes when connected to the laptop and it switches on on its own and songs start playing the battery gets consumed too fast after full charge. what is the actual problem?

    What have you tried so far in terms of troubleshooting this issue?  Are you plugging the iPod into a high powered USB 2.0 port on the back of your PC? Have you tried a different USB cable?
    What happens if you try to reset the device with it still connected to the PC?
    How to reset iPod
    Has this iPod ever worked on this PC or is this the first time you have time you have tried connecting it?
    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • I have a problem with disk utility that is not on my mac pro

    I have a problem with disk utility that is not on my mac pro

    Open your Applications folder then open the Utilities folder. It should be there.
    If not, click the magnifying glass icon top right corner of your screen. That's Spotlight.
    Type:   Disk Utility
    Hopefully it will show up.
    Mac Basics: Spotlight

  • I am having problems with certain websites that require adobe flash player because of the restrictions that apple has put in place. Is there a way to get to sites that require flash player?

    I am having problems with certain websits that require adobe flash player

    Please don't start the 1 millionth thread on this subject, which has been answered over and over and over and over and over and over and over.........Use the search bar and type flash and you'll see thousands of posts on this.

Maybe you are looking for