Shut down multiple Raspberry Pies remotely

Tuesday, August 23, 2016

I have multiple Raspberry Pies and one main proxy Pi which monitor these pies.
I want to shut down all other pies without entering any password.

To do this task I have to set the main RPi very trusted and let other pies know that this one is the king. Lets log into the main pi now.

Make sure I am logged with user [pi] right now:
Lets generate some public key content:
After this command I need to press [Enter] two times.

With user [pi] I need to install this key on all other pies:
ssh-copy-id -i ~/.ssh/
ssh-copy-id -i ~/.ssh/
ssh-copy-id -i ~/.ssh/
Again make sure you are user [pi] right now:
Now I create this new script:
vi ~/
Lets create some loop with host names in array:
for a in;do
ssh -t pi@$a 'sudo shutdown -h now'
Set the script executable:
chmod +x ~/
To shut down everything I use:

Meow and green birdy

Sunday, August 21, 2016

Add Public Folder Owner permission, PowerShell, Exchange

Wednesday, August 10, 2016

List all folders:
Get-PublicFolder -Identity "\" -Recurse
Add permissions to single public folder:
Add-PublicFolderClientPermission -Identity "\Custom Folder Name" -Recurse -AccessRights Owner -User usernamegoeshere
Add permissions to all public folders:
Get-PublicFolder –Identity "\" –Recurse | Add-PublicFolderClientPermission –User usernamegoeshere –AccessRights Owner