Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $prefix_path = "C:SharesUsers"
- $path = $prefixo_path+$chosen_username
- if($Quota){
- invoke-command -computername $servername {Set-FsrmQuota -path $path -Size $Quota+"GB"}
- }
- if((invoke-command -computername $servername {Get-FsrmQuota -path $path} | select @{n='QuotaSize'; e={$_.Size / 1gb -as [int]}}).QuotaSize -eq $Quota){
- return "Success."
- } else {
- return "Failed."
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement