This one will be short and sweet.
Imagine you have an Active Directory full of users. You also have a file server in your environment. And, as it happens, each of your users needs to have a folder created just for himself, on this file server. Each folder should have inheritance disabled and each user should get full permissions on his folder.
What do you do?
Well, we can manually create the required folders, or we can use a PowerShell script which will do it for us. Obviously, I’ve chosen PowerShell (maybe not the nicest script in the world, but it does the job), or this post would be… lame.
So, the interesting part of this script goes like this (I've added a few empty lines to make comments more visible):
# get user/folder names from Active Directory (SamAccountName property)
$users = Get-ADUser -Filter * | Select SamAccountName
foreach($user in $users)
$folder = "D:\Share\$user"
# create a (sub)folder for each user
New-Item -Path $folder -Type Directory
# read the current access rules applied to a folder
$acl = Get-Acl -Path $folder
# disable the inheritance, but leave the inherited access rules in place
# add Full access rule for a specific user
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("$user","FullControl", "ContainerInherit, ObjectInherit", "None", "Allow")
# add this rule to existing ruleset
# and finally, apply the new ruleset to a folder
Set-Acl -Path $folder -AclObject $acl
Are you looking for some great Operations Management Suite (OMS) resources?
Earlier today something great got published – a preview version of a new free e-book on OMS! Book, which is called Inside the Microsoft Operations Management Suite, was authored by four OMS experts – Tao Yang, Stanislav Zhelyazkov, Pete Zerger and Anders Bengtsson.
Haven’t had a chance to read it just yet, but it looks great (total of 430 pages, split in 12 chapters), and can’t wait to start reading it!
- Introduction and Onboarding
- Searching and Presenting OMS Data
- Alert Management
- Configuration Assessment and Change Tracking
- Working with Performance Data
- Process Automation and Desired State Configuration
- Backup and Disaster Recovery
- Security Configuration and Event Analysis
- Analyzing Network Data
- Accessing OMS Data Programmatically
- Custom Management Pack Authoring
- Cross-Platform Management and Automation
You can download this book for free from TechNet Gallery, and if you liked it, don’t forget to leave the 5-star rating (and a comment).
Now I have something to read in this cold winter days (and nights).
Great news coming from Microsoft – we are so close to finally getting the Microsoft Azure Stack preview! But… not this calendar year, unfortunately.
Azure Stack will be a combination of Windows Server 2016, Azure Pack and Azure Service Fabric. Combined together, these components will deliver the new “private cloud” solution (or more precisely hybrid solution because you will be able to expand with “public cloud” resources, if needed), which looks and feels like the “big Azure”. Bottom line is that the experience using Azure Stack or Azure will be identical (i.e. Microsoft brings it’s Azure to our on-premises datacenter). Sounds cool!
Microsoft released a “teaser” with hardware requirements for its Azure Stack, and who better to explain them than Jeffrey Snover himself. Enjoy this short video.
And the best thing of the whole video is that you’ll need only ONE standard server to host the Azure Stack. One to rule them all.
Don’t forget to take a look at the official announcement here (and to purchase additional server if needed, so that you can play with Azure Stack Preview once it gets available).
As the "transition period" from kaniski.info to kaniski.eu slowly comes to its end, I've decided that I will no longer host this blog at *.kaniski.info (and, with that, my @kaniski.info e-mail address will cease to exist).
Note that this blog will remain hosted only at http://blog.kaniski.eu/, and you can still contact me using my @kaniski.eu e-mail address.
There was a barbecue today… on the roof… of the Microsoft office! How cool is that???
I’ve had an honor to join my colleagues and friends, and contribute to this great event with a presentation called “Nano Server – budućnost je tu!”, which was actually inspired by Jeffrey Snover’s Ignite speech about Nano Server – the new installation option in Windows Server 2016.
The whole Nano Server idea is very simple – let’s remove all the “unnecessary” roles and features (especially the famous GUI), and leave only the parts that we really need for whatever purpose (i.e. we’re getting the “purpose built servers”). All the purposes/roles that are supported in this preview version are Hyper-V, File Server and Failover Clustering, and they are working great on this “nano-sized” server operating system (even in this early preview).
I’m really excited about Nano Server, and I’m so glad that I’ve had a chance to talk about it at such great event. Because there were so many questions about it during the day/evening, I’ve noticed that Nano Server is a very cool subject for attendees also. Nice!
The presentation is available on SlideShare – check it, install the Nano Server and start rocking your datacenters!
Hi All – I wanted to let you know about a great free event that Microsoft and the MVPs are putting on, May 14th & 15th. Join Microsoft MVPs from the Americas’ region as they share their knowledge and real-world expertise during a free event, the MVP Virtual Conference.
The MVP Virtual Conference will showcase 95 sessions of content for IT Pros, Developers and Consumer experts designed to help you navigate life in a mobile-first, cloud-first world. Microsoft’s Corporate Vice President of Developer Platform, Steve Guggenheimer, will be on hand to deliver the opening Key Note Address.
Why attend MVP V-Conf? The conference will have 5 tracks, IT Pro English, Dev English, Consumer English, Portuguese mixed sessions & Spanish mixed sessions, there is something for everyone! Learn from the best and brightest MVPs in the tech world today and develop some great skills!
Be sure to register quickly to hold your spot and tell your friends & colleagues.
The conference will be widely covered on social media, you can join the conversation by following @MVPAward and using the hashtag #MVPvConf.
Register now and feel the power of community!
More info can be found here (and if you’re somewhere near, come and say ‘hi’ ). See you in beautiful Umag!
If you have Windows Server vNext Technical Preview installations that are expiring in a day or so, you’ll be pleased to know that Microsoft yesterday addressed this issue and released a patch (as promised). Patch will extend the evaluation period of those installations until the October, 2015.
With the next build just around the corner, maybe you won’t need this patch to last for that long, but… it’s fixed.
Some of us in the MVP community noticed (and finally resolved it, with support from Microsoft people) that the installation of this update on some machines (Hyper-V hosts, in my case) requires that you also (re)activate your Windows installation. If you don’t do it, it may seem that the patch wasn’t applied. Also, remember that this patch needs a reboot or two to be actually “installed”.
Voilà… enjoy your “renewed” Technical Preview (1) machines!
New version of my favorite Hyper-V backup tool just got officially released!
Altaro released the long-awaited next version of their Hyper-V backup software, Altaro Hyper-V Backup v5 – it features a completely new look, centralized configuration and management of multiple hosts with greater flexibility and improved performance. Do I have to mention that it has a free version as well?
FREE version offers free backup of two virtual machines... forever! (there is also a 30-day trial available for more than two virtual machines)
I like it because it’s simple and not too expensive (in more than one aspect), fast, does the job, and does it pretty good! I’ve also installed the new version on one of my hosts, and it looks just great (can’t wait to run the first backup and restore of my virtual machines)!
UPDATE: Please, don't remove your own host from the console (until the next week's release goes public) - in the current public release (184.108.40.206), you won't be able to add it back!
1. stop all Altaro services
2. go to %ProgramData%\Altaro
3. rename the AltaroBackupProfile folder to AltaroBackupProfile.old
4. start all Altaro services
Microsoft finally published a session catalog of the upcoming Ignite conference.
Look at the session catalog and pick your sessions (or if you are not coming, just take a look and see what you’re missing ). From what I’ve seen, there are so many great sessions – I hope to hear them all!
Also, participate in the official #IgniteJam on Twitter on Februray 3rd (9:00AM PT).