BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 09-14-2010, 10:12 AM   #1
morser
Thumbs Must Hurt
 
morser's Avatar
 
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
Default Is it possible to change the Blackberry Agent for many users at once?

Please Login to Remove!

Hello,

Exchange 2003 SP2
Blackberry Enterprise Server version 5.0.1

Hello.
We have quite a few users assigned to custom agents for one reason or another. we now want to assign many users to one agent with one command, or just turn off the static agents for almost all our users.

When searching and selecting multiple users in the BAS, there seems to be no option to change the agent for multiple selected users.

Does any one know how this can be done? Thanks in advance.
__________________
Morser,
History: PB32, 9800, 9700, 8310, 8700, 7100r, 7780, 7280, 6710, 957, 950
Offline  
Old 09-14-2010, 10:14 AM   #2
RadHaz75
Talking BlackBerry Encyclopedia
 
RadHaz75's Avatar
 
Join Date: Feb 2006
Location: Philadelphia
Model: 9650
OS: 6.0.0.524
PIN: BALL
Carrier: Verizon Wireless
Posts: 456
Default

i believe you can do it with the BUA tool, and then you script that do it for all users in vb or powershell.

ive scripted in powershell (nice and neat 1 line including reading the users from a txt file) to resend service books to users or clear pending messages. pretty sure there is one to change the agent mapping
__________________
Two months ago, I saw a provocative movie on cable TV. It was called The Net, with that girl from the bus.
Offline  
Old 09-14-2010, 10:35 AM   #3
SteveE
Thumbs Must Hurt
 
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
Default

Quote:
Originally Posted by RadHaz75 View Post
i believe you can do it with the BUA tool, and then you script that do it for all users in vb or powershell.

ive scripted in powershell (nice and neat 1 line including reading the users from a txt file) to resend service books to users or clear pending messages. pretty sure there is one to change the agent mapping
What this guy said. Write a quick powershell script to loop through a csv/text/whatever, then.

Some starter code, assuming a CSV with two columns, AgentID and PrimaryEmail (where AgentID contains the desire static agent). You could also alter the parameters to disable a static agent, I assume:



$InputFile = Import-CSV $args[0]

$InputFile | ForEach-Object -Process {

$exe2 = "C:\Program Files\Research In Motion\BlackBerry Enterprise Server Resource Kit\BlackBerry Enterprise Server User Administration Tool Client\BESUSerAdminClient.exe"

& $exe2 <insert BAS creds here> -n https://urlofserver/webconsole/login -b BESInstance -change -assign_static_mailbox_agent $AgentID -u $PrimaryEmail

}


It's not perfect, but it's close to workable. You may have to set the variables ala $AgentID = $_.AgentID first, not sure. Haven't tested. Just launch the script and pass it the csv file.
Offline  
Old 09-14-2010, 02:28 PM   #4
RadHaz75
Talking BlackBerry Encyclopedia
 
RadHaz75's Avatar
 
Join Date: Feb 2006
Location: Philadelphia
Model: 9650
OS: 6.0.0.524
PIN: BALL
Carrier: Verizon Wireless
Posts: 456
Default

i'll one up you (given he wants to assign all to 1 agent)..

C:\BRK is the location of BESUserAdminClient.exe (and subsequently my input file). technically you could copy the .exe, .dlls and .config file anywhere to any machine. users.txt contains smtp addresses, 1 per line

[email address]
[email address]

Get-Content c:\BRK\users.txt | % {C:\BRK\BESUserAdminClient.exe <insert BAS or AD creds here> -change -assign_static_mailbox_agent 1 -u $_}
__________________
Two months ago, I saw a provocative movie on cable TV. It was called The Net, with that girl from the bus.

Last edited by RadHaz75; 09-14-2010 at 02:29 PM..
Offline  
Old 09-15-2010, 03:34 PM   #5
morser
Thumbs Must Hurt
 
morser's Avatar
 
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
Default

Thanks.
I went to respond yesterday but did not hit Post :(

Thank you for the posts, i will try these ideas shortly.

- What is the format required for the BAS creds in the command lines you spoke of? Just put the U and P in there?
- Where would I find the command for how to turn static agent off, in the BUA guide?
__________________
Morser,
History: PB32, 9800, 9700, 8310, 8700, 7100r, 7780, 7280, 6710, 957, 950
Offline  
Old 09-20-2010, 08:20 PM   #6
morser
Thumbs Must Hurt
 
morser's Avatar
 
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
Default

Thanks again for the guidance. With the above information and this manual, it worked.

http://docs.blackberry.com/en/admin/...1-5.0.1-US.pdf

By the way, the change command to turn off static agent is:
-clear_static_mailbox_agent
__________________
Morser,
History: PB32, 9800, 9700, 8310, 8700, 7100r, 7780, 7280, 6710, 957, 950
Offline  
Old 09-21-2010, 04:42 PM   #7
morser
Thumbs Must Hurt
 
morser's Avatar
 
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
Default Problems running this command?

BES Exchange version 5.0.1.58
BUA tool manual is version SP1

So, I had problems wrapping what I wanted to do into a powershell command so I tried to change one user to a static mapping. The command failed.

The command was:
besuseradminclient -username xxxxx -password xxxxx -change -clear_static_mailbox_agent -u [email address] -b <InstanceofBES>

The result was:
Cannot parse arguments: Invalid argument: -clear_static_mailbox_agent. Use -? for more information.

Copied the command line letter for letter from the manual, and inserted my creds, email and BESinstance.

Has anyone used this command before? or would be able to try running it?
__________________
Morser,
History: PB32, 9800, 9700, 8310, 8700, 7100r, 7780, 7280, 6710, 957, 950
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


Jelenko Commodore LS VPF with Pump  picture

Jelenko Commodore LS VPF with Pump

$875.00



Mitsubishi Control Board DM00N649.  SM76A127G02 . Ductless unit 47-0910KR (C64) picture

Mitsubishi Control Board DM00N649. SM76A127G02 . Ductless unit 47-0910KR (C64)

$120.00



Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC picture

Vintage Printer Switch box Commodore 64/Sanyo Mountable Computer PC

$49.00



POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear PK 4 picture

POLAR PLASTICS C64 Construction Film,6x100,4Mil,Clear PK 4

$178.04



Windsor Commodore Duo 20

Windsor Commodore Duo 20" Carpet extractor w/Lester Charger 25900/Battery/99hour

$2911.95



Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20

Vintage Holt Commodore Commercial Floor Scrubber Polisher Buffer Burnisher 20"

$599.99







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