Find module that contains function

Get-Command isn't doing what I expected...
C:\Users\hxchba
> get-command | where { $_.Name -Like “dh” }
CommandType Name        ModuleName
Function            dh
Why is “ModuleName” blank? How can I work around this?
Thanks –
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.18408
BuildVersion                   6.3.9600.16406
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2

Hi,
Are you sure the command is being loaded by a module? As an example, here's some output from my system:
Function        Get-DscResource                                   
PSDesiredStateConfiguration
Function        Get-ExCommand
The first function is from the PSDesiredStateConfiguration module, the second is from my profile.
Don't retire TechNet! -
(Don't give up yet - 12,830+ strong and growing)

Similar Messages

  • Finding tables that contain a column

    Hi all,
    I am a relatively new SQL user and am trying to figure out how to find all tables that contain a particular column, eg, 'cust_id'. I have tried a bunch of different things and searched on Google but I think I don't quite have/understand the syntax I need.
    Also, how would I display a list of all the columns in all the tables?
    Thanks!

    Hi,
    apex wrote:
    Thanks for the input! I got my first question working.
    I am still trying to understand basic ideas in SQL, eg what is the all_tab_columns in Raj's link, as usually I call something from a particular table. All_tab_columns is a view in the sys schema. There are several tables and views in the sys schema whose names start with user_ or all_ (or dba_, but you may not have privileges to see those) which are collectively called the Data Dictionary . They contain information about the database itself, including the tables in the database.
    It states there that the ANALYZE command can be used to gather statistics for this view, but I have not been able to get it working.
    Eg, in Oracle SQL Developer, I type in "help <analyze>" but it doesn't tell me what the syntax of this command is, I had to use Google which gives the following
    To estimate statistics:
    ANALYZE TABLE tablename ESTIMATE STATISTICS SAMPLE 30 PERCENT;
    To compute statistics:
    ANALYZE TABLE tablename COMPUTE STATISTICS;
    But when I try the last one it just says
    table CUSTOMERS analyzed.
    but I don't see any output, and if I try to use ANALYZE all_tab_columns; it gives me an error message. When you analyze a table, a message like "table CUSTOMERS analyzed" is all you expect to see. The main purpose of anlyzing isn't to produce a report for you to read (as helpful as thant might be) but to update the data dictionary, so that Oracle knows how to do queries efficiently. For example, if you have a query like
    SELECT  *
    FROM    patients
    WHERE   birth_date  = DATE '1981-07-28'
    AND     state_abbr  = 'NY';How does the system decide whether to look for rows with the right birth_date first, or the right state? The statistics in the data dictionary might tell it that birth_date has many more ditinct values, so looking for a particular birth_date first will narrow down the search much faster than looking for a particular state.
    By the way, the ANALYZE command has been deprecated. Unless you're using a very old version of Oracle, you should be calling the dbms_stats package instead:
    http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_stats.htm#CIHBIEII
    I am using Sam's teach yourself SQL in 10 minutes which is very good at the very specific commands and functions it describes but doesn't really orient me to the language, doesn't explain how to use the help functions, or any treatment of tasks not contanied in the book. If someone can recommend another source would appreciate it. Much thanks!That's the frustrating thing about books; you can't ask them questions. (On the other hand, that's one of the nice things about this forum.)
    I can understand why the book doesn't say much about analyzing. The book is about SQL (e.g., how to create a table or write a query). Statistics are not in the scope of that book. Actually, they're not really in the scope of this forum, either. If you have questions about statistics, you're better off posting them in the "Database - General" forum:
    General Database Discussions

  • [JS CS3] Find paragraphs that contain a single Style override

    Given a document with consistently applied paragraph styles. I need to locate all the paragraphs in the document that contain a paragraph style override of the left indent. All other style overrides can be ignored.
    I see in the DOM how to clear overrides, but is there any way to locate paragraphs that have a specific override?
    I suspect there is no way to do this, but thought I'd throw this out there.

    This will override a single paragraph attribute:
    var myAttribute = "leftIndent";
    var myParagraphs = app.activeDocument.stories.everyItem().paragraphs.everyItem().getElements();
    for (var n = 0; n < myParagraphs.length; n++){
         myParagraphs[n][myAttribute] = myParagraphs[n].appliedParagraphStyle[myAttribute];

  • Powershell can't find modules that worked before

    Hi All, I am hoping someone can provide a simple solution to my question. For starters, here is what I am working with:
    OS: Windows Server 2012 R2 setup in an RDS farm configuration
    Powershell Info:
    Name                           Value                                                                                  
    PSVersion                      4.0                                                                                    
    WSManStackVersion              3.0                                                                                    
    SerializationVersion           1.1.0.1                                                                                
    CLRVersion                     4.0.30319.34209                                                                        
    BuildVersion                   6.3.9600.17400                                                                         
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                   
    PSRemotingProtocolVersion      2.2       
    About a week ago I was able to launch powershell, type import-module remotedesktop and press enter so that I could perform various RDS functions in Powershell that cannot be done through the Windows GUI.
    Now when I attempt to do so, I get the following:
    import-module : Could not load file or assembly 'Microsoft.RemoteDesktopServices.Management.Activities,
    Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find
    the file specified.
    At line:1 char:1
    + import-module remotedesktop
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
    When I look under C:\Windows\System32\WindowsPowerShell\v1.0\Modules I can see a folder for RemoteDesktop and it contains Powershell scriptmodules. No windows updates were applied to the server and the event logs are clean as a whistle.
    My question is simple, what did I do wrong?
    Update:
    when I open a command prompt window and type
    "powershell -importsystemmodules", I am then able to proceed to
    import-module remotedesktop from the CMD prompt and perform the functions that I need to do. Not sure why in the world this would suddenly work only under CMD and not Powershell.                 

    Hi All, I am hoping someone can provide a simple solution to my question. For starters, here is what I am working with:
    OS: Windows Server 2012 R2 setup in an RDS farm configuration
    Powershell Info:
    Name                           Value                                                                                  
    PSVersion                      4.0                                                                                    
    WSManStackVersion              3.0                                                                                    
    SerializationVersion           1.1.0.1                                                                                
    CLRVersion                     4.0.30319.34209                                                                        
    BuildVersion                   6.3.9600.17400                                                                         
    PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}                                                                   
    PSRemotingProtocolVersion      2.2       
    About a week ago I was able to launch powershell, type import-module remotedesktop and press enter so that I could perform various RDS functions in Powershell that cannot be done through the Windows GUI.
    Now when I attempt to do so, I get the following:
    import-module : Could not load file or assembly 'Microsoft.RemoteDesktopServices.Management.Activities,
    Version=6.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find
    the file specified.
    At line:1 char:1
    + import-module remotedesktop
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Import-Module], FileNotFoundException
        + FullyQualifiedErrorId : FormatXmlUpdateException,Microsoft.PowerShell.Commands.ImportModuleCommand
    When I look under C:\Windows\System32\WindowsPowerShell\v1.0\Modules I can see a folder for RemoteDesktop and it contains Powershell scriptmodules. No windows updates were applied to the server and the event logs are clean as a whistle.
    My question is simple, what did I do wrong?

  • Find all topics that contain specific content

    The Find feature in Robohelp for html seems to only be able
    to find topics that contain the find criteria in the title of the
    topic. Can I do a Find that will access all the topics that contain
    a character, like a quotation mark, within the body of the
    topic?

    Hi all
    Personally I think we need to clarify whether COHAN3 is
    talking about looking through source content or compiled/generated
    content. Certainly the utility you mentioned would work for the
    source files, but it would fail on compiled/generated content.
    Cheers... Rick

  • 1...how to find that a function module belongs to normal function module or

    Hi to all.........
    1...how to find that a function module belongs to normal function module or remote enabled function module?
    Thanks and regards,
    K.Swaminath reddy

    Hi Swaminath,
    Go to Transaction SE37.
    In The Remote enabled function module, in the Attribute tab radio Button "Remote Enabled module will be selected and in the Normal Function Module, Normal Function Module will be selected.
    Regards,
    Mukesh Kumar

  • Calling stored function that contains commit from .JCX

    I would like to call a stored function (Oracle) that contains a commit, from
    a WebLogic database control (.JCX). The suggested way to call a stored
    function is to do something like:
    * @jc:sql statement::
    * SELECT MY_FUNCTION({projectID}, {staffID}) FROM DUAL
    int callMyFunction(int projectID, int staffID) throws SQLException;
    This doesn't work if the function contains a commit - I get: ORA-14552:
    cannot perform a DDL, commit or rollback inside a query or DML. I don't
    want to just get my own connection to the db in my code and call it directly
    because then I won't be using the connection pool provided by WebLogic. Is
    there a recommended way to do this? So far, the database control has taken
    care of getting connections from the pool. Can I get a connection from the
    pool explicitely and use it? How do I "return" it to the pool?
    Thanks.
    Steve

    Steve Kincer wrote:
    Thanks for the response.
    So far, I've only used the database control, so I haven't been doing any
    transaction management (rollbacks/commits) myself - I've just called methods
    in my database control and not worried it. Come to think of it, all my
    other calls are just SELECTs, so it hasn't been an issue, but I've assumed
    WebLogic or the connection pool would take care of transaction management
    for me if I coded an UPDATE function in the database control.
    What do you mean by "find and use the control API provided for
    defining/demarking
    transactions" ... what control?
    I've seen stuff in the help file about transaction management, so I can
    research that, but where do I get the connection to use for this? I'm
    thinking I should get it from the pool (rather than create my own
    connection). I saw a generated method in my database control called
    getConnection, but when I tried using it with a CallableStatement I got
    error:
    "The transaction is no longer active - status: 'Committed'. No further JDBC
    access is allowed within this transaction."This means that you are automatically being taken care of transactionally,
    and don't need to do any commit() calls.
    Joe
    >
    I guess it's pretty obvious that I'm pretty new to WebLogic.
    Thanks for your help.
    Steve
    "Joe Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    Steve Kincer wrote:
    I would like to call a stored function (Oracle) that contains a commit,
    from a WebLogic database control (.JCX). The suggested way to call a
    stored function is to do something like:
    * @jc:sql statement::
    * SELECT MY_FUNCTION({projectID}, {staffID}) FROM DUAL
    int callMyFunction(int projectID, int staffID) throws SQLException;
    This doesn't work if the function contains a commit - I get: ORA-14552:
    cannot perform a DDL, commit or rollback inside a query or DML.Right. It is bad style to hide a commit in a procedure. The begin-tx
    and commit should be at the same level, above any specific SQL for the
    tx. How did you start a transaction? Are you sure you have an ongoing
    transaction?
    I don't
    want to just get my own connection to the db in my code and call it
    directly because then I won't be using the connection pool provided by
    WebLogic. Is there a recommended way to do this? So far, the database
    control has taken care of getting connections from the pool. Can I get a
    connection from the pool explicitely and use it? How do I "return" it to
    the pool?You should find and use the control API provided for defining/demarking
    transactions.
    Joe
    Thanks.
    Steve

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

  • Module that doesn't scale 100% to its container

    Hi,
    I have a module that doesn't scale 100% to its container
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"
        percentWidth="100" percentHeight="100" verticalGap="0"
        >
        <mx:creationComplete>
            <![CDATA[
            vo = VO.getInstance();
            ]]>
        </mx:creationComplete>
        <mx:Script>
    You see anything wrong?

    I set up the panel like this      
    privileges= new SuperPanel();
            privileges.x=0;
            privileges.y=0;
            privileges.width=725;
            privileges.height=500;
            privileges.verticalScrollPolicy='off';
            privileges.allowDrag=true;
            privileges.allowResize=true;
            privileges.allowClose=true;
            privileges.allowMaximize=true;
            privileges.allowMinimize=true;
            privileges.allowMaximize=true;
            privileges.addEventListener(CloseEvent.CLOSE,privilegesClose)
            privileges.layout='vertical';
            privileges.title="Assign privileges";
            privileges.addChild(privilegesML);
    then I load the module
              privilegesML.url = 'modules/Privileges.swf';
    The module looks a bit like this
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Module xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0"
        width="100%" height="100%" verticalGap="0"
        >
        <mx:creationComplete>
            <![CDATA[
            vo = VO.getInstance();
            ]]>
        </mx:creationComplete>
        <mx:HBox width="100%">
            <mx:Button label="Save changes to server" click="deals.dataProvider=tradesResult">
                <mx:icon>@Embed(source='../../images/32px-Crystal_Clear_app_kwrite.png')</mx:icon>
            </mx:Button>
            <mx:Button label="Refresh list" icon="@Embed(source='../../images/cog.png')" click="myService.getUsers();"/>
        </mx:HBox>
        <mx:AdvancedDataGrid id="deals" displayItemsExpanded="false" dataProvider="{vo.usersResult}" width="100%" height="100%" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="name" headerText="User name" width="120" textAlign="center" editable="false"/>
                <mx:AdvancedDataGridColumn headerText="Add trade" width="70" editorDataField="addTradeView" rendererIsEditor="true" backgroundColor="0xddf5ff">
                    <mx:itemRenderer>
                        <mx:Component>
                                <mx:CheckBox >
        <mx:Script>
                                    <![CDATA[
                                        override public function set data(value:Object):void
                                            super.data=value;
                                            if(value != null){
                                            this.selected=this.data.addTradeView;
                                    ]]>
                                </mx:Script>
                                    <mx:change>
                                        <![CDATA[
                                        this.data.isModifiedClientSide = 1;
                                        this.data.addTradeView = this.selected; //used to check through data and update server
                                        ]]>
                                    </mx:change>
                                </mx:CheckBox>
                        </mx:Component>
                    </mx:itemRenderer>
                </mx:AdvancedDataGridColumn>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </mx:Module>

  • How to find a polygon that contains a point

    I have a table that has the boundaries (polygones) for all the zip codes in my state and I want to find the zip code that contains the given LON/LAT
    The following query is aparently not valid:
    SELECT *
    FROM ZIP_BOUNDARY b
    WHERE sdo_relate(b.geom, SDO_POINT_TYPE(-122.079155, 37.392892, NULL),'mask=touch') = 'TRUE'
    WHERE sdo_relate(b.geom, SDO_POINT_TYPE(-122.079155, 37.392892, NULL),'mask=touch') = 'TRUE'
    ERROR at line 5:
    ORA-29900: operator binding does not exist
    ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_RELATE'
    What is the correct way to write such a query?

    try the following:
    SELECT *
    FROM ZIP_BOUNDARY b
    WHERE sdo_relate(b.geom, sdo_geometry(2001, YOUR_SRID, SDO_POINT_TYPE(-122.079155, 37.392892, NULL), NULL, NULL), 'mask=CONTAINS') = 'TRUE';

  • What is the Function MOdule that returns the fields in database table order

    Hello Folks
      I have a dynamic internal table with fields ( which are not in order). I want to display them in the order of which they are present in the database table? Is there any function module that returns the fields in database order?
    FAQ. Please search before posting your question.
    Edited by: Suhas Saha on Oct 10, 2011 10:19 PM

    Hi,
    You can use this BAPI.
    <b>BAPI_SALESORDER_GETLIST</b>
    Reward if useful.
    Regards,
    Vimal

  • How can I find an ID file that contains a text...?

    I've been working with InDesign for a long time. So, I have a lot of .indd files, from version 1 up to CS3.
    I need to find a file(s) that contains a specific text. E.g. the name of a person, that I'm sure is somewhere in my thousands of ID files.
    It's impossible to open all the files until I locate that text.
    In Windows Explorer, there's a way to search a word or phrase in a file, but it only returns doc, txt, rft, and other text files, even pdf. But not indd.
    Can somebody help me, please?
    Thanks,
    Hirao

    Have you tried changing the extension on your .indd files to .txt? It's
    a binary format, but there's a lot of plain text in there. The name
    you're looking for, or part of it, is probably in there somewhere.
    Search for the shortest possible text string. Some words are not continuous.
    Kenneth Benson
    Pegasus Type, Inc.
    www.pegtype.com

  • The "Search" function box doesn't find things that are there! Why?!

    The "Search" function box doesn't find things that are there! Why? Eg: It doesnt show all my Sent and Received emails, but it will find an email that I half wrote and deleted. Unsure why or how to explain more fully.
    I also don't understand if I type in "James email" or "J" into the search box and all the J / James stuff appears but it doesn't show the emails I know have been sent and I know are somewhere because I rang "James" up to check, but the search box shows random thing I am NOT looking for, even if I type in fully what I am looking for and test it by typing in full titles of things.
    It also doesn't store all my sent emails in "Sent" box. Confused! I'm not sure if the "Search" box just isn't up to the job or if it is broken / i'm doing something wrong? Maybe the email address I use isn't set up properly?

    This can happen sometimes if the cache is not cleared correctly when items are not deleted from your device.
    The only solution to this is to do a restore to clean out the cache file.

  • I recently changed jobs and no longer have access to the computer that contained my Firefox bookmarks. I don't have a Firefox profile. Is there any way to find and transfer my bookmarks to my new computer?

    I recently changed jobs and no longer have access to the computer that contained my Firefox bookmarks. I don't have a Firefox profile. Is there any way to find and transfer my bookmarks to my new computer?

    If you don't have access to the old computer any longer, '''no'''. Unless you were using something like the Google Toolbar & Google Bookmarks or Xmarks, which would have your bookmarks in an online account that you could access. Firefox doesn't include an online storage feature for personal data, yet. That is coming in a future version.
    If you have a friend at your old job maybe they have access to that old PC and they could export your bookmarks to a file and email that file to you.

  • How to find out the inbound function module in the extended idoc

    Hi,
    how to find out the inbound function module in the extended idocs
    Thanks .

    through we41/we42 you can find the inbound function module.......
    or
    thorough we19(idoc test tool) ....
    give the input as message type or basic idoc..
    press exec...
    then you can find th button on application tool bar as inbound funtion module....
    from here also you can find..........
    <REMOVED BY MODERATOR>
    Khasimsa
    Edited by: Alvaro Tejada Galindo on Apr 14, 2008 1:34 PM

Maybe you are looking for

  • IDVD spits out my disc and stops

    Help please. My iDVD will prepare, process menus, process slideshows, then process movies...just like it should. BUT, when it gets to the burn part. It spits out the disc and basically freezes there. I have been working with iDVD for over 5 years and

  • How do I get the day of week labels back in ICal 5.0.1?

    In "Week" view the day of the week is no longer displaying under the date. I can't find a preference setting to get it to display. Any ideas? Thanks.

  • JMS message dump

    Can an entire jms message (including headers, properties, etc) be "dumped" into, say, a string? Any suggestions to do this?

  • RFC_ERROR_PROGRAM

    BW / BEx Gurus, I'm getting the following error message when I'm try to the BEx tools (Query designer, Web application designer, etc). SAP-Logon Control Ent Description : Error Group RFC_ERROR_PROGRAM Message Ent I'm trying to connect from Windows 7

  • Problem with MouseListener.... please help

    Hi, I'm having trouble with my code, I don't know why it isn't executing the Mouse Events, I have a class (name of class: ImageArea) that extends JPanel and implements MouseListener, and my mouseClicked method prints (or its supposed to) the cursor c