Archive for the “General” Category

I noticed that is currently is impossible or at least difficult to apply Disk Quota’s based on Security Groups instead on Folder location / users. In this article I will try to explain a solution for this problem.

 

To successfully apply quota’s to groups, you need the following things:

  • Windows 2008 Domain Controllers for Group Policy Preferences
  • File Server Resource Manager (available on Windows Server 2003 R2 and Server 2008)
  • A single file server
  • Security Groups
  • Vb Scripts
  • Event triggered tasks

 

In this situation, there are 3 quota templates defined in the File Server Resource Manager:

  • Bronze (100 MB), applied to the share \\SERVER1\HOME$\BRONZE
  • Silver (200 MB), applied to the share \\SERVER1\HOME$\SILVER
  • Gold (500 MB), applied to the share \\SERVER1\HOME$\GOLD

  

Ok here we go! This how-to is pretty straight forward, so if I am going to fast plz let me know!

 

1: Create the required QUOTA templates in FSRM (BRONZE, SILVER, GOLD)

2: Create a HOME$ share on a fileserver (in this example SERVER1)

3: For every QUOTA template, create a separate subfolder with the Quota name (BRONZE, SILVER and GOLD).

4: Apply the QUOTA templates on the in step 3 created folders (BRONZE -> BRONZE. SILVER -> SILVER etc)

5: Create three security Groups (in this example BRONZE, SILVER and GOLD)

6: Create a folder redirection policy for Desktop and Documents and configure it as show in the pictures below:

(pictures only show the BRONZE part, also add the SILVER and GOLD Groups\locations)

(configure redirection based on Security Groups and make sure the “Move the contents of ….. to the new location” is not checked!)

 

7: Create a VBS for every QUOTA as shown below and place them on a centrally accessible share (\\DOMAINNAME.LOCAL\NETLOGON\SCRIPTS for example):

 

The script moves the user files to the correct ‘quota’ location. If the user is member of the group “BRONZE”, all the files are moved from the \\SERVER1\HOME$\SILVER and \\SERVER1\HOME$\GOLD share to the BRONZE location.

 

8: For every QUOTA, create shortcuts using Group Policy Preferences (User Configurarion\Preferences\Windows Settings\Shortcuts) and target them as shown in the third picture (example is for the BRONZE quota, they also have to be created for SILVER and GOLD):

!!IT IS VERY IMPORTANT TO USE IDENTICAL NAMES FOR THE SHORTCUTS!!!

 

The reason is that the appropriate shortcut is created based on group membership. If the user is added to a different group, the shortcut is overwritten.

 
 

Target path is the location of the VBS files. In this example it is \\DOMAINNAME\NETLOGON\SCRIPTS\BRONZE.VBS

 

As you can see, this shortcut is only updated for users that are member of the BRONZE group. If they are also member of the SILVER / GOLD group, nothing will be changed.

 

Now the final part (optional, but highly recommended)

 

Create a event triggered tasks to:
  • Remove the user from the groups SILVER and GOLD if added to BRONZE
  • Remove the user from the groups BRONZE and GOLD if added to SILVER
  • Remove the user from the groups BRONZE and SILVER if added to GOLD

How to do this can be found in the following blogpost http://www.buit.org/2009/07/16/event-based-triggered-tasks/.

 

Et Voila! Quota’s can be applied to Groups instead of users :)

 

Regards,

 

Benno Zelders

Comments 7 Comments »

A while ago Otto Helweg wrote how to use the Task Scheduler shipped with Vista and Windows Server 2008 to create triggers based on certain events logged in the eventlogs. This post explains how to use event specific data in a triggered action to automate almost everything you can think of.

 

For example:

In company X, a drive mapping to a certain UNC share is based upon Group Membership.

There are 2 Groups that map the letter P. If the user is member of the Group Sales, he gets the mapping \\server1\sales. If the user is member of the Group Reception, he gets the mapping \\server1\reception.

 

What happens if the user is member of these 2 groups? Well that depends on the scripting capabilities of the IT department (or the way Group Policy Preferences is used).

I can tell you that something is not right…

 

What would you do?

 

At the moment, you depend on the user to report this so an administrator can remove the user from the other group.

 

My suggestion would be to automatically let the user be removed from the other group!  (user is added to sales -> remove user from reception and vice versa).
This is all possible by using the task scheduler! I’ll try to explain how you can accomplish this in 6 steps. 

 

1: Create the Task

 

Open the Event viewer on the Windows 2008 Domain Controller, and look for the event “4732″. (this is the event generated when a user is added to a domain local group).
This event can be found in the Security container. Right click the event and select “Attach Task To This Event…”

 attach-task

You are prompted to fill in a wizard. The only part of the wizard that requires some kind of input is the “Action” part. It doesn’t really matter what you do here, because we will change it later.

After the wizard is complete, open the task scheduler (start, type in task and press enter).
You can see the following is added:

 

 created-task1

2: Export the Task

From within Task Scheduler, export the task (as an XML file).

071609-1556-eventbasedt3.png

 

 

3: Modify the Task so it only reacts on specific 4732 events.

 

Currently the trigger is activated with every “Local Group membership change”.
We don’t need that!!! To fix this, we need to edit the exported XML with notepad and change the following text:

 

<Triggers>

    <EventTrigger>

      <Enabled>true</Enabled>

      <Subscription>&lt;QueryList&gt;&lt;Query Id=”0″ Path=”Security”&gt;&lt;Select Path=”Security”&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4732]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>

    </EventTrigger>

  </Triggers>

 

to: 

 

<Triggers>

    <EventTrigger>

      <Enabled>true</Enabled>

      <Subscription>&lt;QueryList&gt;&lt;Query Id=”0″ Path=”Security”&gt;&lt;Select Path=”Security”&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4732]] and *[EventData[Data[@Name="TargetUserName"]=”SALES”]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>

                </EventTrigger>

   </Triggers> 

 

By adding this line, the scheduled task is only responding to event 4732 if the value TargetUserName equals SALES (in this case this is the Local Security Group Name).

*[EventData[Data[@Name="TargetUserName"]=”SALES”]]

 

For example: If you would like to filter on certain users, you can use “MemberName” instead of “TargetUserName”).

 

 If you look at the XML view of an event, you will see how the filter works (open an event -> details -> XML view).

 

4: Modify the Task so we can use certain data from the event

 

 Now we can add some lines to use the data from the event to pass along to the action we will configure later. First we have to determine which information we want to use.
This is the Event in XML view (for me the only interesting part is the EventData section):

<Eventxmlns=”http://schemas.microsoft.com/win/2004/08/events/event”>
<System>
 <EventData>

                <Data Name=”MemberName”>CN=Benno Zelders,DC=TEST,DC=lan</Data>

                <Data Name=”MemberSid”>S-1-5-21-4012033790-4084158397-284283626-1332</Data>

                <Data Name=”TargetUserName”>SALES</Data>

                <Data Name=”TargetDomainName”>TEST</Data>

                <Data Name=”TargetSid”>S-1-5-21-4012033790-4084158397-284283626-1333</Data>

                <Data Name=”SubjectUserSid”>S-1-5-21-4012033790-4084158397-284283626-1206</Data>

                <Data Name=”SubjectUserName”>administrator</Data>

                <Data Name=”SubjectDomainName”>TEST</Data>

                <Data Name=”SubjectLogonId”>0×55193</Data>

                <Data Name=”PrivilegeList”>-</Data>

 </EventData>

</Event>

 

I personally find it very useful to use <Data Name=”MemberName”>, because it shows which user is added to the group. To allow the eventdata parameter to pass along to the action, we need to add the following lines to the XML just before the </EventTrigger> line:

 

<ValueQueries>
<Value name=”MemberName”>Event/EventData/Data[@Name='MemberName']</Value>
</ValueQueries>

 

 The end result of the <Triggers> part of the XML is:

 

<Triggers>

<EventTrigger>

<Enabled>true</Enabled>  

<Subscription>&lt;QueryList&gt;&lt;Query Id=”0″ Path=”Security”&gt;&lt;Select Path=”Security”&gt;*[System[Provider[@Name='Microsoft-Windows-Security-Auditing'] and EventID=4732]] and *[EventData[Data[@Name="TargetUserName"]=”SALES”]]&lt;/Select&gt;&lt;/Query&gt;&lt;/QueryList&gt;</Subscription>

 <ValueQueries>
 <Value name=”MemberName”>Event/EventData/Data[@Name='MemberName']</Value>

</ValueQueries>
</EventTrigger>

</Triggers>

 

Now we can use the $(MemberName) variable in an action!.

 

5: Import the “Modified XML” in task scheduler

 

First we have to delete the original task from the task scheduler.

After this is done, we can import the modified XML by right clicking folder “Event Viewer Tasks” and select “Import Task”

 import-task1

 

 

6: Create the action using the variable

 

First remove the action created in the wizard (open the task, go to “Actions” and remove the existing action.  Now we can create the action to automatically remove the user from the “RECEPTION” group after he is added to the “SALES” group.  (Click New and select “Start a program”). This can be accomplished running a command by using the Active Directory extensions for powershell from QUEST (to automatically load the Quest snap-in, see this page).

 

 create-action1
Program/script:    Powershell.exe
Add arguments:    -command Remove-QADGroupMember –identity RECEPTION –member ‘$(MemberName)’

 

And click ok twice.

 

Now the user is automatically removed from the group RECEPTION after it is added to the SALES group. (if it doesn’t work, check the “Run with highest privileges” option in the tab “General”. UAC can block this action).

 

Of course this can be fine-tuned, but you get the idea right? Now it is possible to create all sort of tasks that use data passed through from an event!

 

Regards,
Benno Zelders

Comments 9 Comments »

2 months ago I did the Windows 7 beta exam.
http://www.buit.org/2009/05/05/windows-7-beta-exam-071-680/

Today I noticed on my transcript that I’ve passed the exam. Nice timing from Microsoft, cause last 2 weeks I’ve passed every Server 2008 exam for my MCITP Admin and MCITP Enterprise Admin. ;)

Comments 7 Comments »

citrix_iforum

 

On the 9th and 10th of june 2009, I visited the Citrix iForum Benelux 2009:

iForum is the event where virtualisation, networking and application delivery meet.

The 9th of june offered two workshops of which I attend the one hosted by CDG: ‘Optimizing your datacenter with Citrix and Novell Platespin’. Products covered where Novell Platespin Recon and Migrate, CItrix XenApp, XenServer, XenDesktop and Provisioning Server. The workshop featured a nice package of demo’s on screen. I think a Provisioning Server brings some very nice features to the Citrix productline. The main worry of every Citrix admin (how do I keep my XenApp servers identical? ) isn’t much of a challenge anymore with provisioning server, which streams a single read-only vDisk to every XenApp server via PXE. A major downside is obviously the load on the network at boot time.

After the workshop I checked into my hotel and prepared for an interesing evening programm fully loaded with “networkiwork related consumptions… Accompanied by a live performance of the greatest rock band The Netherlands have ever produced: Golden Earring (still going strong despite of being in their sixties).  

Golden Earring

 

 

 

 

 

The 10th of june was the “real” conference day; lots of workshops to choose from. With a very interesing opening keynote by Mark Templeton (CEO Citrix), introduced (in Double Dutch, quite understandable for native dutch speakers) by Rob van der Hoeven (Area Vice President Benelux). Mark Templeton presented his vision on tomorrows workspace and the direction Citrix is heading to provide solutions to the challenges of the (near) future.  Introducing Dazzle as an iTunes-like portal where enduser can “shop” their own applicationset which can also incorporate 3rd party webapplications etc. Citrix Reciever for iPhone (windows mobile coming soon) bringing the amount of citrix clients down to (the power of) 1. Futhermore, introducing XenClient: a hypervisor solution for the desktop allowing endusers to switch easily between their own private OS and the controlled environment of the corporate desktop also availble for MAC. This promises to be a very interesting product indeed, especially because of its pricing: FREE Also free of charge is the use of XenServer, which is now the preferred platform for hosting XenApp and incorporated some interesting features like XenMotion (vMotion) at no additional costs… Since results of virualized XenApp environments on other (vmware) products varied, XenServer is definately the way to go!

 My workshop program for the day:

  1. Keynote: Mark Templeton, CEO & President of Citrix Systems Inc. & Rob van der Hoeven, Area Vice President Citrix Systems Benelux
  2. Meet the Experts – Ask the hard questions! by Thomas Zell, Derek Thorslund, Simon Frost, Rob Sanders and Jan-Frans Lemmens
  3. LUNCH
  4. Best Practices XenApp by Rob Sanders
  5. Closing keynote
All in all is has been a very interesting two days with lots to think about.
Mark Templeton announced Citrix Synergy is going to be extended to Europe and split into Synergy Autumn and Spring. So please all pre-register for Synergy Autumn 2010 and keep an eye on the Citrix iForum site and I’ll meet you there!  

Comments 5 Comments »

 

As a System Center Operations Manager Specialist I’m happy to tell you all that SCOM 2007 R2 has hit Release to Manufacturing today. The Operations Manager Team has worked for two years to get this version out there. Thank for that!

The SCOM 2007 R2 is a solid piece of work with numerous new and improved features to make it easier to do your daily task in getting a better an more cost effective infrastructure. In this article I will discuss a few of the new improvements and features in R2.

One of the big eye catchers is the cross platform functionality that OpsMgr 2007 R2 provides out of the box. OpsMgr 2007 R2 will integrated touch and feel for both Windows and Unix/Linux based clients. With this integration you can watch your environments health through a single pane of glass.

 

The SCOM 2007 R2 supported cross platform operating systems are:

  • SUSE Linux Enterprise Server 9, 10 SP1 (x86)
  • Red Hat Enterprise Linux 4, 5 (x86)
  • Solaris 8 (SPARC), 9 (SPARC), 10 (SPARC/x86)
  • HP-UX 11iv2, 11iv3 (IA64/PA-RISC)
  • AIX 5.3, 6.1 (POWER)Not only the operating systems on the non windows machines are taken care of the applications are as well. With Managements packs of eg Brideways, Jalasoft, Solarwinds, Dell and HP all layers in the Service level chain are taken care off.With SCOM 2007 monitoring changed from an infrastructure based to Line of business application monitoring. Up time and end user experience where becoming more important what is in line with the vision Microsoft has with their user centered world. With SCOM 2007 R2 this monitoring capability extended with Service level monitoring. Service Level monitoring provides enhances performance management of applications in the IT infrastructure, delivering the ability to granularly define service level objectives that can be targeted against the different components that comprise an IT service.
  •  

    When Service levels are in place the access and security to these IT services becomes more and more interesting. Audit Collection Services ACS gives the insight IT organizations need to drive compliance and investigate un-trusted and unwanted access to there services. ACS provides an integrated solution and with SCOM 2007 R2 the ability to use ACS on no windows systems will broaden de scope as a complete solution for compliancy.

    Ease of operations is always a nice to have but in these times when application updates and product renewal is a day to day operations the ease of use and ease to operate is key for any product. SCOM 2007 R2 even made it a bit easier. A full upgrade from the SCOM 2007 SP1 is supported and all tuning and configuration you have done over the last two years will stay in place. Notifications where simplified and the the latest Management packs will provide reports with easier object selection. Enormous performance increate in console usage, which was a big down side in SCOM 2007 and SCOM 2007 SP1. Even the show updated management pack function as was used in MOM 2005 is back in SCOM 2007 R2. Not as an alert but when importing Management packs from the online catalog you can select the option to show update Management pack which you have installed in your environment.

  •  If you want to tryout all these features in the new version download the System Center Operations Manager 2007 R2 evaluation edition. I will get in more detail about some of the new features in some upcoming articles.

    Regards,
    Walter Eikenboom
    http://weblogwally.spaces.live.com

  • Comments 4 Comments »