PowerShell Tip – How to set permissions that applies to folder, subfolder and files without iCacls?

It is very simple… $path = ‘C:\Temp’ New-Item -Path $path -ItemType directory $acl = Get-Acl -Path $path $permission = ‘Everyone’, ‘FullControl’, ‘ContainerInherit, ObjectInherit’, ‘None’, ‘Allow’ $rule = New-Object -TypeName System.Security.AccessControl.FileSystemAccessRule -ArgumentList $permission $acl.SetAccessRule($rule) $acl | Set-Acl -Path $path

Building guest (virtual) File Server Failover Cluster on Hyper-V host with Windows Server 2012 R2

Install guest (virtual) failover cluster Please continue to the Building guest (virtual) failover cluster series to learn how to create guest cluster from the virtual machines. Prerequisites Cluster: Microsoft Windows Server 2012 R2 Two nodes Failover Clustering Storages Witness disk: One disk on a shared VHD or VHDX virtual disk Cluster disks: One or more disks […]

Building guest (virtual) Failover Cluster on Hyper-V host with Windows Server 2012 R2 – Part 2 – Install and configure cluster

Prerequisites of Failover Clustering Domain join Join to the domain. PowerShell $domain = ‘ad.contoso.com’ $userName = ‘UserWithPermissionsToAddComputerIntoDomain’ $password = ‘Your-Password’ | ConvertTo-SecureString -AsPlainText -Force $login = ‘{0}\{1}’ -f $domain, $userName $credential = New-Object System.Management.Automation.PSCredential($login, $password) Add-Computer -DomainName $domain -Credential $credential -Restart Configure storage Online all disks on all nodes. Initialize and format disks on one […]