+ Post New Thread
Results 1 to 8 of 8
Windows Thread, Informing users they are over their quota? (2003 R2) in Technical; Just been setting up quotas for the students on R2 using the FSRM. All works well, except I cant think ...
  1. #1

    Join Date
    Jul 2006
    Location
    London
    Posts
    2,962
    Thank Post
    159
    Thanked 152 Times in 116 Posts
    Rep Power
    49

    Informing users they are over their quota? (2003 R2)

    Just been setting up quotas for the students on R2 using the FSRM.
    All works well, except I cant think of a good way to inform them to delete some files if they go over the threshold.

    Obviously the message about the disk being full and them needing to delete some files when you try and save anything else gives a good clue but Ive got the feeling a lot of students will see that as 'The network isnt letting me save' rather than 'I need to delete some files' and will lead to loads of complaints

    The email facility built into FSRM is no good as we dont have an Exchange server and I doubt they would noticed the emails anyway

    What I need is a little pop up or something saying they have exeeded the quota by xxmb and could they delete some files or see the IT Team.

    I seem to remember with the NTFS quotas there was a way to have a baloon pop up to tell users they had exceeded the quota but I assume that doesnt apply to these new folder quotas?

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,999
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106

    Re: Informing users they are over their quota? (2003 R2)

    Theres discussion of some scripts here

  3. #3
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    The link doesn't seem to work anymore...has anyone got a good solution to this...?

  4. #4
    Galway's Avatar
    Join Date
    Jun 2007
    Location
    West Yorkshire
    Posts
    1,308
    Thank Post
    9
    Thanked 300 Times in 209 Posts
    Rep Power
    99
    Cant you set the warning level, and let that inform users they are about to hit the limit?

  5. #5
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    Thanks - I'm doing that, but I wanted to customise the message.

    For future reference, this guy seems to have nailed it.

    Disk Quota Notifications (Using Script) Not Working : Microsoft, Windows Server 2003, 2003, Storage Server

    * * * * *

    I used a .vbs script to run a net send command. Here were the commands I used in FSRM for the template I was setting up:

    Run this command or script:

    C:\Windows\System32\cscript.exe

    Command arguments (note that [Source Io Owner] is very important because the vbscript uses that to find the current user and send them a message):

    //nologo "FULL PATH TO YOUR SCRIPT" [Source Io Owner] [Quota Limit MB] [Whatever other args you want from FSRM]

    Working directory:

    Same as FULL PATH TO YOUR SCRIPT, minus the script name and last backslash

    Run the command as:

    LocalService

    Here are the contents are my .vbs script:

    '*******************************

    'Turn on error checking
    On Error Resume Next

    'Declare variables
    Dim objShell
    Dim strUser
    Dim strLimitMB
    Dim intSlashPos

    'Get arguments that were passed to the script through File System Resource Manager.
    'You can modify this based on how many arguments you want to give the script in the
    '"Command Arguments" field
    strUser = WScript.Arguments.Item(0)
    strLimitMB = WScript.Arguments.Item(1)

    'Remove the "DOMAIN\" portion from the user name
    intSlashPos = Instr (1, strUser, "\", vbTextCompare)
    strUser = Mid (strUser, intSlashPos + 1, Len(strUser) - intSlashPos)

    'Create the object
    Set objShell = Wscript.CreateObject("WScript.Shell")

    'Create the message to send - this relies on arguments that were passed
    'from File System Resource Manager
    strMessage = "Some message here. For example, your folder has reached the limit of " & _
    strLimitMB & " MB."

    'Send the message to the user
    objShell.Run "net send " & [strUser] & " " & [strMessage], True

    WScript.Quit

    ******************

    I hope this helps others, cause I know how frustrating this is.

  6. #6

    Join Date
    Mar 2008
    Location
    Surrey
    Posts
    2,168
    Thank Post
    98
    Thanked 319 Times in 261 Posts
    Blog Entries
    4
    Rep Power
    112
    Would WScript.Echo be a better choice than net send? That way net send can be disabled.

  7. #7
    BJG
    BJG is offline
    BJG's Avatar
    Join Date
    May 2008
    Location
    Norwich
    Posts
    465
    Thank Post
    89
    Thanked 35 Times in 25 Posts
    Rep Power
    22
    Can you generate a remote popup for a given user that way...?

  8. #8
    jack0w's Avatar
    Join Date
    Jan 2008
    Posts
    123
    Thank Post
    12
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    Does anyone know how this could be accomplished without the use of NET SEND?

SHARE:
+ Post New Thread

Similar Threads

  1. Exchange Quota
    By Grommit in forum Windows
    Replies: 2
    Last Post: 10th September 2007, 01:37 PM
  2. Windows Sever 2003 R2 Quota
    By molesm in forum Windows
    Replies: 26
    Last Post: 18th April 2007, 01:51 PM
  3. Replies: 10
    Last Post: 31st March 2007, 05:40 PM
  4. Replies: 10
    Last Post: 21st November 2006, 02:47 PM
  5. Quota Management in Windows 2003 R2
    By wesleyw in forum Windows
    Replies: 0
    Last Post: 5th September 2006, 10:06 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •