none
BBCS Website RRS feed

  • Question

  • Hi All,

    I am trying to automate creating users in BBCS (Blackberry cloud services). I have a CSV file in the correct format that I can load manually to do a bulk create of the accounts but I can't work out how to script this.

    Has anyone done anything similar or have any ideas how to do this?

    I tried the code below but couldn't get it to work

    TI

    Andy

    $url="https://msft1.businesscloud.blackberry.com/webconsole/login"
    $url1 = "https://msft1.businesscloud.blackberry.com/webconsole/app?component=goToBulkNewUserImportLink&consoleSId=x85y8w6m9zrdi0pl676788zn&page=PlugIn114%3APlugIn0_ManageMailStoreUserMultipleSelectionsPage&service=direct&session=T&sp=SImportUsersCreateBlackBerryEnabled&sp=X&sp=X&sp=X"
    $ie =New-Object -comobject InternetExplorer.Application
    $ie.visible = $true
    $ie.Navigate($url)
    sleep 20
    $ie.Navigate($url1)
    sleep 20
    [void] [System.Reflection.Assembly]::LoadWithPartialName("'System.Windows.Forms")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("{TAB}")
    [System.Windows.Forms.SendKeys]::Sendwait("X:\Messaging\BBCS.csv")

    Tuesday, May 6, 2014 1:07 PM

Answers

All replies

  • This is not an easy or no direct method to do it. However the approach you have taken may give a dice but very tedious and not recommended.

    • Blackberry Cloud Service requires authentication. So you need to pass your credential in Web Page
    • Enter the User Email ID in text box
    • Search for the user
    • Apply the BES Policy(Groups)
    • You have to opt any one of the option like 'With Password' / 'Without Password'

    I advice to opt any alternate method - Rather than PowerShell


    Regards Chen V [MCTS SharePoint 2010]

    Tuesday, May 6, 2014 1:29 PM
  • Hi Chen,

    We are using single sign on for BBCS alongside out O365 deployment

    The other item are all covered by using a csv file (BBCS.csv) that has all the required data. I can use this file manually and upload to BBCS.

    What I want to do is cut out the manual part and use powershell to upload the file in BBCS.

    My reasoning is that I run the migrations out of hours and when I come back in the next morning I need to upload the blackberry info manually. If I get pulled onto resolving another issue then BB users are without their device until I get the chance to upload them.

    If I could get powershell to interact with the webpage I could add this to my script and it would happed automatically

    Regards

    Andy

    Tuesday, May 6, 2014 1:47 PM
  • Have you contacted BlackBerry for assistance?

    It's their product, I imagine you'll get better help from them than in a Microsoft forum.


    Don't retire TechNet! - (Don't give up yet - 12,830+ strong and growing)

    Tuesday, May 6, 2014 1:49 PM
  • I have contacted Blackberry support and they will not support for PowerShell - Alternatively they informed me We they don't support PowerShell script - Indeed I called them for other query not for PowerShell.

    @UKMorite - You need refer this link http://msdn.microsoft.com/en-us/magazine/cc337896.aspx

    This will give you an overview of Web UI Automation.

    Note: This is not my suggestion. Just an overview of the approach what you need.


    Regards Chen V [MCTS SharePoint 2010]

    Tuesday, May 6, 2014 2:07 PM
  • Web automation will not work with BBCS.  Use the admin guide suggestions to use a CSV an the wizard.  It is reliable and fast.

    Ask BB for the documentation to the SOAP/WebServices API for BBCS.  That can be used from PowerShell but BB will not assist you with it.


    ¯\_(ツ)_/¯

    Tuesday, May 6, 2014 3:42 PM
  • Hi All,

    Many thanks for the help and advice, It looks like I will have to continue with the manual steps. Shame really as on paper it seems a really easy task, I already have the csv file that BBCS needs and all I wanted to do was load that automatically rather than a manual process.

     I can see why BB are losing their market share and have had to be propped up by the Canadian Gov.

    Thanks

    Andy

    Tuesday, May 6, 2014 3:58 PM