+ Post New Thread
Results 1 to 7 of 7
Coding Thread, Disk Quota Management - Powershell in Coding and Web Development; Hi, Can anyone explain to me why this command is not working.... Code: PS E:\Home Drives\mbedford> Get-FsrmQuota -CimSession $session -Path ...
  1. #1

    Join Date
    Jul 2009
    Location
    Staffs
    Posts
    76
    Thank Post
    10
    Thanked 9 Times in 7 Posts
    Rep Power
    12

    Disk Quota Management - Powershell

    Hi,

    Can anyone explain to me why this command is not working....

    Code:
    PS E:\Home Drives\mbedford> Get-FsrmQuota -CimSession $session -Path "F:\Home Drives\mbedford"
    Get-FsrmQuota : 0x80045306, The specified path is invalid.
    At line:1 char:1
    + Get-FsrmQuota -CimSession $session -Path "F:\Home Drives\mbedford"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (MSFT_FSRMQuota:Root/Microsoft/.../MSFT_FSRMQuota) [Get-FsrmQuota], CimExc
       eption
        + FullyQualifiedErrorId : HRESULT 0x80045306,Get-FsrmQuota
        + PSComputerName        : dfsstaff
    I have checked, the path exists and I permission to read\write, also the PowerShell console is running as administrator. The CIMSession is the server that the folder is located on.

    Thanks
    Mike

  2. #2

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,680
    Thank Post
    3,211
    Thanked 1,031 Times in 956 Posts
    Rep Power
    361
    Maybe one of the following users may be able to assist with powershell :
    @Arthur or @Steve21

    There may be other people but I am not aware of any off the top of my head although that does not mean to say that others can't help

  3. #3
    Cache's Avatar
    Join Date
    Apr 2008
    Location
    Cumbria
    Posts
    1,188
    Thank Post
    446
    Thanked 169 Times in 166 Posts
    Blog Entries
    3
    Rep Power
    63
    Quote Originally Posted by mbedford View Post
    Hi,

    Can anyone explain to me why this command is not working....

    Code:
    PS E:\Home Drives\mbedford> Get-FsrmQuota -CimSession $session -Path "F:\Home Drives\mbedford"
    Get-FsrmQuota : 0x80045306, The specified path is invalid.
    At line:1 char:1
    + Get-FsrmQuota -CimSession $session -Path "F:\Home Drives\mbedford"
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : NotSpecified: (MSFT_FSRMQuota:Root/Microsoft/.../MSFT_FSRMQuota) [Get-FsrmQuota], CimExc
       eption
        + FullyQualifiedErrorId : HRESULT 0x80045306,Get-FsrmQuota
        + PSComputerName        : dfsstaff
    I have checked, the path exists and I permission to read\write, also the PowerShell console is running as administrator. The CIMSession is the server that the folder is located on.

    Thanks
    Mike
    Tell me if I'm on the wrong foot here, your running the powershell command from E:\Home Drives\mbedford but your path in the command is F:\Home Drives\mbedford - shouldn't it be E:\ ?

  4. #4

    Join Date
    Jul 2009
    Location
    Staffs
    Posts
    76
    Thank Post
    10
    Thanked 9 Times in 7 Posts
    Rep Power
    12
    Quote Originally Posted by Cache View Post
    Tell me if I'm on the wrong foot here, your running the powershell command from E:\Home Drives\mbedford but your path in the command is F:\Home Drives\mbedford - shouldn't it be E:\ ?

    DUH!!!

    Thanks Cache, not sure how I missed that one

    However, same issue persists

  5. #5


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,717
    Thank Post
    220
    Thanked 2,616 Times in 1,927 Posts
    Rep Power
    777
    What does the $session variable contain?

  6. #6

    Steve21's Avatar
    Join Date
    Feb 2011
    Location
    Swindon
    Posts
    2,686
    Thank Post
    334
    Thanked 513 Times in 481 Posts
    Rep Power
    178
    May be being stupid at this time in the morning, but shouldn't it be double \'s?

    Code:
    Get-FsrmQuota -CimSession $session -Path "F:\\Home Drives\\mbedford"
    Steve

  7. #7

    Join Date
    Jul 2009
    Location
    Staffs
    Posts
    76
    Thank Post
    10
    Thanked 9 Times in 7 Posts
    Rep Power
    12
    Thanks for all the suggestions, managed to resolve it myself.

    Turns out that you cant apply a quota to a folder beneath one that already has one applied. This behaviour makes sense but I more descriptive error message may have helped!

    Thanks
    Mike

SHARE:
+ Post New Thread

Similar Threads

  1. Disk Quota Management for Schools
    By akhter in forum MIS Systems
    Replies: 7
    Last Post: 22nd December 2010, 07:40 PM
  2. Disk Quota
    By BKGarry in forum Scripts
    Replies: 3
    Last Post: 12th October 2006, 07:29 PM
  3. Quota Management in Windows 2003 R2
    By wesleyw in forum Windows
    Replies: 0
    Last Post: 5th September 2006, 10:06 AM
  4. Disk Quotas
    By WithoutMotive in forum Windows
    Replies: 7
    Last Post: 25th April 2006, 07:51 AM
  5. User Disk Quotas 2K3 Server
    By Roger in forum Wireless Networks
    Replies: 2
    Last Post: 2nd November 2005, 11:56 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
  •