mbedford Posted October 21, 2013 Posted October 21, 2013 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
mac_shinobi Posted October 21, 2013 Posted October 21, 2013 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
Cache Posted October 21, 2013 Posted October 21, 2013 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:\ ?
mbedford Posted October 21, 2013 Author Posted October 21, 2013 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
Steve21 Posted October 22, 2013 Posted October 22, 2013 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
mbedford Posted October 22, 2013 Author Posted October 22, 2013 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now