Get Poweshell script to run in Exchange Power Shell on openingImport CSV file into Exchange Mail Contacts...

Writing rule stating superpower from different root cause is bad writing

What are the differences between the usage of 'it' and 'they'?

How to format long polynomial?

Is it possible to do 50 km distance without any previous training?

Show that if two triangles built on parallel lines, with equal bases have the same perimeter only if they are congruent.

Minkowski space

The use of multiple foreign keys on same column in SQL Server

Why does Kotter return in Welcome Back Kotter?

Modeling an IPv4 Address

Why was the small council so happy for Tyrion to become the Master of Coin?

Do VLANs within a subnet need to have their own subnet for router on a stick?

Why are electrically insulating heatsinks so rare? Is it just cost?

Why do falling prices hurt debtors?

Which models of the Boeing 737 are still in production?

How does strength of boric acid solution increase in presence of salicylic acid?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Is it legal for company to use my work email to pretend I still work there?

Is a tag line useful on a cover?

Languages that we cannot (dis)prove to be Context-Free

TGV timetables / schedules?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Why dont electromagnetic waves interact with each other?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

Python: next in for loop



Get Poweshell script to run in Exchange Power Shell on opening


Import CSV file into Exchange Mail Contacts using powershell without duplicatesImport a CSV File in a database w/ powershell jobsGet first name in an array of key-value pairs in PowerShellPowershell Script for Battery Status Monitoring and information via blat (E-Mail)Editing the first/last lines of a 1GB+ text file on Windows without loading the entire file into memoryHow do you pass “Program Files (x86)” to Powershell?PowerShell Script Context Menu Entry to Run Script as Administrator Without ExitingInstall Notepad++ with Context Menu OptionSetting responce messages for Resources in Exchange 2013Extracting Email Address from Microsoft Exchange






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have a script for extracting mailbox sizes from our exchange server saved in a .ps1 file.



Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, ItemCount, TotalItemSize(MB) | Export-CSV "mailboxsize3.csv"


When I right click it there is a menu option to "Run with Powershell"



What do I need to add to the script or to the exchange server so that I can get it run in Exchange Management Shell.



Kind regards



Matt










share|improve this question





























    0















    I have a script for extracting mailbox sizes from our exchange server saved in a .ps1 file.



    Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, ItemCount, TotalItemSize(MB) | Export-CSV "mailboxsize3.csv"


    When I right click it there is a menu option to "Run with Powershell"



    What do I need to add to the script or to the exchange server so that I can get it run in Exchange Management Shell.



    Kind regards



    Matt










    share|improve this question

























      0












      0








      0








      I have a script for extracting mailbox sizes from our exchange server saved in a .ps1 file.



      Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, ItemCount, TotalItemSize(MB) | Export-CSV "mailboxsize3.csv"


      When I right click it there is a menu option to "Run with Powershell"



      What do I need to add to the script or to the exchange server so that I can get it run in Exchange Management Shell.



      Kind regards



      Matt










      share|improve this question














      I have a script for extracting mailbox sizes from our exchange server saved in a .ps1 file.



      Get-MailboxDatabase | Get-MailboxStatistics | Select DisplayName, ItemCount, TotalItemSize(MB) | Export-CSV "mailboxsize3.csv"


      When I right click it there is a menu option to "Run with Powershell"



      What do I need to add to the script or to the exchange server so that I can get it run in Exchange Management Shell.



      Kind regards



      Matt







      powershell exchange-2013






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      Matt BartlettMatt Bartlett

      12




      12






















          1 Answer
          1






          active

          oldest

          votes


















          0














          You have to set your profile to load the Exchange stuff as you normally would for PSRemoting using Exchange ...



          Connect to Exchange servers using remote PowerShell



          ... or you need to install the EMS on your workstation, and add the Exchange snapin via your profile



          Install the Exchange management tools



          How to add Exchange Snapin to Powershell?






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421876%2fget-poweshell-script-to-run-in-exchange-power-shell-on-opening%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You have to set your profile to load the Exchange stuff as you normally would for PSRemoting using Exchange ...



            Connect to Exchange servers using remote PowerShell



            ... or you need to install the EMS on your workstation, and add the Exchange snapin via your profile



            Install the Exchange management tools



            How to add Exchange Snapin to Powershell?






            share|improve this answer




























              0














              You have to set your profile to load the Exchange stuff as you normally would for PSRemoting using Exchange ...



              Connect to Exchange servers using remote PowerShell



              ... or you need to install the EMS on your workstation, and add the Exchange snapin via your profile



              Install the Exchange management tools



              How to add Exchange Snapin to Powershell?






              share|improve this answer


























                0












                0








                0







                You have to set your profile to load the Exchange stuff as you normally would for PSRemoting using Exchange ...



                Connect to Exchange servers using remote PowerShell



                ... or you need to install the EMS on your workstation, and add the Exchange snapin via your profile



                Install the Exchange management tools



                How to add Exchange Snapin to Powershell?






                share|improve this answer













                You have to set your profile to load the Exchange stuff as you normally would for PSRemoting using Exchange ...



                Connect to Exchange servers using remote PowerShell



                ... or you need to install the EMS on your workstation, and add the Exchange snapin via your profile



                Install the Exchange management tools



                How to add Exchange Snapin to Powershell?







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 23 hours ago









                postanotepostanote

                1,153133




                1,153133






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1421876%2fget-poweshell-script-to-run-in-exchange-power-shell-on-opening%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...