SlideShare a Scribd company logo
1 of 6
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

Similar to Fsrm disk quota management system and file encryption

Dance for the puppet master: G6 Tech Talk
Dance for the puppet master: G6 Tech TalkDance for the puppet master: G6 Tech Talk
Dance for the puppet master: G6 Tech Talk
Michael Peacock
 
Apache hadoop 2_installation
Apache hadoop 2_installationApache hadoop 2_installation
Apache hadoop 2_installation
sushantbit04
 
Phpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friendsPhpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friends
Michael Peacock
 

Similar to Fsrm disk quota management system and file encryption (20)

Take Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long BeachTake Command of WordPress With WP-CLI at WordCamp Long Beach
Take Command of WordPress With WP-CLI at WordCamp Long Beach
 
Globus for System Administrators
Globus for System AdministratorsGlobus for System Administrators
Globus for System Administrators
 
Dance for the puppet master: G6 Tech Talk
Dance for the puppet master: G6 Tech TalkDance for the puppet master: G6 Tech Talk
Dance for the puppet master: G6 Tech Talk
 
Check username availability with vue.js and PHP
Check username availability with vue.js and PHPCheck username availability with vue.js and PHP
Check username availability with vue.js and PHP
 
Integrate with ldap
Integrate with ldapIntegrate with ldap
Integrate with ldap
 
Licão 04 permissions
Licão 04 permissionsLicão 04 permissions
Licão 04 permissions
 
Take Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLITake Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLI
 
Apache Web Server Setup 4
Apache Web Server Setup 4Apache Web Server Setup 4
Apache Web Server Setup 4
 
10 Steps to Secure Wordpress Sites
10 Steps to Secure Wordpress Sites10 Steps to Secure Wordpress Sites
10 Steps to Secure Wordpress Sites
 
Liiptalk Neos CMS
Liiptalk Neos CMSLiiptalk Neos CMS
Liiptalk Neos CMS
 
Introduction to Globus for System Administrators
Introduction to Globus for System AdministratorsIntroduction to Globus for System Administrators
Introduction to Globus for System Administrators
 
Intro to PAS REST API
Intro to PAS REST APIIntro to PAS REST API
Intro to PAS REST API
 
Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2Deep Dive into Kubernetes - Part 2
Deep Dive into Kubernetes - Part 2
 
Apache hadoop 2_installation
Apache hadoop 2_installationApache hadoop 2_installation
Apache hadoop 2_installation
 
Phpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friendsPhpne august-2012-symfony-components-friends
Phpne august-2012-symfony-components-friends
 
Filesystem abstractions and msg queue sergeev - symfony camp 2018
Filesystem abstractions and msg queue   sergeev - symfony camp 2018Filesystem abstractions and msg queue   sergeev - symfony camp 2018
Filesystem abstractions and msg queue sergeev - symfony camp 2018
 
Terraform, Ansible, or pure CloudFormation?
Terraform, Ansible, or pure CloudFormation?Terraform, Ansible, or pure CloudFormation?
Terraform, Ansible, or pure CloudFormation?
 
Globus for System Administrators
Globus for System AdministratorsGlobus for System Administrators
Globus for System Administrators
 
Take Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLITake Command of WordPress With WP-CLI
Take Command of WordPress With WP-CLI
 
Bypass file upload restrictions
Bypass file upload restrictionsBypass file upload restrictions
Bypass file upload restrictions
 

More from Ghufran Ataie

More from Ghufran Ataie (8)

Global Warming and Climate Change - 2023.pptx
Global Warming and Climate Change - 2023.pptxGlobal Warming and Climate Change - 2023.pptx
Global Warming and Climate Change - 2023.pptx
 
Version control
Version controlVersion control
Version control
 
Sha algorithms
Sha algorithmsSha algorithms
Sha algorithms
 
ATS circuit
ATS circuitATS circuit
ATS circuit
 
Decision Making Process
Decision Making ProcessDecision Making Process
Decision Making Process
 
Transistor
TransistorTransistor
Transistor
 
Optical Character Recognition
Optical Character RecognitionOptical Character Recognition
Optical Character Recognition
 
Global warming
Global warmingGlobal warming
Global warming
 

Recently uploaded

Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Marc Lester
 

Recently uploaded (20)

A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14
 
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-CloudAlluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
Alluxio Monthly Webinar | Simplify Data Access for AI in Multi-Cloud
 
Transformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with LinksTransformer Neural Network Use Cases with Links
Transformer Neural Network Use Cases with Links
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
Workshop -  Architecting Innovative Graph Applications- GraphSummit MilanWorkshop -  Architecting Innovative Graph Applications- GraphSummit Milan
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 
Jax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined DeckJax, FL Admin Community Group 05.14.2024 Combined Deck
Jax, FL Admin Community Group 05.14.2024 Combined Deck
 
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024Automate your OpenSIPS config tests - OpenSIPS Summit 2024
Automate your OpenSIPS config tests - OpenSIPS Summit 2024
 
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaUNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea Goulet
 
The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)The mythical technical debt. (Brooke, please, forgive me)
The mythical technical debt. (Brooke, please, forgive me)
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
 
Evolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI EraEvolving Data Governance for the Real-time Streaming and AI Era
Evolving Data Governance for the Real-time Streaming and AI Era
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 

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()