I am working on a script to create the directory structure for our new file servers, one of the steps is to create the shares which is easy enough;
net share <snarename>=<path> /grant:<user>:FULL (for full access obviously, but as file rights are controlled by NTFS this is less important).
Anyway one thing popped up, how about ABE (Access based enumeration) on a Windows 2008R2 box? On Windows 2003 it was a ‘patch’ that needed downloading how about Windows 2008? Well simple enough it’s as expected embedded and can be found under the advanced settings for the share in the “Share and storage management” mmc. Sadly enough there does not seem to be any switch for the “net share” command that will enable this, the default for “net share” is ABE = off so you have to enable ABE manually afterwards 🙁
BTW; ABE is basically a feature that tell the server “only show the user the files he/she has access to” so the users will not see the “Top Secret” folders etc.
Read more and see the nice guides etc here;
http://blogs.technet.com/b/hugofe/archive/2010/06/21/windows-2008-access-based-enumeration-abe.aspx
https://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.png00Mikehttps://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.pngMike2011-03-08 17:51:572011-03-08 17:51:57ABE on Windows 2008R2
Nothing new here, just a quick way to block google ads via a simple addition to your hostfile – Not that I am against Google ads (I use them myself on this blog), but sometimes they are put in annoying places and besides I respect that some people just don’t like advertising.
Here’s how to;
Fire up your Notepad (if you are running Vista,7 you MUST launch in administrator mode – rightclick notepad and select “run as administrator”), open the file “hosts” found here; c:\windows\system32\drivers\etc.
Now add these two lines to the bottom of the hosts file (there should be a tab between the numbers and text);
https://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.png00Mikehttps://readmydamnblog.com/wp-content/uploads/2015/02/toplogo4.pngMike2011-03-08 17:42:212011-03-08 17:42:21Blocking google ads via your hostfile
A consultant mentioned a rather cool trick to me some time ago, and I think it’s worth a mention here.
We have a Microsoft Hyper-V cluster with 3 nodes, now these nodes have something called “Cluster Shared Volumens” which is their disk-pools – an annoying fact about these is that this “shared volume” is not represented as a drive letter so regular monitoring of diskspace does not warn you about low disk space – this particular problem was resolved via a script on our MS-Scom server but that is not “the trick”. The trick is, let’s say that the “Shared Volume” is low on diskspace on a Friday and run out of space during the weekend – now how do you with the least downtime get it back online? Sure you can log in to your san, expand the disk and then to the server and extend the volume, but all of this takes time and is a bit tedious via your smart phone when it happens Saturday night when you are at the cinema with your girlfriend 🙂 The trick is to create a ‘dummy’ file on the shared volume that you simply can delete once diskspace is depleted thus freeing up space in a second – let’s say you create a 5 – 10 or 15 GB file that you can simply delete freeing up 5 – 10 or 15gb of diskspace in a second this could really save your weekend 🙂
Anyhow, it’s quite easily done via a buildin command in Windows;
This command will create a file called emergency;
15gb;
fsutil file createnew emergency 15000000000
10GB;
fsutil file createnew emergency 10000000000
5GB;
fsutil file createnew emergency 5000000000
once you run out of diskspace you simply delete this “emergency” file and immediately free up space causing the least downtime and possibly buy you time to regular business hours, quite simple but yet clever. The single drawback is obvious you ‘waste’ the diskspace you are reserving – but hey diskspace these days cost so little so it’s hardly worth mention.
An advancement of this trick would be to implement automation – so that the ’emergency’ file would be erased automatically if the “Cluster Shared Volume” run out of disk space.
ABE on Windows 2008R2
OSBlocking google ads via your hostfile
Security, WebNothing new here, just a quick way to block google ads via a simple addition to your hostfile – Not that I am against Google ads (I use them myself on this blog), but sometimes they are put in annoying places and besides I respect that some people just don’t like advertising.
Here’s how to;
Fire up your Notepad (if you are running Vista,7 you MUST launch in administrator mode – rightclick notepad and select “run as administrator”), open the file “hosts” found here; c:\windows\system32\drivers\etc.
Now add these two lines to the bottom of the hosts file (there should be a tab between the numbers and text);
127.0.0.1 pagead.googlesyndication.com
127.0.0.1 pagead2.googlesyndication.com
save and your done, no more google ads.
Cluster nodes create ’emergency’ file
OS, VirtualWe have a Microsoft Hyper-V cluster with 3 nodes, now these nodes have something called “Cluster Shared Volumens” which is their disk-pools – an annoying fact about these is that this “shared volume” is not represented as a drive letter so regular monitoring of diskspace does not warn you about low disk space – this particular problem was resolved via a script on our MS-Scom server but that is not “the trick”. The trick is, let’s say that the “Shared Volume” is low on diskspace on a Friday and run out of space during the weekend – now how do you with the least downtime get it back online? Sure you can log in to your san, expand the disk and then to the server and extend the volume, but all of this takes time and is a bit tedious via your smart phone when it happens Saturday night when you are at the cinema with your girlfriend 🙂 The trick is to create a ‘dummy’ file on the shared volume that you simply can delete once diskspace is depleted thus freeing up space in a second – let’s say you create a 5 – 10 or 15 GB file that you can simply delete freeing up 5 – 10 or 15gb of diskspace in a second this could really save your weekend 🙂
Anyhow, it’s quite easily done via a buildin command in Windows;
This command will create a file called emergency;
once you run out of diskspace you simply delete this “emergency” file and immediately free up space causing the least downtime and possibly buy you time to regular business hours, quite simple but yet clever. The single drawback is obvious you ‘waste’ the diskspace you are reserving – but hey diskspace these days cost so little so it’s hardly worth mention.
An advancement of this trick would be to implement automation – so that the ’emergency’ file would be erased automatically if the “Cluster Shared Volume” run out of disk space.