FailoverCluster powershell cmdlets not running through Orchestartor
Hello
I have a simple powershell script :
import-module failoverclusters
get-cluster "clusterName"
The above script runs perfectly fine when I run it on powershell cmd. But when I add the same script to an activity in Orcehstrator, it fails giving this error : The term 'Get-Cluster' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
In fact none of the failover cluster commands work through Orchestrator activity.
Please help me with this.
Thanks
Avanti
Get-Cluster "VLCMUAT2SQL.parttest.extranettest.microsoft.com"
Yes, and in Orchestrator, by default, it's version 2. In your PS console, try this:
powershell
-version 2
And run your cmdlet. Tell me if the command works in command with PS version 2.
Edit: I tried in my environment, and this is the error:
PS C:\Windows\system32> powershell.exe -version 2
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:\Windows\system32> Get-Cluster
Get-Cluster : The term 'Get-Cluster' is not recognized as the name of a cmdlet, function, script file, or operable prog
ram. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:12
+ Get-Cluster <<<<
+ CategoryInfo : ObjectNotFound: (Get-Cluster:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Windows\system32>
Try this with your Orchestrator, it should works:
$result = PowerShell {Import-Module FailoverClusters
Get-Cluster -Name ClusterName}
$result
Similar Messages
-
Report not running through Forms menu
Hi Gurus,
In our reports we have used Query PL/SQL to reference cursor. When it is compiled and an executable 'rep' file is created, which when
called through froms menu generates following error and aborts the report.
REP-1401:'qr_1refcurds': Fatal PL/SQL error occured.
ORA-06508: PL/SQL: could not find program unit being called
The same report when called through forms menu, without the compiled version, executes smoothly. Also it runs through report builder perfectly after compilation and generation of rep file.
Would appreciate if anyone can provide suitable guidelines to solve this issue.
nullhello,
is the program-unit you are trying to call, in an external plsql-library ? if so, you have to provide the PLX version of this library in order to use it from a REP file.
however, why are you using the compiled REP version at all ? i would suggest to use the RDF file.
regards,
the oracle reports team --pw -
Powershell script not running in the task scheduler...
I've created a .ps1 script to transfer a file using WinSCP can run it in the ISE environment, in the PS window, and with the run command. I've transferred the command I used in the run prompt to the task scheduler but it is not running. It is running everywhere
else just not in the scheduler. It says that it completes okay and gives a return code of OpCode=2
The action is set to run this: c:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe
The Arguments: -ExecutionPolicy Bypass -file "C:\Users\me\scriptsWCP\FileTransferPS.ps1"
Also have it running with the highest permission and as SYSTEMHi,
To run a powershell script with parameters in the Task Scheduler:
Program: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
Add argument (optional): -Command "& c:\scripts\test.ps1 -par1 2 -par2 3"
Hope the below two articles be helpful for you:
Schedule PowerShell Scripts that Require Input Values
https://blogs.technet.com/b/heyscriptingguy/archive/2011/01/12/schedule-powershell-scripts-that-require-input-values.aspx
How to Schedule a PowerShell Script
http://dmitrysotnikov.wordpress.com/2011/02/03/how-to-schedule-a-powershell-script/
Regards,
Yan Li
Regards, Yan Li -
FSRM Powershell Cmdlets not working in Azure on Server 2012
I am attempting to use the FSRM Powershell cmdlets on a 2012 server to configure auto quotas. However I guess I am doing something wrong.
Even though there are built-in templates and I have added the one I want manually and have created an auto quota from it, they do not appear to the cmdlets and the cmdlets keep throwing CimException when I try to use them to create templates and auto quotas.
For example get-fsrmquotatemplate returns nothing and new-fsrmquotatemplate -name mydemo -size 10MB resulst in
new-fsrmquotatemplate : Not found
At line:1 char:6
+ $res=new-fsrmquotatemplate mydemo -size 10MB
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (MSFT_FSRMQuotaTemplate:Root/Microsoft/...RMQuotaTemplate) [New-fsrmQuot
aTemplate], CimException
+ FullyQualifiedErrorId : HRESULT 0x80041002,New-FsrmQuotaTemplate
Is there something I am supposed to do first to set the system up?Hi,
From the result it seems that the FSRM templates cannot be found. So please check if both FSRM and Windows PowerShell 3.0 are installed in Features.
Specifically you can test to remove and reinstall FSRM to see if issue will be fixed.
If you have any feedback on our support, please send to [email protected] -
PowerShell cmdlets not available
I have tried to run get-netipaddress but I get the message "The term 'get-netipaddress' is not recognized as the name of a cmdlet". Why is this not available on my machine. I am running powershell version 4.
I ran this command and it says number 2 for the version. I did install version powershell version 4.
$PSVersionTable.psversion
Major Minor Build Revision
2 0 -1 -1I just needed .NET framework 4.5 and then I was able to upgrade to Powershell 4.0. Thank you for your help.
Gotcha, I wish the WMF4 installer would just automatically pull down .Net 4.5 if it detects that you don't already have it installed.
Glad I could help.
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Crystal Report does not run through NWBC
Hi All,
I have been going through posts on SDN all day and I cannot seem to get a resolution to my issue as yet.
Workflow is this
Logon onto NWBC 3.0
Click on Crystal Report. Crystal report contains an OpenDocument URL specified as follows:
http://<servername>:8080/OpenDocument/opendoc/openDocument.jsp?iDocID=AbFjYgXfkO5AofAAPxoxOyA&sIDType=CUID
When click on the Crystal REport link, i am SSO'd onto SAP BusinessObjects Infoview (Edge 3.1 SP3)
The Crystal Report attempts to load and then I encounter the following message:
Error
The database logon information for this report is either incomplete or incorrect.
SSO with SAP Authenication is enabled for SAP BusienssObjects.
Server-side Trust, etc has been set-up on the SAP Side
All steps were followed from the SAP BusinessObjects XI Integration for SAP Solutions Installation and Admin Guide.
For the Crystal Report itself, within the CMC, for the Database Configuration i set it to 'Use SSO context for database logon'.
Also the the Data Source is using FQDN for everything.
I am at a loss as to why the SSO is not working to refresh the Crystal Report.
Any ideas on what to check next would be very much appreciated.
Also, the report I am trying to run from within NWBC, contains a dynamic prompt, that uses a BV layer to populate it. The LOV is scheduled to refresh every morning. Dont know if that is causing the issue or not.
Thanks,
Ainsley
Edited by: Ainsley O'Sullivan on Oct 27, 2011 7:57 AMHi Ingo,
Thank you for your reply.
Why has server side trust been setup on the SAP side ?
I am not sure why Server Side Trust has been set-up on the server side. The basis person who set that up was following the BusinessObjects XI Integration for SAP Solutions Installation and Administration Guide. We thought we needed this in order for SSO to work between NWBC and BusinessObjects. I read now it is only required for multi-pass report bursting.
We have also set up the PSE as well.
So...perhaps an impersonation-style logon is happening on the SAP side because we have set up SNC?
What do we do to undo this from a BusinessObjects server perspective? We have downloaded all the Cryptographic Libraries, set them up on the SAP and BusinessObjects servers.
I will discuss this further with the basis person.
All involved URLs and server names have been fully qualified ?
Yes, everything is fully qualified.
NWBC has been configured to issue a SAP logon token ?
I am not sure. Where is the documentation on how to configure NWBC to issue a logon token? Should I be pointing my basis resource to look at the NWBC Documentation, Section 7.3 Logon Tickets?
OpenDocument has been configured to use SAP authentication by default and to accept Logon token ?
Yes, everything from a BusinessObjects server perspective has been configured. The web.xmls for InfoView and OpenDocument have been configured for sso with sap.
In the CMC, SAP Authentication has been set-up and works a treat.
It seems to me the SAP side, ie. NWBC needs more work.
Just find it hard to get a clear, step by step process on how to set-up NWBC to work with BusinessObjects. There is an abundance of documentation, but sometimes not a clear cut, step by step guide.
Ingo I bought your book the other day too, Integrating SAP BusinessObjects 3.1 Tools with SAP Netweaver. I really liked it because it is clear what you need to do. Perhaps another one could be written or another section added to this book that talks about NWBC and embedding BusinessObjects reports within it?
Thanks again.
Cheers,
Ainsley -
VC Voice Application is not running through Genesys Voice Platform 6.5
Hi,
I am facing problem in VC(SP3) voice application. Now I have created a voice application and I am able to test the application through Voxeo Prophecy. It is working fine.
But I already have Genesys voice Platform 6.5. So, I want to run that application through Genesys. In VC at the deployment time I have selected the driver Genesys Voice Platform 6.5 - 7.2 (IBM) and deployed the application successfully. Then I have published the result and got the URI like http://<host>:<port>/voice/voiceapplication_v1/steptest.
Now in Genesys platform I am setting the URI and trying to test it through telephone but no response.
May I get any Idea or any help to solve the problem.
Thanks in advance
ChandanHi,
Can you just paste the url in the browser and paste the resulting xml file in the message?
I will look into it and update you.
Regards,
Prashanth -
L505-S5997 Headset jack will not run through left earpieces.
I'm not even sure how it happened. At first, I thought my headset wires were dying on me, but it works on my other electronic devices. I got curious, plugged in a second headset, and again, no sound will play through the left earpiece. Any help would be appreciated.
Just a question about the headphone jack fit.
When you plug them in, is any of the silver barrel still visible? Some of the headphone ports are very stiff and it felt like I was almost going to break something when inserting a plug into the port on my Qosmio.
I just tried, and pulling out just a little bit gives sound only in the left.
So, either the headphone jack isn't all the way inserted, or the port itself is physically broken. -
Oracle 10g Enterprise Manager is not Running
Oracle Enterprise Manager is not running through web browser and not from command prompt. I have check all things everything is right.
C:\Documents and Settings\Fizzi>cdd.
'cdd.' is not recognized as an internal or external command,
operable program or batch file.
C:\Documents and Settings\Fizzi>cd..
C:\Documents and Settings>cd..
C:\>f:
F:\>cd Oracle10g
F:\Oracle10g>cd bin
F:\Oracle10g\BIN>emctl status dbconsole
Environment variable ORACLE_SID not defined. Please define it.
F:\Oracle10g\BIN>set ORACLE_SID=orclniazi
F:\Oracle10g\BIN>emctl status dbconsole
OC4J Configuration issue. F:\Oracle10g/oc4j/j2ee/OC4J_DBConsole_hafeez_orclniazi
not found.Is it working earlier ? If it is new installation then you can configure EM manually.
emca -repos create
emca -config dbcontrol db
emctl start dbconsole
- Virag Sharma
http://virag.sharma.googlepages.com
http://viragsharma.blogspot.com -
Insert statement not working when Interface is run through PI ..
Hi Every one,
There is an interface(Server proxy) which updates a ztable in the program. Updates are happening when we are running this interface manually(putting Payload manually) but in case there are already entries in ztable and we are trying to update these records, even after handling exception z table is not getting updated when run through PI and happening manually.
Please suggest me for the same.
VivekTobias from this forum had the answer!
http://powershell.com/cs/forums/p/5438/8786.aspx#8786
His fix:
Whenyou putput text from powershell, the console width is assumed. Since task scheduler runs its own hidden console, the width of that console is used to truncate the text.
You can work by this issue by setting the width yourself. Try using a combination of Format-Table -auto / Format-List -auto and Out-File -width like this:
get-process | Format-Table -Auto | Out-File c:\test.txt -Width 10000
The format-cmdlet with -Auto makes sure the file uses only as much width as is truly needed. The -Width parameter sets the maximum width available.
If you must redirect the output to something else, replace Out-File with Out-String -Stream -Width 10000 and then redirect the result to whereever you want.
Note that multiline strings will still be truncated after the first line.
My code looks like this:
#Export Dataset Table to a text file
$DataSet.Tables[0] | Format-Table -Auto | Out-File $rcvrFileName -Width 10000
This worked like a charm.
Thanks! -
Running SCOM Powershell cmdlets on SCOM Agent Server
Hello,
I have to run some SCOM cmdlets on SCOM Agent Server. But I am getting the below error.
"Get-SCOMClass : The Data Access service is either not running or not yet initilized. Check the event log for more information."
In the Agent Server, there is no "Data Access service".
Please help me in running the SCOM cmdlets on SCOM Agent Server.
Thanks in advance.
Regards,
Mahadevan.GHi Mahadevan:
On a SCOM management server, the SDK service name is "System Center Data Access Service". If you don't see that service listed then you are not on a SCOM management server.
Not sure what you mean "SCOM Agent Server"? The SCOM cmdlets won't run on a computer with just the SCOM agent installed unless you also install the SCOM console/powershell features from the SCOM install media.
The Get-SCOMClass cmdlet (or Get-SCClass) should run on a management server with no problems. Recommend check again that you are really logged into a SCOM management server.
John Joyner MVP-SC-CDM -
I have an apple iphone 4 that I want to download audio books from my library onto. I cannot figure out how to do that. The iphone does not show up on my mac laptop as a connected device. Does this kind of download have to run through itunes? Thanks
Yes it is done through iTunes. The iPhone will never show up in Finder as a device. The following is general information on iTunes sync: http://support.apple.com/kb/HT1386 and the following is a previous discussion where the post by Andreas Junge helped others that had a problem syncing audiobooks: https://discussions.apple.com/message/20052732#20052732
-
When MRP run through background process in MDBT open PR and PO not comming?
Hi,
When MRP run through backgroung process in MDBT open PR and PO not coming in MDBT result.
Pls advise accordingaly.
Regards
rkRam,
Either I am totally misunderstanding your statements, or your business people are misinformed.
The output of MD01 (MRP total run in foreground) and the output of MDBT (MRP total Run in Background) ARE IDENTICAL, provided you have selected the same parameters.
Neither output contains a discrete listing of open Purchase orders and Purchase requisitions.
Standard output of both MD01 and MDBT are:
1. List of materials processed, with exception messages
2. Statistics
In addition, both of these programs also write MRP records to the MRP databases, provided that the "Display Material List" parameter is set. In this case, both of these programs will produce data that can be further reviewed and managed in MD05 and MD06. MD06 is the tool that most planners use to process the MRP database info.
If you wish to see a listing of the entire MRP results (either MD01 or MDBT), then execute transaction MDLD. This will produce either a spoolfile or a printed document.
For the PO or PR listings, review my earlier suggestions.
Rgds,
DB49 -
Query not showing detailed result when run through query Designer or Portal
Hi,
There is one query which not showing detailed result while running through Query Designer or run in Portal.
But strange thing is that it is showing the detailed result when i run it through BeX Analyzer.
While all the other queries don't have this problem in system. All showing the correct detailed result.
If anyone have some idea on this issue plz let me know.
Regards,
Javed
Edited by: Javed Akhtar on Jul 7, 2009 3:59 PMHi,
We can do this setting in WAD. Please check the web template and try to remove that setting. When you have hierarchy then we can display only till certain level in portal, this setting is done in web template APIs, but in bex analyzer you can see all the detailed information.
Edited
Go through this thread for some more detailed information
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7b5f0a95ce12d0e10000000a422035/frameset.htm
Regards,
rik -
Voucher number not populating for payments run through payment Manager
Hi
I have created automatic Document sequence for Check Payments category and assigned Document category in bank account and payment document, Voucher number is working fine for Manual payments, but when we run through Payment manager it is not populating Voucher number, Please help me on this issue.
Thanks in advance.Hi.
The assignment must be created both for Manual and Automatic Methods.
Octavio
Maybe you are looking for
-
Help with an If Statement for a Message Dialog
Hello all! I need help yet once again! I would prefer hints and nudges rather then the answer please, as this is for a homework assignment. Okay I am supposed to write a program that has 3 text boxes to enter a number between 0 and 255 (for red green
-
ICloud Photo Library (beta) - how does it work?
8.0.2 has an option to enable iCloud Photo Library (beta), I am trying to understand how it works before I turn it on... The description says it will auto-upload the entire iPhoto Library to iCloud so other devices that can access these photos by usi
-
I recently got an iphone 5s and i was trying to port my stuff with my iphone 4 before i went to go get the 5s and i had a problem my itunes wasnt sensing the phone so i got back thinking that the 5s would maybe get sensed and the only thing sensing m
-
Retained Earnings Roll Forward (GAAP vs. STAT)
Does anyone have any suggestions on how to set Closing Rules, so that you are able to run separate Retained Earnings roll forward, one for GAAP entries, and the other for Statutory Adjustments, with the Book Code field being your point to differentia
-
Hi, Gurus I had in ppoma_crm two sales organizations, I deleted one of them but still appears on the bp record. How I can do to delete the assigment of sales organization in the bp transaction. when i create a support message sales organization dele