Jump to content

Recommended Posts

Posted

Hi,

 

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

 

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

Posted
Hi,

 

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

 

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:\ ?

Posted
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 :getmecoat:

 

However, same issue persists :(

Posted

May be being stupid at this time in the morning, but shouldn't it be double \'s?

 

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

 

Steve

Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...