Using powershell to manage multiple azure tenants

Hi,
I use powershell to access a company azure tenant.
i need to connect to other Azure tenants but when i import the "publishsettings" file and try and run a 'get' command i am still connected to the first company tenant.
Is there a way to connect to multiple tenants or a way of disconnecting from the first to allow the connection to next.
Thanks

sorry,
see below example of powershell script
Set-ExecutionPolicy Unrestricted
Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'
Import-AzurePublishSettingsFile 'C:\ps\credentials.publishsettings'
Get-AzureVM 
this returns all the VMs in the Azure tenant, then if i try connect to another with 
Set-ExecutionPolicy Unrestricted
Import-Module 'C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1'
Import-AzurePublishSettingsFile 'C:\ps\credentials2.publishsettings'
Get-AzureVM 
this returns all the VMs from the first tenant i connected

Similar Messages

  • Using BC to manage multiple client sites

    Hi,
    I'm a freelance designer who has recently started delving into the world of web design due to the high demand from my clients!
    I am very interested in the Muse and BC software packages from Adobe and like the way that they interact with eachother to enable more interactive features on websites.
    I am really struggling to get my head around how BC works though?? As mentioned before I have multiple clients that have recently asked me to create/redesign their webistes for them and all of my clients have asked for feature rich websites that either allow them to update certain pages themselves (news pages, menu pages etc.) and add in features that allow for e-commerce/shopping carts.
    I know that combining both Muse and BC will allow me to achieve all of these features but I need to know how I can get BC to manage all of the sites.
    Do I only need a copy of BC myself so I can manage all of the sites in one place or will I need to set up an account for each seperate site and log into each one to manage the modules etc.?
    My ideal scenario would be as follows:
    I have a copy of BC on my machine that I can use to set up each site and manage it. I can then give each individual client login details for their site so they can add/amend content on specific pages that I unlock for them. The clients login details also give them access to the site analytics, create e-shots, update the e-commerce side of the site.
    Each client would then pay the relevant monthly subscription to host their site on BC depending on what level of interactivity they require.
    As I said, I'm struggling to work out how BC works in terms of managing multiple sites so any suggestions/guidance would be great!
    Kind Regards
    Dan

    Hi Dan,
    Firstly you need to understand Muse in the scope of website design & development and also with it and BC.
    Muse is a means for graphic designers to step into the web would and get them going. Its concept as a point and click interface, while built very well from a good team by its very nature is only a stepping stone and basic.
    With that and how it works with BC as well it is only the lower end of what you can do with it and BC. So proper implemented eCommerce etc you simply can not create properly and use and utlise other BC features.
    It does not teach you the javascript etc you need to take a full on BC site to where it needs to be.
    Also while it has been improved the way you develop in Muse and then clients updating content via the admin (as they should being a CMS) it is not the smoothest affair.
    With your next part of your post - To manage many clinets in BC you should look to become a partner. You have access to the partner portal and can manage client sites more easily and access some cool tools to help and aid with that. You get a free partner site for yourself you can use as your business site.
    Lots of info on BC is here:
    http://helpx.adobe.com/business-catalyst/topics.html

  • Using Powershell to set Multiple timed.servers with variables

    Having an issue using PowerShell to set 3 timed.servers which are defined in a variable. Running the commands: $TimeServers = "IPaddress1,IPaddress2,IPaddress3"Set-NaOption -OptionName timed.servers -OptionValue $TimeServers Thanks in advance!

    Hi, The Set-NaOption CmdLet -optionvalue parameter expects a string and it shouldn't matter if that's a comma delimited string containing multiple IP Addresses. I noticed that whilst the cmdlet thows an error it does actually set the option value for all servers so this seems like it could be a bug (IMO). It might be possible to invoke the API using "Invoke-NaSystemApi" but I checked the ZAPI and noticed this also fails using ZExplore from the SDK: ZAPI Request: <?xml version="1.0" encoding="UTF-8"?>
    <netapp  xmlns="http://www.netapp.com/filer/admin" version="1.21">
      <options-set>
        <name>timed.servers</name>
        <value>192.168.100.10,192.168.100.11,192.168.100.12</value>
      </options-set>
    </netapp> ZAPI Results: <?xml version='1.0' encoding='UTF-8' ?>
    <netapp version='1.1' xmlns='http://www.netapp.com/filer/admin'>
        <!-- Output of options-set [Execution Time: 8610 ms] -->
        <results reason='Unable to set option: timed.servers' errno='13001' status='failed'>
            <cluster-constraint>same_preferred</cluster-constraint>
            <cluster_constraint>same_preferred</cluster_constraint>
            <message>1 entry was deleted.
    </message>
        </results>
    </netapp> So i think the options are either using the "Set-NaOption" cmdlet with the -SilentlyContinue parameter or the "Invoke-NaSsh" cmdlet with -ErrorAction stop.As a work around i'd recommend something like: [String]$servers = "192.168.100.10,192.168.100.11,192.168.100.12"
    [String]$command = "options timed.servers $servers"
    Try{
       Invoke-NaSsh -Command $command -ErrorAction Stop
       Write-Host "Executed Command: $command"   
    }Catch{
       Write-Warning -Message $("Failed Executing Command: $command. Error " + $_.Exception.Message)
    } Hope that helps /matt

  • Network query related to deployment on Azure using powershell

    Hi,
    Firstly, I apologize as the question may sound very naive but somehow I am not able to get clear explanation (or may be I am missing something very basic).
    I have a package (.pkg) present on a remote machine (on a corporate network). I need to upload this to Azure using powershell. I write a basic Powershell script (on my local computer connected to a home network) which will upload this .pkg to a cloud service
    on Azure. But first, I need to upload the .pkg to Azure storage to avoid any bandwidth issues from where the package will be picked-up. Hence, I have written a script to upload .pkg to azure storage first. 
    As I see, the bytes (.pkg) on my home network getting downloaded on my local machine and then it gets uploaded to blob storage (upload/download uses my home network). Is there a way/possibility where the files can just be moved/copied from that corporate
    network to blob storage directly? As I get it from few others, this is how OS behaves, Is it true? Can someone please explain this?
    Thanks!

    Hi Deepak,
    In my expression, you want to run the PowerShell Script on the remote computer in corporate network form the home network.
    To manage remote computer with PowerShell, maybe you can try Windows PowerShell Web Access:
    Introducing Windows PowerShell Web Access in Windows Server 8 Beta
    Install and Use Windows PowerShell Web Access
    Remoting Week: Non-Domain Remoting
    I hope this helps.

  • Managing multiple devices in a family - iCloud better using Mac or PC?

    Anyone using a Mac to manage multiple i devices? We're sharing an iTunes account in the family and are finding limitations using iCloud on our PC. Specifically, can you manage iCloud on each device from a Mac?

    The only practicable way to do this is for each person who has an iCloud account to have their own user account on the Mac, They can then sign into iCloud and keep their data separate from everyong else.
    It is possible to have a single user account and sign into one iCloud account in System Preferences>iCloud and then sign into subsequent ones in System Preferences>Mail, Contacts and Calendars, but if you do this with a number of accounts it will get messy, and everyone will see everyone else's data and emails.
    If you enable 'Fast use switching' you can have several user accounts running at once and simply switch between them (though of course this all takes processing power and RAM). Probably better for everyone to sign in and sign out to their user account when they want to use the Mac - that feels like everyone having their own computer.

  • Split large .pptx file to multiple files using PowerShell

    Hi.
    I'm not a programmer and I have the task to split big .pptx file(>100 slides) to multiple .pptx files with 4 slides in each one and save them into SP library. It should be done on PowerShell.
    Thanks for any help!

    Hi,
    For splitting PowerPoint files into multiple parts, I would suggest you post this question to Office forum, you will get more help and confirmed answers there:
    http://social.technet.microsoft.com/Forums/office/en-US/home
    For uploading files to SharePoint Library using PowerShell, here are some links with script demos provided for your reference:
    http://social.technet.microsoft.com/wiki/contents/articles/19529.sharepoint-2010-upload-file-in-document-library-using-powershell.aspx
    http://spfileupload.codeplex.com/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to update managed metadata column for all file in document library using powershell

    Hi,
    How to update managed metadata column for all file in document library using powershell?
    Any help on it.
    Thanks & REgards
    Poomani Sankaran

    Hi TanPart,
    I have changed the code which you have give in order to get the files from SharePoint 2010 Foundation  Document Library.But i am getting below error in powershell.
    Property 'ListItemCollectionPosition' cannot be found on this object; make sure it exists and is settable.
    Could you tell me which is the issues in it?
    See the code below.
    $web = Get-SPWeb http://ntmoss2010:9090/Site
    $list = $web.Lists["DocLib"]
    $query = New-Object Microsoft.SharePoint.SPQuery
    $query.ViewAttributes = "Scope='Recursive'";
    $query.RowLimit = 2000
    $caml = '<Where><Contains><FieldRef Name="Title" /><Value Type="Text">Process Documents/Delivery</Value></Contains></Where>' +
            '<OrderBy Override="TRUE"><FieldRef Name="ID"/></OrderBy>'
    $query.Query = $caml
    do
        $listItems = $list.GetItems($query)
        $spQuery.ListItemCollectionPosition = $listItems.ListItemCollectionPosition
        foreach($item in $listItems)
            #Cast to SPListItem to avoid ambiguous overload error
            $spItem = [Microsoft.SharePoint.SPListItem]$item;
            Write-Host $spItem.Title       
    while ($spQuery.ListItemCollectionPosition -ne $null)
    Thanks & Regards
    Poomani Sankaran

  • Use of MS Project Management 2010 to Manage Multiple projects over a given time period

    Is there some information (article/s) I can research about using MS Project Management 2010 for managing multiple projects over a given time period? I'm being asked by a potential client to take a job as a Program Manager to manage five projects all
    at once. Each of the projects has it's own MS Project Management software, project leader, and project team. An overall project plan has to be put together to manage this large project. There are some dependencies with these projects inorder to complete
    on a specific date.
    Thanks

    SSCDML --
    In order to manage this program of five projects using Microsoft Project 2010, I would recommend you do the following:
    Create a shared resource pool file containing the resources in all five projects.
    Connect each of the five projects as sharing files with the shared resource pool file to share the resources.
    Create a master project for the program containing each of the five projects as subprojects.
    In the master project, set cross-project links as needed to show dependencies between projects.
    Hope this helps.
    Dale A. Howard [MVP]

  • What is the best way to manage multiple ipods using the same itunes?

    Hi Everyone
    i am trying to manage three different ipods through the one Itunes, all with very different tastes, not sure if I am doing it the best or easiest way so does anybody have a simple solution on what you're supposed to do, to keep it all simple!
    Cheers
    Liv

    If you have created a new Windows user account you need to log out and then log back in with your original user name. By default each Windows profile will have an independent iTunes library.
    If instead you managed to create a new library within the same profile. click the icon to start iTunes and immediately press and hold down the shift key, keep holding until asked to create or choose a library. Click Choose and navigte back to your original which should be at <User's Music>\iTunes.
    Your question as posed was:
    What is the best way to manage multiple iPods using the same iTunes {library}?
    in which case Selected Playlists is probably the best approach. Simply create a playlist for each device, Alice's iPod, Bob's iPhone etc. and sync the device with the appropriate list.
    tt2

  • Manage MSMQ is missing from Failover Cluster Manager when configured using powershell

    Hi,
    I am hoping someone would be able to help me as I have looked on the internet for an answer to this. We deploy a number of servers that are configured using Powershell. I am in the process of creating a clustered WIN2K8R2 cluster with MSMQ. I am able to
    do this successfully through the Failover Mgr with no issues.  In addition, I can do this via Powershell (code listed below) with one caveat.
    However, when I create the same exact MSMQ in Powershell, I am unable to right click on the MSMQ service to manage it as the "Manage MSMQ" is missing when I right click on it. The settings are the same, including dependencies. The only difference
    I have been able to find is the icon in the Failover Manager shows the Service as a Generic Service icon when created in Powershell, but when it is created in the GUI it shows up as the MSMQ icon. I was able to verify this in the registry in HKLM\Cluster\Groups\<GUID>\:
    GroupType HEX: 68 for msmq icon. When it is the Generic Service icon it is HEX: 270f. When I change it from 270f to 68, the icon changes in Failover Manager and I am able to open, but then I get an invalid handle and I am unable to manage it.
    This is causing an issue, because I want to automate this build and hand it over, but they would be unable to manage it except by programming which the operators are not ready for.
    Here is the code which I have created in Powershell:
        Write-host "Configuring MS MSMQ Cluster Failover..."
        $CluName = "Cluster Name"
        $ClsMSMQName = $CluName.Name + "MSMQ"
        $ClsMSMQResourceName = "MSMQ-" + $ClsMSMQName
        $Response = Read-host "Enter the IP Address of the Clustered MSMQ"
        $ClsIpRes = get-clusterresource "Cluster IP Address"
        $MSMQIpAddr = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $ipres,Address,$Response
        Add-ClusterServerRole -Name $ClsMSMQName -Storage "Cluster Disk" -StaticAddress $MSMQIpAddr.value
        # Add the MSMSMQ Service to the new Server Role
        Get-ClusterGroup $ClsMSMQName | Add-ClusterResource -Name $ClsMSMQResourceName -ResourceType "MSMQ"
        # Create Dependencies for the MSMQ group
        Add-ClusterResourceDependency $ClsMSMQResourceName $ClsMSMQName
        Add-ClusterResourceDependency $ClsMSMQResourceName "Cluster Disk"
        # Start MSMQ group
        Start-ClusterGroup $ClsMSMQName
    You would just have to change "Cluster Disk" and "Cluster Name".
    Thank you

    Hi,
    I am hoping someone would be able to help me as I have looked on the internet for an answer to this. We deploy a number of servers that are configured using Powershell. I am in the process of creating a clustered WIN2K8R2 cluster with MSMQ. I am able to
    do this successfully through the Failover Mgr with no issues.  In addition, I can do this via Powershell (code listed below) with one caveat.
    However, when I create the same exact MSMQ in Powershell, I am unable to right click on the MSMQ service to manage it as the "Manage MSMQ" is missing when I right click on it. The settings are the same, including dependencies. The only difference
    I have been able to find is the icon in the Failover Manager shows the Service as a Generic Service icon when created in Powershell, but when it is created in the GUI it shows up as the MSMQ icon. I was able to verify this in the registry in HKLM\Cluster\Groups\<GUID>\:
    GroupType HEX: 68 for msmq icon. When it is the Generic Service icon it is HEX: 270f. When I change it from 270f to 68, the icon changes in Failover Manager and I am able to open, but then I get an invalid handle and I am unable to manage it.
    This is causing an issue, because I want to automate this build and hand it over, but they would be unable to manage it except by programming which the operators are not ready for.
    Here is the code which I have created in Powershell:
        Write-host "Configuring MS MSMQ Cluster Failover..."
        $CluName = "Cluster Name"
        $ClsMSMQName = $CluName.Name + "MSMQ"
        $ClsMSMQResourceName = "MSMQ-" + $ClsMSMQName
        $Response = Read-host "Enter the IP Address of the Clustered MSMQ"
        $ClsIpRes = get-clusterresource "Cluster IP Address"
        $MSMQIpAddr = New-Object Microsoft.FailoverClusters.PowerShell.ClusterParameter $ipres,Address,$Response
        Add-ClusterServerRole -Name $ClsMSMQName -Storage "Cluster Disk" -StaticAddress $MSMQIpAddr.value
        # Add the MSMSMQ Service to the new Server Role
        Get-ClusterGroup $ClsMSMQName | Add-ClusterResource -Name $ClsMSMQResourceName -ResourceType "MSMQ"
        # Create Dependencies for the MSMQ group
        Add-ClusterResourceDependency $ClsMSMQResourceName $ClsMSMQName
        Add-ClusterResourceDependency $ClsMSMQResourceName "Cluster Disk"
        # Start MSMQ group
        Start-ClusterGroup $ClsMSMQName
    You would just have to change "Cluster Disk" and "Cluster Name".
    Thank you

  • Is it possible to do Continuous deployment for azure cloud services(website,web and worker roles) using VSO Release management?

    Hi,
    I am trying to do continuous deployment using visual studio online and release management for Azure cloud services. But not able to find the way to do it(with the help of different blogs, those are describing using VM only).
    I tried using Release management visual studio extension also. But no Luck.
    Please help me if it is possible to do continuous deployment using release management.
    Thanks,
    Phani

    Hi,
     Please refer to the following Forum Thread with similar question which has been answered. Let us know if this helps.
     https://social.msdn.microsoft.com/Forums/en-US/9d8322f6-36e5-4cca-a982-d420d34d2072/realease-management-deployment-to-azure-websites-webworker-roles?forum=tfsbuild
    Regards,
    Nithin Rathnakar

  • Management Point created using Powershell will error CM Console when viewing properties

    Greetings,
    We have an established ConfigMgr 2012 R2 CU3 environment with several Primaries and management points already active. These were all installed manually using the CM Console.
    I am now trying to add additional Management Points using Powershell using the command:
    Add-CMManagementPoint -enablessl -sitecode "ABC" -sitesystemservername "MPservername.domain.com" -allowdevice -clientconnectiontype internetandintranet -generatealert -verbose
    The PS completes without error, the MPSetup.log and MPControl.log indicate all is well once the setup completes
    The MP appears as a component under the Server when viewing in the console
    The IIS logs show clients communicating fine and the CM component Status monitor is all green with no errors showing in the status message
    A Get-CMManagementPoint returns fine showing all the same details as other working MP's
    However if I try to view the properties of the Management Point from the console, the console will error
    If I click Continue it will open the properties but they don't appear correctly. The "sitedatabase" tab is missing and the mobile device and generate alert boxes aren't selected. If I click Quit the then console crashes.
    So everything appears to be working, except for being able to view the actual properties through the console.

    It doesn't appear to give a specific error
    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.
    ************** Exception Text **************
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at Microsoft.ConfigurationManagement.AdminConsole.SiteSystems.ManagementPointConnectionsControl.InitializePageControl()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnInitialize()
    at Microsoft.ConfigurationManagement.AdminConsole.SmsPropertyPage.OnLoad(EventArgs e)
    at System.Windows.Forms.UserControl.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.ControlCollection.Add(Control value)
    at System.Windows.Forms.TabControl.ControlCollection.Add(Control value)
    at System.Windows.Forms.TabControl.TabPageCollection.Add(TabPage value)
    at Microsoft.EnterpriseManagement.ConsoleFramework.SheetFramework.AddTabs()
    at Microsoft.EnterpriseManagement.ConsoleFramework.SheetFramework.OnLoad(EventArgs e)
    at Microsoft.ConfigurationManagement.AdminConsole.DialogFramework.Forms.SmsPropertySheet.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ************** Loaded Assemblies **************
    Followed by lots of entries of the loaded dll's and finished off with
    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.
    For example:
    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>
    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

  • Please help me manage multiple social media accounts... what application or extension should I be using on the mac

    Help:
    So all of a sudden, I am in a position where I need to manage multiple social media accounts, Please tell me what is the best app or extension or whatever to use on a Mac with Twitter, and Tumbler, and Facebook, and all the other sites I need to be streaming... please advice anyone..

    This is Keynote discussion, the  presentation application part of iWorks.
    You should post this in the appropriate discussion for the operating system you have.

  • Set storage quota on multiple mailboxes using PowerShell?

    I need to set storage quota limits on multiple mailboxes using PowerShell. I understand I can create a .csv file with aliases and pipe that into a cmdlet, eg.,
    Import-CSV "C:\temp\alias.csv" | % {Set-Mailbox -identity $_.alias -IssueWarningQuota 900mb -ProhibitSendQuota 950mb -ProhibitSendReceiveQuota 1gb -UseDatabaseQuotaDefaults $false
    Is there any other way of doing this with a much more robust script?
    Any help would be much appreciated.

A: Set storage quota on multiple mailboxes using PowerShell?

Hi,
Is there any special attribute for these multiple mailboxes? such as they are from a specific OU or a distribution group etc.
If there is, we can direct use the filter to pick out these mailboxes instead of create .csv file for them. The following example can set storage quota for mailboxes in a distrobution group Group1:
Get-DistributionGroupMember -Identity Group1 | ForEach{ Set-Mailbox -identity $_.Name -IssueWarningQuota 900mb -ProhibitSendQuota 950mb -ProhibitSendReceiveQuota 1gb -UseDatabaseQuotaDefaults $false}
The following example is used to set storage quota for mailboxes from Exchange Department:
Get-Recipient | Where-Object {$_.Department -eq 'Exchange'} | ForEach{ Set-Mailbox -identity $_.Name -IssueWarningQuota 900mb -ProhibitSendQuota 950mb -ProhibitSendReceiveQuota 1gb -UseDatabaseQuotaDefaults $false}
Regards,
Winnie Liang
TechNet Community Support

Hi,
Is there any special attribute for these multiple mailboxes? such as they are from a specific OU or a distribution group etc.
If there is, we can direct use the filter to pick out these mailboxes instead of create .csv file for them. The following example can set storage quota for mailboxes in a distrobution group Group1:
Get-DistributionGroupMember -Identity Group1 | ForEach{ Set-Mailbox -identity $_.Name -IssueWarningQuota 900mb -ProhibitSendQuota 950mb -ProhibitSendReceiveQuota 1gb -UseDatabaseQuotaDefaults $false}
The following example is used to set storage quota for mailboxes from Exchange Department:
Get-Recipient | Where-Object {$_.Department -eq 'Exchange'} | ForEach{ Set-Mailbox -identity $_.Name -IssueWarningQuota 900mb -ProhibitSendQuota 950mb -ProhibitSendReceiveQuota 1gb -UseDatabaseQuotaDefaults $false}
Regards,
Winnie Liang
TechNet Community Support

  • Creating multiple mailboxes using Powershell for users who already exist in AD

    Hi there,
    Wondering if anyone can help, I am wanting to use Powershell to run a command which references a CSV file to create a mailbox for a user who already exists in AD.
    It needs to reference the username, to ensure the correct user has a mailbox created (as mentioned they exist already in the domain), place them on a specific database (e.g DB1) and assign them an email address as well as possibly an alias email address
    too.
    Can anyone provide me the headings of the CSV file which would be needed as well as the powershell command to run. It would be great too if I could also set the quota sizes for the user at the same time of creating the mailbox, but if not possible or complicated
    I can run a script afterwards to do this. I would only want to warn them when their mailbox is 1.5GB in size and stop them sending when it reaches 2GB. 
    Thanks

    So create a csv file with the following headers and data
    UserID, Alias
    UserID should be the user SamAccountName, and the Alias is the Mailbox Alias that you want to set. Supposing that the csv file is named users.csv and located under C:\ , open the Exchange Management Console and run:
    $users = Import-Csv c:\users.csv
    Foreach ($user in $users) {
    Enable-Mailbox -Identity $user.UserID -alias $user.alias -database 'DB1'
    Set-Mailbox -Identity $user.UserID -IssueWarningQuota 1.5gb -ProhibitSendQuota 2gb 
    Please Mark As Answer if this helps
    ammarhasayen

  • Maybe you are looking for

    • How do I keep songs from an album together when importing?

      When I import music from a cd, often it is broken into pieces if there is a collaboration on that song. For example, Santana's Shaman album is almost all collaborations with various artists so it is imported as a huge number of separate albums. How c

    • Adding custom WIM files to a bootable thumb drive

      Hi, I have setup an WDS 2008 that works fine for deploying and capturing images over my network. I am trying to find a solution to create a bootable thumb, that would contain those custom images captured with WDS. So what I did until I got stuck:  Cr

    • I cannot find a new product through CRS search

      I have added a new product to the Commerce Reference Store using BCC. The product is in the Store after the deploy, I can browse it. The problem is that the product is not listed when I try to find it doing a search. It doesn't appear even if I put t

    • Query-Select Item Code ending in 'NI'

      How do I select an Item Code ending in 'NI'?

    • Password protection actionscript

      Hi there, I have this actionscript for a simple password protection which doesn't quite work, i have looked on previous threads for the same sort of code but have not found a solution, i am using flash 8, please help on (release, keyPress "<Enter>")