BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-17-2010, 09:17 AM   #1
HurricaneDan
Knows Where the Search Button Is
 
Join Date: Aug 2008
Model: 8830
PIN: N/A
Carrier: Verizon
Posts: 18
Default Scripting using Powershell and the BESUserAdminClient

Please Login to Remove!

I would like to create a simple script that will pull stats for all of my users from the BES. I have the BESUserAdminClient installed but I can't figure out how to call it from PowerShell (that is where I am doing some text parsing).

Has anyone else created a PS script that will use the BESUserAdminClient?

Thanks,

Dan
Offline  
Old 06-17-2010, 10:09 AM   #2
fedrac
New Member
 
Join Date: Sep 2006
Model: 7250
Carrier: N/A
Posts: 7
Default

Sorry, I've never used/seen that utility. If it is a regular command-line app (DOS), you can call it directly in PowerShell, but may have to escape certain characters that you pass as arguments. From there, unless it has options to output to a file, what you will see returned to PowerShell are simple strings, that you will need to figure out how to handle. You can maybe post an example here...
Offline  
Old 06-17-2010, 10:24 AM   #3
SteveE
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Default

I started mucking around with PS and the BESUserAdminClient, but have had problems getting the tool to exit properly from PS (it just stays open):

$psi = new-object System.Diagnostics.ProcessStartInfo("C:\Program Files\Research In Motion\BlackBerry Enterprise Server Resource Kit\BlackBerry Enterprise Server User Administration Tool Client\BESUSerAdminClient.exe");
$psi.UseShellExecute = $false;
$psi.Arguments = "-add -u or whatever arguments you want to add";
$psi.Domain = "AD Domain";
[System.Diagnostics.Process]::Start($psi)
Offline  
Old 06-17-2010, 05:00 PM   #4
JavaJunkee
Thumbs Must Hurt
 
JavaJunkee's Avatar
 
Join Date: Jan 2007
Location: Seattle, WA
Model: 9780
Carrier: T-Mobile
Posts: 156
Default

HurricaneDan -

You may want to check this forum as well. Happy Hunting!

Scripts & Tools / Hints & Tricks - Port3101.org : Your BES Connection
__________________
BES 5.0.4 MR 11 (Bundle 234)
-Server 2008 R2 Standard SP1 (ESXi 5.5)
Exchange 2010 SP3 RU7
-Server 2008 R2 SP1 Enterprise
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Siemens 6SL3130-6AE21-0AB1 Smart Line Module 6SL3 130-6AE21-0AB1 Express Ship picture

Siemens 6SL3130-6AE21-0AB1 Smart Line Module 6SL3 130-6AE21-0AB1 Express Ship

$999.00



NEW SIEMENS A5E02625805-H2 A5E02625805H2 Industrial Computer Power Supply picture

NEW SIEMENS A5E02625805-H2 A5E02625805H2 Industrial Computer Power Supply

$942.00



New Siemens 6SL3120-1TE28-5AA3 6SL3 120-1TE28-5AA3 in Box Expedited Shipping picture

New Siemens 6SL3120-1TE28-5AA3 6SL3 120-1TE28-5AA3 in Box Expedited Shipping

$2289.00



New Siemens 6ES7331-7NF10-0AB0 Analog Input Module 6ES7 331-7NF10-0AB0 1PCS picture

New Siemens 6ES7331-7NF10-0AB0 Analog Input Module 6ES7 331-7NF10-0AB0 1PCS

$979.00



LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW picture

LOT OF 10 SIEMENS Q120DFN 20A DUAL AFCI/GFCI PLUG ON NEUTRAL BREAKER BRAND NEW

$440.00



SIEMENS 25-135-017-553 GRAY MCC Breaker Handle Switch Mechanism QTY picture

SIEMENS 25-135-017-553 GRAY MCC Breaker Handle Switch Mechanism QTY

$339.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.