Shutdown computers with PowerShell

A couple of days ago I needed some kind of automation to shutdown several computers on my LAN that were also part of the company domain. So I came up with this script that runs as a Scheduled task on my Domain Controller:

$computers = Get-Content C:\computers.txt

Read More

How To: Assign permissions for a specific subfolder on Synology NAS

A couple of days ago i stumbled upon this problem as I was trying to grant read and write permissions to one of my colleagues that had to access a specific subfolder which was a third tier level down the Synology Filesystem. The request was that he should be able to read and write inside the folder but he couldn’t access anything else outside of it.

So I want my user called Bob to access folder Sub_sub_folder1. Lets hop in and try to explain starting with this example:

  • Select File Station and right-click on root folder and then go to Properties
  • In the Permission tab click Create
  • Select the user (in our example Bob) and then in the Apply to tick only This folder
  • In the Permission panel bellow give him the following Read permissions:
    • Traverse folders/Execute files
    • List folders/Read data
  • Repeat the steps until you reach the desired subfolder (in our case Sub_sub_folder1)
  • Click on Sub_sub_folder1 and follow the same steps as before only in this case you will give Bob all the permissions he requires

This is it! Now Bob can Read/Write inside Sub_sub_folder1 but he can only list the other folders. This procedure is necessary if you want your user to access the folder by himself using Windows Explorer, otherwise you could map the folder as a network drive and give the required permissions only to the desired folder.

If you want a visual grasp on the procedure, here’s a video I made:

Read More