How to maintain the patch status of your Windows and Linux machines
“You can use Update Management in Azure Automation to manage operating system updates for your Windows and Linux machines in Azure, in on-premises environments, and in other cloud environments.” Microsoft
To enable on a specific virtual machine in Azure
Note – You only pay for logs stored (Log Analytics)
import-CSV "" |
$result = Test-Connection -ComputerName
$_.Name -Count 1 -Quiet $_.name, $result -join ',' | out-file "c:\scripts\PingSweep\computer_results.txt" -Append
COMMAND /BATCH SCRIPT
Create list of computers to ping Comupters.txt
Create batch file pingsweep.bat
for /f %%s in (computer.txt) do (ping -n 1 %%s) open cmd pingsweep.bat >> PINGSWEEPQUOTES.TXT
Please test all scripts in a lab environment. We have no liability for any issues caused.
If you would prefer a more advanced script in PowerShell, check out this example of a ping script in PowerShell written by Jamie Crookes "Ping utility function/module for PowerShell" can be found here http://www.powerscript.net/handy-ping-utility-function/
So todays challenge. Hide visible folders under share to users who don’t have access.
We create some new shares. Folders are then created under the share and NTFS permissions set.
Share Name : Shared Folder
IT (NTFS Permissions – IT group Only)
HR (NTFS Permissions – HR group Only)
PAYROLE (NTFS Permissions – Payrole group Only)
ALL USERS (NTFS Permissions – HR Only)
I created a share. When logged in as a user, i could see all the folders under the shared folder.
As you would expect, I could only open the folders I had access to.
So, is this suitable? It doesnt let users in to folders they dont have access to, but it does tell them which folders are there.
So this is where “Access Based Enumeration” might come in. This feature hides folders from users that do not have permission to that folder.
Access based enumeration (ABE) came out in Windows Server 2008.
How to setup Access Based Enumeration:
Launch “SERVER MANAGER” (Server 2012 or Server 2016)
Click on “FILE AND STORAGE SERVICES”
Click on “SHARES”
Right click on each share you want to set ABE, select “PROPERTIES”
Click “ENABLE ACCESS BASED ENUMERATION”
The next time a user logs in and views the share only users that have permissions to that folders under the share will be able to see them. The folders they dont have permission to will not appear.
—Always try things in a lab environment, always seek further information before implementing from the vendor i.e Microsoft.com —