How to use Get-WebHandler,Get-Website command in Powershell 2.0 of 64 bit system ?

Hi,
I am trying to use  Get-WebHandler , Get-Website  in Powershell 2.0 version .It is throwing error as below
"  Retrieving the COM class factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to
the following error: 80040154  "
It is working fine in powershell 4.0 version but not working  in powershell 2.0 version.Can anyone suggest solution to this.
Some IIS commands which are working fine in Powershell 4.0 , are throwing above error in Powershell 2.0 version . Please suggest me the best solution to fix this issue

this is a duplicate post. I suspected the same
http://social.technet.microsoft.com/Forums/windowsserver/en-US/87655dab-84ea-4e1d-8b43-b5c193f8702a/some-powershell-40-version-iis-commands-not-working-in-powershell-20-?forum=winserverpowershell#352bfa16-8c03-49fd-825c-89e3c150522b
Indeed yeah we need to import module
Regards Chen V [MCTS SharePoint 2010]

Similar Messages

  • How to use the DISPLAY RECORD Setup Command in an etext file?

    Hi All,
    How to use the DISPLAY RECORD Setup Command in an etext file?
    I want to display a <NEW RECORD> conditionally. The condition will be based on the data coming through from the xml file.
    Please help me with an example. The BI User guide also doesnt show any examples.
    Your help is appreciated.
    Rgds,
    Kiran Panditi

    Hi,
    You can use vb coding in BEx Analyser to calculate your unit price. For this you have to first display the attributes of your object "XYZ". Then you can use VB cosing to calculate the value for the unit price field.
    One more thing cna you clarify whether is it display attribute or variable ?
    Regards,
    Balajee

  • How to use reflection to get base classes protected field

    I have one base Base classes which have protected fields and public get method to get the field.
    class Base
    protected int proField;
    public int getProField(){return proField;}
    Class Derive extends base class Base
    class Derive extends Base implements OtherInterface
    public void funtion(){};
    Now I have an instance of Derive, how can I use reflection to get the protected field inherited from Base. It seems Java Reflection only give runtime accessibility to public field and decleared field, protected-inherited field is excluded.
    Thanks
    Lei

    as the last poster said, traverse up the class hierarchy.
    ex:
    private void doSumfinToField(String fieldName throws IllegalArgumentException, IllegalAccessException, NoSuchFieldException {
    Class clazz = getClass();
    Field field = findFieldInClass(clazz, fieldName);
    //field.doSumfin;
    private Field findFieldInClass(Class clazz, String fieldName) throws NoSuchFieldException {
    try { // to find the field in this class    
    return clazz.getDeclaredField(fieldName);
    } catch (NoSuchFieldException e) {
    // if we don't have a superclass, continue
    if (clazz.getSuperclass().equals(Object.class)) {
    throw e;
    // check in the superclass
    return findFieldInClass(clazz.getSuperclass(), fieldName);
    }

  • How to use PDPageEnumContents to get PDText?

    Please help me to use PDPageEnumContents to get PDText, the callback and PDGraphic confused me. I donnot know how to write. I am a green hand in Plugin Development.
    Thank you.
    Jason Wang

    This is an obsolete method. It should no longer be used.
    Aandi Inston

  • How to use Java with PL/SQL commands to send an email with attachment

    Apologizes in advance if this is the wrong place to ask the question.
    I need to use Java with PL/SQL commands to send an email with attachment. My java application runs from the command line and does some magic to gather info from an Oracle 11g db. If the DB has sendmail configured, I'd like to send the results of the data gathering as an attachment to the email addresses. I'm not sure how to do this. I've been reading up on on PL/SQL can send email with UTL_SMTP - with attachments. I'm just not sure how to translate that into being triggered by my Java application. Any suggestions or pointers on what I should read would be appreciated.
    Background - I've been programming in Java for 10+ years, but this is my first time using databases. I also have been on these forums for a long time, but lost my profile when it was switched to Oracle.
    Thanks for all help.

    user13726880 wrote:
    The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
    Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
    However myself I would have done it in java with JavaMail.

  • How to use "choose file with prompt" command?

    I need to use "choose file with prompt" command and I want give user possibility choose ONLY images (jpeg, png, gif). So, I write like this:
    choose file with prompt "Please, choose images for processing..." of type {"JPEG Image"}
    But this doesn't work! - All files (including jpegs) are dimmed, and user can't choose any....
    So, how can I filter JPEGs, PNGs and GIFs?

    I have found, that most of images on my computer has missing file_type, I don't know why..... so "type identifier of (info for (choose file))" also doesn't work properly.
    The only one way that 100% works is use Uniform Type Identifier (UTI) -- details here: http://www.huw.id.au/code/fileTypeIDs.html
    thanks.
    iMac G3, PowerBook G3 FW   Mac OS X (10.4.5)  

  • How to use  SET and GET parameter commands ?

    Explain these two giving an example?As which is used for what?

    Hi Albert,
             SAP allows you to make use of SPA/GPA technique to fill the input fields of a called transaction with data from the calling program.SPA/GPA parameters are values that the system stores in the global, user-specific SAP memory. SAP memory allows you to pass values between programs. A user can access the values stored in the SAP memory during one terminal session for all parallel sessions. Each SPA/GPA parameter is identified by a 20-character code. You can maintain them in the Repository Browser in the ABAP Workbench. The values in SPA/GPA parameters are user-specific.
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETER statements.
    To fill one, use:
    SET PARAMETER ID <pid> FIELD <f>.
    This statement saves the contents of field <f> under the ID <pid> in the SAP memory. The code <pid> can be up to 20 characters long. If there was already a value stored under <pid>, this statement overwrites it. If the ID <pid> does not exist, double-click <pid> in the ABAP Editor to create a new parameter object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID <pid> FIELD <f>.
    This statement fills the value stored under the ID <pid> into the variable <f>. If the system does not find a value for <pid> in the SAP memory, it sets SY-SUBRC to 4, otherwise to 0.
    To fill the initial screen of a program using SPA/GPA parameters, you normally only need the SET PARAMETER statement.
    The relevant fields must each be linked to an SPA/GPA parameter.
    On a selection screen, you link fields to parameters using the MEMORY ID addition in the PARAMETERS or SELECT-OPTIONS statement. If you specify an SPA/GPA parameter ID when you declare a parameter or selection option, the corresponding input field is linked to that input field.
    On a screen, you link fields to parameters in the Screen Painter. When you define the field attributes of an input field, you can enter the name of an SPA/GPA parameter in the Parameter ID field in the screen attributes. The SET parameter and GET parameter checkboxes allow you to specify whether the field should be filled from the corresponding SPA/GPA parameter in the PBO event, and whether the SPA/GPA parameter should be filled with the value from the screen in the PAI event.
    When an input field is linked to an SPA/GPA parameter, it is initialized with the current value of the parameter each time the screen is displayed. This is the reason why fields on screens in the R/3 System often already contain values when you call them more than once.
    When you call programs, you can use SPA/GPA parameters with no additional programming overhead if, for example, you need to fill obligatory fields on the initial screen of the called program. The system simply transfers the values from the parameters into the input fields of the called program.
    However, you can control the contents of the parameters from your program by using the SET PARAMETER statement before the actual program call. This technique is particularly useful if you want to skip the initial screen of the called program and that screen contains obligatory fields.
    If you want to set SPA/GPA parameters before a program call, you need to know which parameters are linked to which fields on the initial screen. A simple way of doing this is to start the program that you want to call, place the cursor on the input fields, and choose F1 followed by Technical info. The Parameter ID field contains the name of the corresponding SPA/GPA parameter. Alternatively, you can look at the screen definition in the Screen Painter.
    The SPA/GPA parameter for the input field Company has the ID CAR. Use this method to find the IDs CON, DAY, and BOK for the other input fields.
    The following executable program is connected to the logical database F1S and calls an update transaction:
    REPORT BOOKINGS NO STANDARD PAGE HEADING.
    TABLES SBOOK.
    START-OF-SELECTION.
      WRITE: 'Select a booking',
      SKIP.
    GET SBOOK.
      WRITE: SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
      HIDE:  SBOOK-CARRID, SBOOK-CONNID,
             SBOOK-FLDATE, SBOOK-BOOKID.
    AT LINE-SELECTION.
      SET PARAMETER ID: 'CAR' FIELD SBOOK-CARRID,
                        'CON' FIELD SBOOK-CONNID,
                        'DAY' FIELD SBOOK-FLDATE,
                        'BOK' FIELD SBOOK-BOOKID.
      CALL TRANSACTION 'BOOK'.
    The basic list of the program shows fields from the database table SBOOK according to the user entries on the selection screen. These data are also stored in the HIDE areas of each line.
    Cheers
    Nishanth

  • How to use apdu to get the certificate in smartcard?

    hi,guys
    how could i use the apdu command to get the certificate in smart card.
    now i sent following commands in JCOP shell
    /send 00a404000cA000000063504B43532D3135
    /send 00a4000c023f00
    /send 00a4000c025031
    /send 00a40200024404
    /send 00b0000080
    /send 00b0008080
    what's the next step?

    i'm using the A.E.T's safesign card,i just only use the apdu to load from card.
    but it's seems like it's can't load whole certificate.

  • How to use sdk to get the image in the pdf file created by illustrator?

    I have some pdf files create by illustrator and saved as pdf documents,
    now I want to use the sdk to get the image in pdf files.
    how to?
    Thanks.

    Thank you first!
    Yes,you are right,since I am new to illustrator,and I want to try to write a plugin,
    I have read the sdk doc and API and opened the sample in vs2010,but no idea about how to operate the pdf doc in illustrator with api.
    Hope more advise or any examples,thank a lot.

  • I'm new to iPad and have downloaded the Nook app but don't know how to use it to get Nook books to download from my account at BN.

    I am new to iPad and have downloaded the Nook app.  How do I use it to read the Nook books are that in my account from Barnes&Noble?

    From http://www.barnesandnoble.com/ebooks/help-faqs.asp#NOOKapp
    How do I download my books to my device? I get a message "Safari cannot Download".Launch the NOOK app software to trigger the automatic syncing of your purchases to your device. You can also manually tap the 'gear' button in the lower right-hand corner of the navigation bar and then hit Account Settings. This will open a screen to allow you to enter your login information which includes your account name and password. Press Go and your information will be verified and then the contents of your on-line NOOK Library will be listed for you. Then just browse your book listings and tap on the book you'd like to download to your device. A popup will confirm your request. Press OK and the book will download to your device in the background, and you'll be notified when it has finished downloading.

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • JNI: How to use FindClass to get a class in a Jar file?

    Is it possible to use the FindClass method of the JNI environment object to get a class that is in a jar file? My sample application was working when my class files were in the local directory. Now that I have replaced the class files with a jar file containing the classes, the app no longer works. I'd appreciate tips from anyone who knows how to do this.
    -Andreas

    Is it possible to use the FindClass method of the
    JNI environment object to get a class that is in a
    jar file? My sample application was working when my
    class files were in the local directory. Now that I
    have replaced the class files with a jar file
    containing the classes, the app no longer works. I'd
    appreciate tips from anyone who knows how to do this.It has nothing to do with JNI.
    The method uses the class path just like any other class loading situation in java. The reason it worked before is because your class path included the directory. It doesn't work now because either the jar is not in the class path or there is something wrong with the class path.

  • How to use MAP to get CALs license

    i want to use MAP detect CALs license on windows sever, exchange, SQL sever. can i use MAP to detect, how?

    See the Getting Started Guide for a list of supported server products for getting CAL info. For Windows Server, SQL Server, and SharePoint Server CAL info you need to enable logging on the supported servers and then import and parse those logs after they
    have been collecting the data for long enough. We recommend 90 days but you can work out the amount of logging that will be acceptable with your licensing professional. You can read how to configure the event logging in Section 1 of the Getting Started Guide.
    Exchange, SCCM, and Forefront Endpoint Protection will have data without importing logs by simply choosing those inventory scenarios in the wizard.
    Please remember to click "Mark as Answer" on the post that helps you, and to click
    "Unmark as Answer" if a marked post does not actually answer your question. Please
    VOTE as HELPFUL if the post helps you. This can be beneficial to other community members reading the thread.

  • How to use JFileChooser to get filename of mutifile???

    Hi,
    I tryed to use JFileChooser to open multiple files and I want to save name of selected files in to array of String
    I have writen some code but it doesn't work
    My question is how can I get the filenames as a string array from
    "getSelectedFiles". Any comments are highly welcomed! Thanks a lot. If yes pls give to me some code
    Nguyen Thanh Ba

    hope this will help
    http://java.sun.com/developer/JDCTechTips/2004/tt0316.html

  • How to use SYS_CONNECT_BU_PATH to get max(level)?

    This is the example from
    http://otn.oracle.com/products/oracle9i/daily/oct04.html
    How can I modify this query to get the max(level)?
    This query displays all levels 1, 2, 3
    SELECT employee_name, LEVEL,
    SYS_CONNECT_BY_PATH(employee_name, '/') "PATH"
    FROM employee
    START WITH employee_name = 'KING'
    CONNECT BY PRIOR employee_id = manager_id;
    This query returns the employee name and the management chain for each employee starting with the employee 'KING.' The results, using the same values shown in the first example, would look like:
    EMPLOYEE_NAME PATH LEVEL
    King /King 1
    Greenberg /King/Greenberg 2
    Faviet /King/Greenberg/Faviet 3
    Chen /King/Greenberg/Chen 3
    Sciarra /King/Greenberg/Sciarra 3
    Urman /King/Greenberg/Urman 3
    Popp /King/Greenberg/Popp 3
    My question is -
    How can I modify this query to get the max(level)?
    ie - only these records -
    Faviet /King/Greenberg/Faviet 3
    Chen /King/Greenberg/Chen 3
    Sciarra /King/Greenberg/Sciarra 3
    Urman /King/Greenberg/Urman 3
    Popp /King/Greenberg/Popp 3

    sql>select level, sys_connect_by_path(e.ename, '/') path
      2    from emp e
      3   where level = (select max(level)                 
      4                    from emp
      5                   start with mgr is null
      6                   connect by prior empno = mgr)
      7   start with mgr is null
      8   connect by prior empno = mgr;
        LEVEL PATH
            4 /KING/JONES/SCOTT/ADAMS
            4 /KING/JONES/FORD/SMITH
    2 rows selected.
    sql>select level, sys_connect_by_path(e.ename, '/') path
      2    from emp e
      3   where level = (select max(level) - 1             
      4                    from emp
      5                   start with mgr is null
      6                   connect by prior empno = mgr)
      7   start with mgr is null
      8   connect by prior empno = mgr;
        LEVEL PATH
            3 /KING/JONES/SCOTT
            3 /KING/JONES/FORD
            3 /KING/BLAKE/ALLEN
            3 /KING/BLAKE/WARD
            3 /KING/BLAKE/MARTIN
            3 /KING/BLAKE/TURNER
            3 /KING/BLAKE/JAMES
            3 /KING/CLARK/MILLER
    8 rows selected.

Maybe you are looking for

  • How to fix game freeze lag?

    I have some serious freezelag when i play online games like Starcraft 2 and World of Warcraft even if i adjust everything to low graphics it still freeze. It started small a few weeks ago and now it's worse, i havent had any of the issues with the vi

  • My Book won't show up on harddrive

    I unplugged the My Book from my Mac OS X 10.6.2. I got a message that said to eject the disk before unplugging. I replugged in the My Book and it showed up on the hard drive. Then I ejected it because I wanted to see it I could plug it into the Airpo

  • National characters and new Java API

    Hi All, I'm looking for your experience with new java api and national characters (like: ü, ś, ć, etc.). The problem is that when record was updated using MDM Data Manager, and retrieved using new java api - national character are invalid (in java st

  • PROBLEMS WITH VIDEORA CONVERTER

    hello. i went and downloaded a dvd encrypter and the videora ipod converter. the video itself has been converted, AND in itunes but when i try to drag it to my ipod it says it could not go in my ipod cause my ipod will not play it. please help!!!

  • Values in two columns in Excel

    Good morning I am writing the values to the Excel from 2 sequences, now in the excel it writes one below the other but i like to write in separate columns Thanks