I want to integrate power shell in visual studio.

i want to integrate power shell with visual studio & want to make a tool for office 365.

There are some cmdlets of power shell which are used in Microsoft exchange online
2013.e.g.-get-mailbox.it will give me result on front end & power shell will run in background
after passing the credentials of I want to make a web page by using  visual studio 2010 on
which i use check box list of these commands.When i click on any command exchange
online.There should be no need to launch power shell & pass the parameters of any
command.

Similar Messages

  • To integrate power shell with visual studio

    How to integrate power shell with visual studio.

    We do have a Add in available for Visual Studio - this is not for building GUI
    https://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597
    Are you looking for Windows Forms? or WPF?
    If WPF see the example code below
    https://gallery.technet.microsoft.com/WPF-Windows-Presentation-720ff7ee
    Regards Chen V [MCTS SharePoint 2010]

  • How to Execute Power Shell Command From Windows Application.

    Hi All Experts,
    I want to execute power shell commands from my windows application.
    Is it possible ?
    Please let me know your comments..
    Thanks.

    I have not tried this, but apprently it is easy as in the sample pasted below. please see this article for more details
    http://geekswithblogs.net/Norgean/archive/2012/09/19/running-powershell-from-within-sharepoint.aspx.
    Let me know how it goes...
    public string RunPowershell(string powershellText, SPWeb web, string param1, string param2) {
    // Powershell ~= RunspaceFactory - i.e. Create a powershell context
    var runspace = RunspaceFactory.CreateRunspace();
    var resultString = new StringBuilder();
    try
    // load the SharePoint snapin - Note: you cannot do this in the script itself (i.e. add-pssnapin etc does not work)
    PSSnapInException snapInError;
    runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.SharePoint.PowerShell", out snapInError);
    runspace.Open();
    // set a web variable.
    runspace.SessionStateProxy.SetVariable("webContext", web);
    // and some user defined parameters
    runspace.SessionStateProxy.SetVariable("param1", param1);
    runspace.SessionStateProxy.SetVariable("param2", param2);
    var pipeline = runspace.CreatePipeline();
    pipeline.Commands.AddScript(powershellText);
    // add a "return" variable
    pipeline.Commands.Add("Out-String");
    // execute!
    var results = pipeline.Invoke();
    // convert the script result into a single string
    foreach (PSObject obj in results)
    resultString.AppendLine(obj.ToString());
    finally
    // close the runspace
    runspace.Close();
    // consider logging the result. Or something.
    return resultString.ToString();
    Ok. We've written some code. Let us test it.
    var runner = new PowershellRunner();
    runner.RunPowershellScript(@"
    $web = Get-SPWeb 'http://server/web' # or $webContext
    $web.Title = $param1
    $web.Update()
    $web.Dispose()
    ", null, "New title", "not used");
    -Sangeetha

  • Visual Studio Website

    HI,
    Just a preface, I have limited experience with visual basic, and no experience with Visual Studio at all.
    I want to host a website with Visual Studios 2012 from my windows 7 desktop that will take input from the user, do some data manipulation with Excel and another program through visual basic, and then return an Excel file with the processed data to the user.
    Is this possible to do with Visual Studios?
    Thanks
    JD

    Hi JD,
    Thank you for posting in MSDN forum.
    Since this forum is discuss this VS IDE issue, as you said issue, I think that it may be related to the Website application develop. So I suggest you could post this issue directly to the ASP.NET forum:
    http://forums.asp.net/ , you will get better support.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to get Crystal Reports for Visual studio Download

    I'm confused!  All the links seem to take me to this page SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    It has lots of fixes and updates but I can't seem to find the actual Crystal reports for Visual Studio 2010 download.  What am I missing?  Am I just blind?
    EDIT - I reread the page "All support packs are full builds of Crystal Reports for Visual Studio 2010/2012, thus it is not necessary to update incrementally"  Does this mean  the update download includes everything I need to integrate CR with my Visual Studio 2010?  If so, is it save to install the update over a previously installed version?  I have one machine that has both CR for VS 2005 and CR for VS 2010.
    thanks for any advise

    Does this mean  the update download includes everything I need to integrate CR with my Visual Studio 2010?
    Yes.
    Follow the below procedure to integrate CR for VS 2010 with VS 2010.
    from the link http://scn.sap.com/docs/DOC-7824 download 'Support Pack 10 Install executable' (first row first column).
    Make sure you have VS 2010 installed. Now install the above downloaded exe on top of VS 2010.
    That is it, above steps should integrate CR with VS 2010.
    Even if you have a previous version of CR for VS 2010 installed, iw ould not make a difference as it is not a incremental build but a full build.
    I hope this clears the confusion.
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Experiencing issues in accessing the APIs with Visual Studio 2008

    Hi,
    I am new to the RIM programming. Read through the Blackberry APIs and wanted to develop a widget through Visual Studio 2008 using Blackberry APIs by loading the web plug-in. As specified in a few examples, trying to access few functions but system is throwing an error saying 'feature' not supported and it does not recognises 'invoke' class of blackberry.
    Can any one please assist to resolve this issue.
    Code -
    in Index.htm have put the below code  -
    <feature id="blackberry.app.event" version="1.0.0"/>
    <html>
        <head>
            <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no" />
            <title>Untitled Page</title>
            <script type="text/javascript" src="Scripts/MyActions.js">
            </script>
        </head>
        <body>
    <div> <input type="button" value="What is my PIN BB... ?" onclick="DisplayPIN();"/> </div>
    <div> <input type="button" value="What do I have planned today?" onclick="launchCalendar();" /> </div>......
    in Actions.js have put the below function
    function launchCalendar() {
        var today = new Date();
        alert("Today is " + today.toString());
        var calendarArgs = new blackberry.invoke.CalendarArguments(today);
        calendarArgs.view = blackberry.invoke.CalendarArguments.VIEW_DAY;
        blackberry.invoke.invoke(blackberry.invoke.APP_CALENDAR, calendarArgs);

    It worked. I seem to misplace the <feature> tag. It's a part of config.htm.
    It ran successfully with some other features added to my widget.
    But today again when I launched the app and tried to click a button in the simulator (9650) it doesn't responds at all. Debugging feature too doesn't works. Control is not getting trasnferred the Visual Studio 2008 even if I put a break point. Can someone help me solve this.

  • Not able to deploy windows kernel driver on target machine from visual studio

    I have created windows kernel driver, and signed it with production certificate. Now I could install this driver on my target machine manually(copying inf, cat and sys). 
    I want to make use of the visual studio 2013's deployment facility to deploy the driver automatically. But when I try to add the target computer(with administrative account) it failed with error message "The account credentials used to connect to the
    target computer could not gain administrator access to the target computer. Try using the built-in Administrator account".
    what possibly could be wrong?

    Pavel The host machine is on a domain(say ABC) and I am logged In as the domain administrator. On The target machine I am logged in as the local administrator. Now while adding the target computer from visual studio I am asked for the administrator account
    credentials and I am providing the local administrator credentials there.
    Pavel I found it is necessary to install "WDK Test Target Setup x64-x64_en-us.msi" on the target machine which I had not run. Once installing that I passed through the previously mentioned steps and after performing few installations target machine
    got rebooted. And then the deployment process hanged on step a "Attempting to connect...". Tried this for multiple times but result in to the same problem.

  • Updating In-Flight SharePoint 2013 Workflows (Visual Studio)

    Is there any guidance on the best strategy for upgrading in-flight SharePoint 2013 Workflows?  I am currently developing a SharePoint 2013 Workflow using Visual Studio 2012.  The workflow has 6 phases and may take up to a month to complete. 
    I need a plan for when I will inevitably need to make a change to the workflow.
    I am concerned that simply deploying a new version of a WSP with new XAML might cause a breaking change to in-flight workflows.  This was a major problem in 2007/2010, and in the past I have created a new version of the workflow when deploying a change. 
    SharePoint 2013 designer workflows automatically create a new version when published, but unfortunately with Visual Studio workflows this is not the case.  Updating the WSP and reactivating the feature will force new workflow code to run, but I think
    this could cause issues when the workflow state data is de-serialized.

    Hi,
    According to your post, my understanding is that you want to update in-flight SharePoint visual studio workflow.
    To update the in-flight workflow, such as in the production environment, we can do the steps as below(Make sure you test this first on a DEV server).
    Updated the solution (Update-SPSolution)
    Disabled the feature(Disable-SPFeature)
    Enabled the feature again (Enable-SPFeature)
    Then the existing workflow would use the old version workflow, the new workflow instances would use the new version workflow definition.
    For more information:
    https://social.technet.microsoft.com/Forums/en-US/f3ae607b-a16c-477e-9c2f-f0dc76f6849f/updating-sharepoint-2013-workflow-in-production-environment-not-during-development?forum=sharepointdevelopment
    More reference:
    http://sp2013workflows.blogspot.com/2014/06/update-workflow-definition-in.html
    Thanks,
    Jason
    Forum Support
    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]
    Jason Guo
    TechNet Community Support

  • How to develop android app in visual studio 2012

          
    I want to develop android app using visual studio 2012 for learning purpose.
    R@hulchalkhure

    Hi R@hulchalkhure,
    Visual C# forum is discuss and ask questions about the C# programming language, IDE, libraries, samples, and tools.  Based on your case related to android app, I am afraid it is out of our support.  Thanks for your understanding.
    If you want to about VS issue, please post
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=visualstudiogeneral
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Visual Studio 2015 compatibility with older versions

    Hi,
    I have already installed Visual Studio 2010 and 2013 on my Windows Server 2012.
    I want to know can I install Visual Studio 2015 on same machine? is there possible any conflict with older version?
    I have many projects in old version and need to open and work on them too.  Thanks.

    Hi,
    I have already installed Visual Studio 2010 and 2013 on my Windows Server 2012.
    I want to know can I install Visual Studio 2015 on same machine? is there possible any conflict with older version?
    I have many projects in old version and need to open and work on them too.  Thanks.
    You should be able to install Visual Studio 2015 alongside 2013 and 2010. However, I'd advise against it until the release version of Visual Studio 2015 becomes available. There may be issues down the road upgrading the preview version of VS 2015 with the final
    retail version.

  • How to download setup file for visual studio community?

    i want to download a copy of visual studio community but web based installation system taking too much time.....i have to continuously run my computer for at least 2 days to completely install the package.....where can i get the setup file which can be
    downloaded like any other file from internet?

    Your other option would be to download the ISO, which will also take a long time on a slow Internet connection. Once you have the ISO, you can check the SHA-1 to confirm that you got a valid download. Then, you can install locally much faster than with the
    web installer over your connection.
    You can get the ISO here: http://go.microsoft.com/?linkid=9863609

  • Integrating crystal report into the visual studio standard edition IDE

    I have visual studio 2005 standard edition. I need to upgrade some asp.net reports that were done using visual studio 2003.
    I have just install Crystal Reports XI developer edition version 11.0.0.1282.  How can I integrate Crystal into the Visual Studio 2005 IDE?

    Hi
    I would like to inform you that VS 2005 is only compatible with CR XI R2 and CR 2008.
    Have look in supported platform guide:
    https://websmp105.sap-ag.de/bosap-support
    You need to upgrade CRXI to CRXIR2 then try to solve this issue.
    To download the CR XI R2 follow the instructions given below:-
    Crystal Reports XI is installed on your computer. You need to manually uninstall Crystal Reports XI for one of the following reasons:
    u2022 To verify that all Crystal Reports XI components have been completely removed prior to installing a later version of Crystal Reports.
    u2022 To remove the remaining Crystal Reports XI components that have not been removed using the 'Add/Remove Programs' command (Start > Settings > Control Panel).
    u2022 To remove the remaining Crystal Reports XI components that have not been removed using the Setup.exe file from Crystal Reports XI installation CD.
    How do you manually uninstall Crystal Reports XI?
    Resolution
    Before getting started, uninstall Crystal Reports XI by launching the Setup.exe file from the installation CD or by using the 'Add/Remove Programs' command. If either of these methods fails to remove all Crystal Reports directories, files and registry keys, then continue with the resolution of this article.
    ==========
    WARNING:
    This resolution can be applied if Crystal Reports XI is the only software installed on the computer that uses the Business Objects directories, files and registry keys.
    For example, Crystal Analysis, Crystal Enterprise and BusinessObjects Enterprise XI are applications that may share the same directories, files and registry keys.
    Removing these directories, files and registry keys may cause other software to function incorrectly.
    ==========
    1. To manually uninstall Crystal Reports XI, delete the following directories:
    u2022 C:\Program Files\Common Files\Business Objects\3.0
    u2022 C:\Program Files\Business Objects
    ====================
    NOTE:
    Do not remove the directory C:\Program Files\Common Files\Business Objects\3.0 if you have BusinessObjects Enterprise XI or Crystal Reports Server XI installed. These files are shared by both applications and removal of these files will cause Business ObjectsEnterprise XI and Crystal Reports Server XI to function incorrectly.
    ====================
    2. Delete the following registry keys:
    ====================
    WARNING:
    The following resolution involves editing the registry. Using the Registry Editor incorrectly can cause serious problems that may require you to reinstall the Microsoft Windows operating system. Use the Registry Editor at your own risk.
    HELP:
    For information on how to edit the registry key, view the 'Changing Keys And Values' online Help topic in the Registry Editor (Regedit.exe).
    RECOMMENDATION:
    It is strongly recommended that you make a backup copy of the registry files (System.dat and User.dat on Win9x computers) before you edit the registry.
    ====================
    u2022 HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects
    u2022 HKEY_CURRENT_USER\Software\Business Objects
    u2022 HKEY_USERS\S-#-#-##-...-####\Software\Business Objects
    (The number signs (#) represent a series of numbers that are different on each computer.)
    ====================
    NOTE:
    After making changes to the registry, restart the affected service or application as required.
    After deleting the CR XI from the system install the CR XI R2 full build and provide the same key as you provided in CR XI.
    URL to download CR XI R2 is: - http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2
    Click on
    Service Pack 2 - Full build  - ZIP - 1.03 GB - released April 2007
    I would suggest to use the latest service pack of CR XI R2 i.e. Service Pack 4.
    to download SP4 click [here|http://resources.businessobjects.com/support/additional_downloads/service_packs/crystal_reports_en.asp#CRXIR2].
    Note:- before installing SP4 - you must have installed CR XI R2 SP2
    Hope this helps!!
    Regards,

  • Add or delete the summary links web part's[deployed as a VS solution] link using power shell

    hi,
     i am having a visual studio custom solution having page layouts implemented. In that solution i am having 1  summary links web part and in that i have hard coded few links and this is  deployed on ion dev and staging env.
    Now, the issue is : yesterday, customer came to me and asking me to change the links from http://abc to
    http://xyz/ in this summary links. can anyone pls throw some light,such that i can change this link using a power shell script. i know  if i go the VS solution and change the link and redeploy [ update-spsolution
    command] will work.
    but if the links are changing regularly , chnaging the vs solution and redeploying is not a good practice.
    if i elaborate li'l bit,  i am adding the screen shot : i need to get the summary link column's value and  need to update[ delete xisting one and  add new ones ]
    is there any way , i can change the links using power shell script?
    i tried the belwo power shells cript to get the page in the page layouts :
    $web = get-spweb
    "http://siteurl"
    $pubWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pagesListName = $pubWeb.PagesListName
    $defaultAspxFile = $pubWeb.GetPublishingPage("$pagesListName/mycustomhome.aspx")
    $summaryLinkFieldValue = New-Object
    Microsoft.SharePoint.Publishing.Fields.SummaryLinkFieldValue
    // here am getting the NULL VALUE
    can i get the  summary links field correctly and  delete / modify the same?
    help is appreciated!
    ##$groupLink = New-Object
    Microsoft.SharePoint.Publishing.SummaryLink("My group")
    #$groupLink.IsGroupHeader = $true $summaryLinkFieldValue.SummaryLinks.Add($groupLink)

    Hi Shabeaut,
    Could you tell us why do you want to add a link web part to the master page for all pages?
    I tested that Summary Links web part (and other types of web parts) added in the master page under Quick Launch couldn't be edited when I edit the pages inherited from v4.master page, it looks by design.
    Have you tried using the Quick Launch to add the link instead if you want to show links in all pages.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Power Shell script to send a email with event details when an specified event occur

    I want a power shell scrip to send a email to a specific email id with the event details when an specified event triggered. The default option to trigger the email on event occur is failed.

    Why is everybody now saying "I want, I want, I want"
    Can you say what is happening?  Can you post a script with a line that is failing?  No!  All you want is a free script.
    Start by learning how to script.   Try at least to write a simple "hello World" script.  Until then you cannot post here.
    ¯\_(ツ)_/¯

  • Should I update my windows power shell???

    I have windows power shell 2.0 since I bought this computer  four years ago but so far I have not done it.
    I am in doubt about which version to update to. Itcould be version 3.0 our 4.0??? I have  MICROSOFT WEB PLATAFORM INSTALLER   which has version 3.0 to download but I know that there already is a new version 4.0 . So which one should I download
    if necessary???   Thanksss!!!

    Which operating system are you running?
    I would upgrade if I wanted to use or write scripts that make use of features in later versions. 
    Jason Warren
    @jaspnwarren
    jasonwarren.ca
    habaneroconsulting.com/Insights

Maybe you are looking for

  • Font in swf file changes with indesign

    Hi, I am creating an indesign presentation, and have included a swf movie I created in Flash Professional. The movie contains some text, which appears fine in Flash Pro and fine in the indesign preview tool, but once the indesign file is exported to

  • Page Setup Using Custom Sizes in Word2003

    I am trying to set a custom screen size of 8" x 8" for a pdf document, converting it from a Word2003 document. I have the set a custom page size to 8 x 8 prior to converting, but in the pdf display reverts to a page size of 8.5 x 11. I am using PDF 9

  • Link to a serch request!

    Hello developer, I'd like to know if it is possible to create a link to send a request to a query of the search engine and show the result without to write everytime the query. Example I have the link "Motors" if the user clik on it, he can see all t

  • Scanned document being saved at large size...

    I am scanning a normal 8.5 X 11 in document into a pdf.  But when I open the document it looks normal till I notice the visible percentage window value, it says 22.7% and its set to 'Fit Visible'.  It seems to be saving it at the size of '35.42 X 48.

  • What's the blinking green light???

    besides to drive me crazy of course. I know when it 's red I have a message, but it's been blinking all night and I had to cover it up only to find this morning it is still alive! What's it mean? How do I shut it off? Solved! Go to Solution.