Script to set mailbox size for a set of specific users - exchange-server-2013

I am using Exchange 2013 with different mailbox for different companies.
I want to set the mailbox size quota of all users having 100MB size to 200MB for example. Or to set the mailbox size of a specific mailbox to 500Mb.
Can someone help me to get a script for this. Thanks

I guess it is already not actual for topic starter but i leave it here:
get-user | ? {$_.company -eq "mycompany"} | set-mailbox -usedatabasequotadefaults:$false -ProhibitSendQuota 200Mb

Related

Spring Security - Maximum sessions per user in runtime

tried to find an answer here but couldn't find one which would fit my needs.
I'd like to allow the users set the maximum sessions per user from an UI. So, the application would start with an unlimited number of sessions but if the user wants, they can just change a setting and define a number of sessions per user.
Right now my code is like this.
http
.sessionManagement()
.maximumSessions(-1)
.maxSessionsPreventsLogin(true);
So my questions is, how may I change maximumSessions per user from -1 to N number in runtime? Is it possible or I must restart the application?
spring-boot:2.6.7
spring-security-core:5.6.3
Thanks in advance.

Cannot request an increased API Reads Per User Per Seconed - Google Website error?

I keep getting errors from the Google API telling me that I have exceeded the limit of 100 reads per second per user when trying to read from Google Sheets using the API. I'm using CozyRoc's REST Connection and REST Source connected to Google Sheets then connecting to a SQL Server Destination table and trying to populate the table from the Google Sheet.
Please don't try to offer any suggestions about other programs or other ways of accessing the data. I have scores of SSIS packages that use the same set up to import data. In all of those that cycle through about 10 Google sheets with anywhere from one to 20 tabs and as many as 400 rows, I've had to set the Reads per Second to one to avoid the error. That makes my uploads incredibly slow. And YES, I contacted CozyRoc who tells me it's a Google API problem, not theirs, and there's nothing they can or will do about it.
So . . . I made sure we have a billing account . . .
I was able to sign in and look at the Quotas screen. 500 reads per Second and 100 Reads per Second per user.
I was able to request an increased limit for the Reads Per Second to 500 which doesn't require a billing account, but that doesn't change the Reads Per Second Per User.
CozyRoc uses my user id (oAuth token) to access Google Sheets, so every read only comes from one user.
A popup displays when I try to edit the Reads Per Second Per User from the Quotas screen asking me to set the limit to a maximum of 100 or to request a quota limit increase.
I click on that request button and I am immediately returned to the Quotas screen. I'm never asked to set a new limit, I'm never told that the request was sent and received, and I see no notice telling me how long it may take to process the request. It's been about a week now since I first tried. It would be nice if they would tell you SOMETHING!
My thought is that there may be something wrong with their website, perhaps with that popup. I've tried calling Cloud Support, but they refuse to help, saying basically "Not my job to help you with setting quota limits," even though my question is really whether there is a known issue with the quota limit increase website/popup.
SO . . . Is anyone else having a similar problem?
Can anyone tell me if what's happening is normal and that it just takes WEEKS for Google to process a quota limit increase or how long it normally takes for them to process a quota limit rate increase?
Is there anywhere I can reach out to at Google where I can do a screen sharing session and show them what's happening to get an answer or find out whether or not my request was even received?
Any ideas or thoughts as to how I can find out what's going on?
Please let me know.
Thanks,
How to edit API specific quota
The user per minute quota can be edited API and project specific
Go to the GCP console
Chose the project for which you want to icnrease the quota limit
Go onIAM & Admin -> Quotas
Choose Google Sheets API and Read reuquests
Click on the pencil next to Read requests per 100 seconds per user
Choose a quota limit of below 100 - which is the maimum limit allowed by the Sheets API
Click on Save
If you want to increase your limit above 100 requests per 100 seconds per user:
Mind that this limit is the above the normally alloweed quota
Click on apply for higher quota
Click on ALL QUOTA for Read requests per 100 seconds per user
Check the toickbox next to GLOBAL
Confirm your contact details and click on Next
Enter the desire new limit and click on Done
KEEP IN MIND
If you do not have a billing account, you are not eligible to chose a limit of more than 100 read requests for user per 100 seconds and you will get the error message
You can't request more quota because your project is not linked to a billing account.

Web Logic - Managed Server - MaxPostSizeExceededException

On the managed server log I can see the following exception.
weblogic.servlet.internal.MaxPostSizeExceededException: MaxSavePostSize [4096] exceeded
Reading through I have found the following oracle explanation.
https://docs.oracle.com/middleware/1212/wls/WLUPG/compat.htm#WLUPG473
The question I have are
How can I set this value? Is it possible to define it in the weblogic console, against managed server node?
How can I figure out the value required?
You can set this in the WebLogic console.
Under Environment->Servers, go into you managed server, then go to the Protocols tab, and within that the HTTP tab.
The third setting in that section is "Max Post Size".
The help for that says:
The maximum post size this server allows for reading HTTP POST data in a servlet request.
A value less than 0 indicates an unlimited size.
The maximum size you need depends on what your application is doing and what data you'll be sending back from the web client. You can increase it incrementally until the errors stop, or try to work out the maximum amount of data that could possibly be set.
Or you can set it to, say, -1 to avoid the issue entirely. You could end with a huge amount of data being posted though, so be a bit careful about doing that.
It was on MaxSavedPostSize. Update the weblogic.xml files for the application in question.

Understanding Quotas for Google API

I'm currently integrate Google+ API to my service.
I'd like to know what's the limitation for this kind of api:
https://www.googleapis.com/plus/v1/people/{user_id}/activities/public
in google develop console, I found this:
Quota summary
Free quota 10,000 requests/day
Remaining 9,998 requests/day
99.98% of total
Per-user limit
5 requests/second/user
I think there will be two kind of limitation:
Application level
For example, how many requests can an app send per day(sum of the number for all users), and what's the max qps?
User level
For example, how many requests can an app send per day for a special user, and what's the max qps?
But I can't find the exactly info, does anyone know?
Can't say particularly about this API, but when I used Google Places api the quota was linked with IP address.So if it expired, we need to use different IP for hit.No user / application quota.
you already have those answers in your question:
10,000 requests per day in total, using that developer console key, thus your total "app" calls.
per user there is no limit, there is a rate quota. a single user could at most make 5*(seconds in a day) requests per day.
in this specific api case this is much bigger than 10,000 thus that rate quota is not that useful (except it prevents users from quickly depeting the 10,000 daily quota).
you can edit that rate quota so its lower or higher, and is used so a single user cant consume all the app quota (maliciously or otherwise)

Bandwidth on Shared hotspot users

how I can set shared users to share bandwidth When 2 users are logged on the hotspot with the same username, they each get the bandwidth specified in external radius. How can this be changes so that if 2 users are logged in the bandwidth will be 50% to A and 50% to B?
Somebody told me to use script , but i don't understand how to use script on mikrotik.
I see a few annoying logic issues with scripting if its even possible... I would personally recommend using a COA (Change of Authorization) request sent to Mikrotik. This is better 1) you would have a real language to work with, and 2) its a very similar process to the radius handshake that set the rate limit.
http://wiki.mikrotik.com/wiki/Manual:RADIUS_Client#Change_of_Authorization
I think a script would have to use the queues vs the rate limit in the hotspot since this would be set from the radius request not the "user" profile. you will also have to tell when an account has already been set, how many times, and what to do when "a" gets off and only "b" is online... lots of room for error.
With the COA you can just query for the original rate limits divide by active sessions in rad act and spit the values out.

Resources