abaskett
asked on
Get list of usernames connected to CAS Server
I have 4 CAS servers with the Client Access and Hub Transport Role installed. I have 2 Mailbox Servers in a DAG and am looking for a script that will show me which users are connected to a specific CAS server. I'm trying to retire 2 of my CAS servers.
I have a script that shows how many users are connected, I am trying to find out what the usersnames are. I've already changed the rpcclientaccess to my new server and need to manually change the users that are still connecting to the old Server.
I have a script that shows how many users are connected, I am trying to find out what the usersnames are. I've already changed the rpcclientaccess to my new server and need to manually change the users that are still connecting to the old Server.
Or you can even run the below command and get all Database and CAS servers they work with
Get-MailboxDatabase | fl Name, RpcClientAccessServer
- Rancy
Get-MailboxDatabase | fl Name, RpcClientAccessServer
- Rancy
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Connected user listing
Get-LogonStatistics -Server "MBserver" | where {$_.clientname -eq "cas Server"}| ft username,servername,client name
User counting
User connected via RPC
Get-Counter "\MSExchange RpcClientAccess\User Count" -ComputerName sr1,sr2,sr3 | ft
Users Connectecd Via OWA
Get-Counter "\MSExchange OWA\Current Unique Users" -ComputerName sr1,sr2,sr3 | ft
Get-LogonStatistics -Server "MBserver" | where {$_.clientname -eq "cas Server"}| ft username,servername,client
User counting
User connected via RPC
Get-Counter "\MSExchange RpcClientAccess\User Count" -ComputerName sr1,sr2,sr3 | ft
Users Connectecd Via OWA
Get-Counter "\MSExchange OWA\Current Unique Users" -ComputerName sr1,sr2,sr3 | ft
ASKER
Thanks for the help. This script is exactly what I needed
Get-LogonStatistics -Server "mailbox Server" | where {$_.clientname -eq "cas Server"}| ft username,servername,client name
Get-LogonStatistics -Server "mailbox Server" | where {$_.clientname -eq "cas Server"}| ft username,servername,client
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for abaskett's comment #a38886428
for the following reason:
I got the solution from a link provided to me
Accepted answer: 0 points for abaskett's comment #a38886428
for the following reason:
I got the solution from a link provided to me
Why are you trying to close the question without submitting points? You are using the solution I provided.
JJ
JJ
This will list any Database that is pointing to CAS1 ... meaning all users of this Database connect to CAS1 ..... likewise for other CAS servers can be checked as well
- Rancy