|
|
09-14-2010, 10:12 AM
|
#1
|
Thumbs Must Hurt
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
|
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
|
|
09-14-2010, 10:14 AM
|
#2
|
Talking BlackBerry Encyclopedia
Join Date: Feb 2006
Location: Philadelphia
Model: 9650
OS: 6.0.0.524
PIN: BALL
Carrier: Verizon Wireless
Posts: 456
|
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
|
|
09-14-2010, 10:35 AM
|
#3
|
Thumbs Must Hurt
Join Date: May 2009
Model: 8700g
PIN: N/A
Carrier: T-Mobile
Posts: 86
|
Quote:
Originally Posted by RadHaz75
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
|
|
09-14-2010, 02:28 PM
|
#4
|
Talking BlackBerry Encyclopedia
Join Date: Feb 2006
Location: Philadelphia
Model: 9650
OS: 6.0.0.524
PIN: BALL
Carrier: Verizon Wireless
Posts: 456
|
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
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
|
|
09-15-2010, 03:34 PM
|
#5
|
Thumbs Must Hurt
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
|
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
|
|
09-20-2010, 08:20 PM
|
#6
|
Thumbs Must Hurt
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
|
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
|
|
09-21-2010, 04:42 PM
|
#7
|
Thumbs Must Hurt
Join Date: Feb 2005
Location: Windsor, On
Model: 9800
Carrier: Bell Mobility
Posts: 119
|
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 -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
|
|
|
|