+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 27
Windows Thread, Windows Sever 2003 R2 Quota in Technical; We use a windows server 2003 r2 built in quota system, not NTFS Disk quota. Does anyone know a way ...
  1. #1

    Join Date
    Oct 2006
    Location
    Bath, UK
    Posts
    35
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Windows Sever 2003 R2 Quota

    We use a windows server 2003 r2 built in quota system, not NTFS Disk quota. Does anyone know a way of notfying users when they run low or out of disk space, we would like to use a pop-up. I know this has been discussed in previous posts, but I cnould not find any definfte solution, and most of them do not use the quots system that R2 Uses. I would appreciate any advice that you can give me

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,987
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    107

    Re: Windows Sever 2003 R2 Quota

    There is a setting with R2 that will email the user when they are running low.

  3. #3

    Join Date
    Oct 2006
    Location
    Bath, UK
    Posts
    35
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Windows Sever 2003 R2 Quota

    Forgot to mention that none of our students have school e-mail address, hence we cannont send them e-mails, I thinik that the command option would be the best way, but I cannont get it to work

  4. #4
    EvLPhenom's Avatar
    Join Date
    Apr 2006
    Location
    Sutton Colfield
    Posts
    432
    Thank Post
    21
    Thanked 40 Times in 35 Posts
    Rep Power
    24

    Re: Windows Sever 2003 R2 Quota

    Hey molesm,

    we have been looking at something like that here but as of yet we haven't implemented it because we don't want to slacken the security settings to enable the kids to run scripts ... could be messy.

    if you or anyone else knows of a way to do this without scripts then it would be very much appreciated.

    sorry its not very helpful :?

    cheers
    andy

  5. #5
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,043
    Thank Post
    22
    Thanked 177 Times in 123 Posts
    Rep Power
    52

    Re: Windows Sever 2003 R2 Quota

    I setup our login script to measure the disk usage of each student at login. Then display the details in a popup box. We use kixtart scripts .....

    Code:
    Dim $quota
    Dim $year
    Dim $restrict
    Dim $defprint
    Dim $diskspace
    
    ;defines print quota and year group based on active directory group
    
    IF InGroup("2006_07")
    	$quota = "50"
    	$year = "Year 7"
    	goto yrend
    	EndIf
    IF InGroup("2005_06")
    	$quota = "100"
    	$year = "Year 8"
    	goto yrend
    	EndIf
    IF InGroup("2004_05")
    	$quota = "150"
    	$year = "Year 9"
    	goto yrend
    	EndIf
    IF InGroup("2003_04")
    	$quota = "250"
    	$year = "Year 10"
    	goto yrend
    	EndIf
    IF InGroup("2002_03")
    	$quota = "500"
    	$year = "Year 11"
    	goto yrend
    	EndIf
    IF InGroup("2001_02","WSELC_2001_02")
    	$quota = "200"
    	$year = "Post 16"
    	goto yrend
    	EndIf
    IF InGroup("2000_01","1999_00","1998_99","WSELC_2000_01","WSELC_1999_00")
    	$quota = "300"
    	$year = "Post 16"
    	goto yrend
    	EndIf
    IF InGroup("ICTStaff")
    	$quota = "unlimited"
    	$year = "ICT Staff"
    	goto yrend
    	EndIf
    IF InGroup("staff")
    	$quota = "100"
    	$year = "Staff"
    	goto yrend
    	EndIf
    
    :yrend
    
    ;runs a prog that calculates the space used in the users home folder (z:) and outputs to txt file
    Shell "%COMSPEC% /C \\server\folder\dirsize.exe z:\* >%TEMP%\dirsize.txt"
    
    ;reads the correct line from the prog output txt file
    
    If Exist ("%TEMP%\quota.txt") ;check if file exists
         Del "%TEMP%\quota.txt"  ; del if file exits
    EndIf
    
    $ = Open (2,"%TEMP%\quota.txt",5) 
    $ = Open (1, "%TEMP%\dirsize.txt")
    
    $Line = ReadLine (1)
    Do 
         If InStr ($Line,"Total file size (MB):")
              $NewLine = Trim (SubStr($Line,22,8))
              $ = WriteLine (2, $NewLine + @CRLF)
         EndIf
         $Line = ReadLine (1)
    Until @ERROR = -1
    
    $ = Close (1) 
    Del "%TEMP%\dirsize.txt"
    
    $ = Close (2)
    
    Open (3, "%TEMP%\quota.txt", 2)
    
    $diskspace = Readline (3)
    
    
    ;gets restrictions as stored in users full name in AD
    IF @FullName = ""
    	$restrict = "no resrictions on your account"
    Else
    	$restrict = @Fullname
    EndIf
    
    
    ;displays message box
    MESSAGEBOX ("@userid - $year @CRLF@CRLFLogged on to computer: @wksta@CRLF@CRLFDefault Printer: $defprint @CRLF@CRLFDisk space used: $diskspace of $quota MB disk quota available@CRLF@CRLFRestrictions: $restrict@CRLF@CRLFDate: @Day @MDayNo @Month @Year @TIME", "Logon Information", 4160, 10)
    dirsize.exe is a freeware tool from Tools4ever (they call it T4eDirSize)

  6. #6
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Windows Sever 2003 R2 Quota

    Quote Originally Posted by molesm
    I thinik that the command option would be the best way, but I cannont get it to work
    Has anyone actually seen this option being used? As best I can tell it will run a script centrally, and if you wanted to inform the user that the quota has exceeded, you will need the script to send a message or something to the user remotely... thats assuming the detection of quota violations are instant and not scheduled. Is that right?

  7. #7

    Join Date
    Oct 2006
    Location
    Bath, UK
    Posts
    35
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Windows Sever 2003 R2 Quota

    tanks for your input Steve, I am fairley new to scripts, but your script to me does not seam to be using the FSRM of Win server 2003 r2, apeo I think that you are tight but not sure how to script this,a nd every time I hve tried to create a script I get an error message when I try to assign it

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,592
    Thank Post
    109
    Thanked 770 Times in 598 Posts
    Rep Power
    182

    Re: Windows Sever 2003 R2 Quota

    I started a thread at http://edugeek.net/index.php?name=Fo...ewtopic&t=4772 a few days ago and got a script together that nearly worked.

    The problem is that WSH has certain security built into it that prvents the key method from running

    If anyone can fettle that script so that a regular user can run, please let me know.

    BTW - Don't know about the R2 command thingy but you don't have to enable the Messenger service or anything daft like that do you?

  9. #9
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Windows Sever 2003 R2 Quota

    Quote Originally Posted by molesm
    apeo I think that you are tight
    Thats abit harsh aint it??

    @molesm: If I have time I may give it a bash but what is the error you are getting?

    @Ric_: Thanks for your script, but just to clarify it is a login script yes and if that is the case it will only display the info when they login.

  10. #10

    Join Date
    Oct 2006
    Location
    Bath, UK
    Posts
    35
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Windows Sever 2003 R2 Quota

    The error is the command specifed is under an inscure folder path
    This is beacsue builtin\users has perrmsions to it on the DC

  11. #11
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Windows Sever 2003 R2 Quota

    You may have done this already but i have to ask... have you tried removing users from the acl on that folder?

  12. #12
    steve's Avatar
    Join Date
    Oct 2005
    Location
    West Yorkshire
    Posts
    1,043
    Thank Post
    22
    Thanked 177 Times in 123 Posts
    Rep Power
    52

    Re: Windows Sever 2003 R2 Quota

    The script I've shown doesn't use any of R2's quota system.

    I've predefined the quota limits per year group, and the script goes off and calculates the space used.

    I looked at a few alternatives, but this at the time was the best i could come up with.

    One problem is that the drivespace reported by windows still referes to the entire space available - not the remaining quota.

    There is a command line tool within R2: from server :\>dirquota quota freespace /path:\\share\userfolder

    This gives the users % usage. Only trouble is I've only been able to run this on the server, and its extremely slow.

  13. #13
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Windows Sever 2003 R2 Quota

    @steve: What are you proposing to use dirquota for?

  14. #14

    Join Date
    Jan 2007
    Posts
    1
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Windows Sever 2003 R2 Quota

    Did you ever find the solution you wanted for this? Im in the exact same boat

    Thanks

    David

  15. #15

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,848
    Thank Post
    3,363
    Thanked 1,062 Times in 982 Posts
    Rep Power
    366

    Re: Windows Sever 2003 R2 Quota

    Quote Originally Posted by Ric_
    I started a thread at http://edugeek.net/index.php?name=Fo...ewtopic&t=4772 a few days ago and got a script together that nearly worked.

    The problem is that WSH has certain security built into it that prvents the key method from running

    If anyone can fettle that script so that a regular user can run, please let me know.

    BTW - Don't know about the R2 command thingy but you don't have to enable the Messenger service or anything daft like that do you?
    I think you would need the messenger service enabled in order to send messages to remote machines, unless you know of some other way aside from replying on a 3rd party app.

    Surely when you run a logon script its run with system privs so it shouldnt matter about if its a student or admin logging on ?

    I must be missing something here

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 7
    Last Post: 9th June 2009, 01:22 PM
  2. Windows Home Sever
    By nawbus in forum Windows
    Replies: 31
    Last Post: 3rd April 2008, 03:02 PM
  3. windows 2003 sever r2 printer manager!
    By krisd32 in forum Windows
    Replies: 5
    Last Post: 18th December 2006, 07:40 PM
  4. Quota Management in Windows 2003 R2
    By wesleyw in forum Windows
    Replies: 0
    Last Post: 5th September 2006, 10:06 AM
  5. Windows Quota Program
    By josno in forum Windows
    Replies: 5
    Last Post: 27th July 2006, 02:28 PM

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
  •