Monthly archives: May 2010

Login Script Not Running Windows 2008 Remote Desktop Services (Terminal Services)

Call today: User has not got any network drives when logging on to the thin clients.

The setup for this is as follows:

  • 2 x Windows Server 2008 R2 servers running RDS, DNS round robin, load balanced.
  • 56 x ThinStation 2.2.2 clients

A VBS login script is applied using Group Policy. All student users have a Mandatory Roaming Profile.

Any user that was not the user that I used to create the template could not run the login script. Took quite a while to work out that the mandatory profile was the cause.

To solve the problem:

  1. Open Registry Editor
  2. Select HKEY_USERS, then click File –> Load Hive
  3. Select the mandatory profile file (NTUSER.MAN) and give it a name.
  4. Right click on the key that you typed in in step 3 and select Permissions.
  5. Remove the user that you used to create the Mandatory Profile
  6. Add in the Authenticated Users (or a different group if you want to restrict access further) and assign it Full Control.
  7. Propagate the permissions to all child objects.
  8. Select the hive that you added in step 3, click File –> Unload Hive
  9. Test.

I suggest creating a backup of the original hive before you make any changes. Just in case.

Now, whenever a user logs in the script should run, and create all of the necessary network drives that you have defined in your script.

Be the first to like.
Posted in General Stuff, Server 2008, Thin Client | Tagged , , | 1 Comment

T-SQL Case function

I have just discovered that my favourite function exists in SQL.

Select Case is to me, the best thing ever. Elegant, simple and powerful. Makes short work of processing and sorting in most scripts and programs.

And today – whilst writing some queries for reports, I have now found that it exists in SQL!

My sample below shows what I have made work here. Think this could be extended a lot further to make really powerful Select statements. Going to have to give it a try some time.

The whole statement is constructed in much the same way as when programming with scripts.

SELECT DATEPART(yy, RecordTable.date) AS Year, DATEPART(wk, RecordTable.date) AS ‘Week’, COUNT(RecordTable.ID) AS Incidents,
CASE
WHEN Descript.Action LIKE ‘%racist%’ THEN ‘Racist Incident’
WHEN Descript.Action LIKE ‘%bully%’ THEN ‘Bullying Incident’
ELSE ”
END AS Category

Easy. Just saved me a load of time with filters too.

Be the first to like.
Posted in Programming | Tagged | Leave a comment

Removing All Users Desktop using Group Policy

This is one of those really frustrating finds, which if only the title mentioned the right words, would have been done in minutes.

Setting up a group policy for use with some on-screen tests that we wanted to perform. We wanted a custom desktop with only the icons that they required.

Little did I know after 15 minutes searching through a list of GP settings that the option to disable the All Users Desktop is called Remove Common Program Groups from Start Menu. How un-obvious is that? Not even the setting description mentions that it has an effect on the Desktop!

For everyone else out there looking for this setting:

User Configuration –> Administrative Templates –> Start Menu & Taskbar

 

4 people found this post useful.
Posted in General Stuff | Tagged , | 1 Comment

HP Z600 Workstation

Just received my new PC for home. After finally getting rid of all most of my old stuff.

I had a rough outline of what I wanted – a single computer, capable of running 2-3 virtual machines concurrently, good sound, and good upgrade capabilities. Also I have been promising myself since completing my MCSE that I could purchase two monitors and an Ergotron monitor stand.

In the end I was deciding between 2 machines: A Dell Precision T5500 and a HP Z600 Workstation. I’ve always had a preference to HP over Dell – personally I feel that the build quality is far superior for similar specification and similar price machines.

After some research and review, I have ended up with the following configuration:

HP Z600 Workstation – KK598ET

  • Intel Xeon Quad Core 2.26ghz
  • 6GB 1066mhz RAM
  • nVidia Quadro NVS 295 graphics card
  • Creative X-Fi Titanium
  • Windows 7 Professional 64 bit

My display configuration:

  • 2 x HP LP2275W22″ Widescreen TFT Display
  • 1 x Ergotron Dual LX Side by Side Arm

So far I am very impressed with the whole thing. The machine is precision engineered – nigh on silent too – which is great. Everything is screw-less. Nothing feels plastic or cheap. Installing the additional cards and a second hard disc was extremely quick and painless. As a bonus on the security front, the case lock feels substantial. Once locked, nothing moves. Everything is well laid out, and the cable channels which keep everything tucked away neatly really aid access to the case. Of course having all of those cables neatly out of the way under the motherboard also means that airflow is nearly unrestricted throughout the case. You would never know it had 6 fans constantly running either!

Performance wise – it flies! Booting up to Windows 7 takes less than 30 seconds from cold. Have it on standby and I can be back working in only a couple of seconds. With a virtual server running, I can still be copying files, listening to music on iTunes, browse the Internet, have my email open, and still not notice that the machine is working. I’m yet to have to wait for something to load.

Graphics performance is absolutely fine for what I use the machine for. I am not a heaby gamer, and that is clearly reflected in my choice of graphics card here. The nVidia Quadro 295, with 256mb RAM is plenty adequate for my needs. It does run games fine. Nothing special though.

Sound is amazing. After being really happy with my Creative Audigy 2 for nearly 10 years now, I have obviously missed out on what 10 years of sound technology in a PC has done. Crisp, clear, well defined full range sound is the order of the day. Of course, the speakers are a major player in this. I still love the sound of my Cambridge SoundWorks 4.1 system.

The displays are clear, stylish and simple. No problems reading or looking at them for long periods of time. Two gripes with them. They seem to be slow to turn on, and they default to DVI input, with Auto Input Select turned off. Took me 5 minutes to work out how to change the input. Surely Auto Select should be turned on in the factory?

Looking to get some programming done on the machine a bit later, and I am hoping that the performance will be as good as I expect.

Be the first to like.
Posted in General Stuff | 1 Comment
  • Tags

  • Categories

  •  

    May 2010
    M T W T F S S
    « Apr   Jun »
     12
    3456789
    10111213141516
    17181920212223
    24252627282930
    31  
  • Meta

  • Top Liked Posts

    Powered by WP Likes

Swedish Greys - a WordPress theme from Nordic Themepark.