SlideShare a Scribd company logo
PowerShell
FSRM Disk Quota Management and File Encryption
Disk Quota Management
 Step 1: Check Availibility of File Server Resource Manager
in Server
 Get-WindowsFeature
 Step 2: Installation of File Server Resource Manager
 Install-WindowsFeature -name FS-Resource-Manager -
includeManagementTools
Disk Quota Management cont..
 Step 3: Create user for Quota Management System
 $Pass = Read-Host -AsSecureString
 **********
 New-ADUser -Name Ahmad –AccountPassword $Pass –Enabled True
 Step 4: Create New Folder for Quota Management System
 New-Item –Name “myFolder” –Type Directory -Path “c:”
Disk Quota Management cont..
 Step 5: Share the created folder and allow user to access it
 New-smbShare –path “C:myFolder” –name “myShare” –FullAccess
domainuser
 $Folderpath= ‘C:myFolder’
 $user_account=‘ahmad'
 $Acl = Get-Acl $Folderpath
 $Ar = New-Object
system.Security.AccessControl.FileSystemAccessRule($user_account,
"FullControl", "ContainerInherit, ObjectInherit", "None", "Allow")
 $Acl.Setaccessrule($Ar)
 Set-Acl $Folderpath $Acl
Disk Quota Management cont..
 Step 6: Create new FSRM Quota Management to shared
folder
 New-FsrmQuota -path “c:myShare” –Description “For Test” -Size
10mb -SoftLimit
 Step 7: Modify Created Quota
 Set-FsrmQuota –path “c:myShare” -Description “Modification for
Test” -Size 100mb
 Step 8: Test the Quota for entire activity
File Encryption in PowerShell
 Step 1: Create a new file in shared location
 New-item –path “c:myShare” –name file.txt
 Step 2: To encrypt the file the function encrypt() is use
 (get-Item –path “c:mySharefile.txt”).encrypt()
 Step 3: To decrypt the file the function Decrypt() is use
 (get-Item –path “c:mySharefile.txt”).Decrypt()

More Related Content

PPTX
File Uploading in PHP
Idrees Hussain
 
PPT
File Upload
webhostingguy
 
PPTX
Uploading a file with php
Muhamad Al Imran
 
ODP
Php File Upload
Hiroaki Kawai
 
PDF
File system
Gayane Aslanyan
 
PPT
Additional action script 3.0
Brian Kelly
 
PDF
Linux commands cheat sheet by linoxide.com
Stavros Skamagkis
 
PPTX
Lives of Indians Of Mexico Under Spanish Colonization.pptx
Ghufran Ataie
 
File Uploading in PHP
Idrees Hussain
 
File Upload
webhostingguy
 
Uploading a file with php
Muhamad Al Imran
 
Php File Upload
Hiroaki Kawai
 
File system
Gayane Aslanyan
 
Additional action script 3.0
Brian Kelly
 
Linux commands cheat sheet by linoxide.com
Stavros Skamagkis
 
Lives of Indians Of Mexico Under Spanish Colonization.pptx
Ghufran Ataie
 

More from Ghufran Ataie (8)

PPTX
Global Warming and Climate Change - 2023.pptx
Ghufran Ataie
 
PPTX
Version control
Ghufran Ataie
 
PPTX
Sha algorithms
Ghufran Ataie
 
PPTX
ATS circuit
Ghufran Ataie
 
PPTX
Decision Making Process
Ghufran Ataie
 
PPTX
Transistor
Ghufran Ataie
 
PPTX
Optical Character Recognition
Ghufran Ataie
 
PPTX
Global warming
Ghufran Ataie
 
Global Warming and Climate Change - 2023.pptx
Ghufran Ataie
 
Version control
Ghufran Ataie
 
Sha algorithms
Ghufran Ataie
 
ATS circuit
Ghufran Ataie
 
Decision Making Process
Ghufran Ataie
 
Transistor
Ghufran Ataie
 
Optical Character Recognition
Ghufran Ataie
 
Global warming
Ghufran Ataie
 
Ad

Recently uploaded (20)

PDF
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
PPTX
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
PPTX
Presentation about Database and Database Administrator
abhishekchauhan86963
 
PDF
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
DOCX
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
PDF
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PDF
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
AI-Ready Handoff: Auto-Summaries & Draft Emails from MQL to Slack in One Flow
bbedford2
 
Presentation about Database and Database Administrator
abhishekchauhan86963
 
lesson-2-rules-of-netiquette.pdf.bshhsjdj
jasmenrojas249
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Can You Build Dashboards Using Open Source Visualization Tool.docx
Varsha Nayak
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
MiniTool Power Data Recovery Crack New Pre Activated Version Latest 2025
imang66g
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Exploring AI Agents in Process Industries
amoreira6
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pptx
Certivo Inc
 
Balancing Resource Capacity and Workloads with OnePlan – Avoid Overloading Te...
OnePlan Solutions
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
WatchTraderHub - Watch Dealer software with inventory management and multi-ch...
WatchDealer Pavel
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
ASSIGNMENT_1[1][1][1][1][1] (1) variables.pptx
kr2589474
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Ad

Fsrm disk quota management system and file encryption

  • 1. PowerShell FSRM Disk Quota Management and File Encryption
  • 2. Disk Quota Management  Step 1: Check Availibility of File Server Resource Manager in Server  Get-WindowsFeature  Step 2: Installation of File Server Resource Manager  Install-WindowsFeature -name FS-Resource-Manager - includeManagementTools
  • 3. Disk Quota Management cont..  Step 3: Create user for Quota Management System  $Pass = Read-Host -AsSecureString  **********  New-ADUser -Name Ahmad –AccountPassword $Pass –Enabled True  Step 4: Create New Folder for Quota Management System  New-Item –Name “myFolder” –Type Directory -Path “c:”
  • 4. Disk Quota Management cont..  Step 5: Share the created folder and allow user to access it  New-smbShare –path “C:myFolder” –name “myShare” –FullAccess domainuser  $Folderpath= ‘C:myFolder’  $user_account=‘ahmad'  $Acl = Get-Acl $Folderpath  $Ar = New-Object system.Security.AccessControl.FileSystemAccessRule($user_account, "FullControl", "ContainerInherit, ObjectInherit", "None", "Allow")  $Acl.Setaccessrule($Ar)  Set-Acl $Folderpath $Acl
  • 5. Disk Quota Management cont..  Step 6: Create new FSRM Quota Management to shared folder  New-FsrmQuota -path “c:myShare” –Description “For Test” -Size 10mb -SoftLimit  Step 7: Modify Created Quota  Set-FsrmQuota –path “c:myShare” -Description “Modification for Test” -Size 100mb  Step 8: Test the Quota for entire activity
  • 6. File Encryption in PowerShell  Step 1: Create a new file in shared location  New-item –path “c:myShare” –name file.txt  Step 2: To encrypt the file the function encrypt() is use  (get-Item –path “c:mySharefile.txt”).encrypt()  Step 3: To decrypt the file the function Decrypt() is use  (get-Item –path “c:mySharefile.txt”).Decrypt()