Thursday 1 May 2014

Active Directory delegation

To delegate permission for a domain user to:
  • add new users to container
  • change password
  • modify group membership
  • modify users properties (such as email / name etc)
  • move users between OU's
First one required this steps:
  • Right click on container and choose Delegate Control
  • When Delegation Wizard opens up click Next
  • On another page choose group you want to give permissions to and press Next
  • On next page Create a custom task to delegate and choose Next
  • Choose Only the following objects in the folder and go to the bottom of the list and choose User objects. Choosing anything more then just one entry will not give you possibility of granular choice of properties to change.
  • Make sure to have Create selected objects in this folder checked and press Next
  • Choose:
    • Read All Properties
    • Write All Properties
    • Read and write general information
    • Read and write logon information
    • Read and write phone and mail options
    • Read and write web information
    • Read and write Terminal Server license server
    • Read and write remote access information
    • Change password
    • Reset password
This allows to create user and enable / disable user but not delete it. At this moment user isn't able to change group membership as this has to be done differently.

Wednesday 11 September 2013

Slugglish Vmware Vcentre console on ESXI 4.1

This has bugged me for ages but have found a solution

Go to the VM console and open device manager

























 You will see you are using the Standard VGA graphics Adapter

You need to point to the graphics vmware tools driver located:
C:\program files\common files\vmware\drivers\wddm_video

Restart the VM and bingo - the console will be nice and quick

Thursday 15 August 2013

Export DHCP from one server to another

I tried to move DHCP services from Windows 2003 to Windows 2008 by doing a backup on Windows 2003 and a restore on Windows 2008.

This, however, does not work and seems to break the DHCP server install on Windows 2008.  Uninstalling the DHCP server role and reinstalling it does not seem to work and I had errors like "The syste, cannot find the file specified" when I tried to look at the bindings.

To recover from this I did the following:

1.  Uninstall the DHCP Server role.
2.  REBOOT.
3.  Delete the contents of the C:\Windows\System32\DHCP directory. (will need to change folder permissions)
4.  Reinstall the DHCP Server role.

This put the DHCP server back in working order.  I then proceeded to do it the correct way:

On the Windows 2003 DHCP server, open up a command prompt and type:

netsh DHCP server a.b.c.d export C:\2k3DHCPDB all

Where a.b.c.d is the IP address of the Windows 2003 DHCP server.

Now copy the 2k3DHCPDB file to the Windows 2008 DHCP Server and stop the Windows 2003 DHCP server.

On the Windows 2008 DHCP server, do the following:

1.  Install the DHCP Server role.
2.  Stop the DHCP Server service.
3.  Delete the file C:\Windows\System32\dhcp\DHCP.mdb
4.  Start the DHCP Server service.
5.  Run a command prompt as Administrator.
6.  Type "netsh DHCP server e.f.g.h import C:\2k3DHCPDB"
7.  Stop the DHCP Server service.
8.  Start the DHCP Server service.

Where e.f.g.h is the IP address of the Windows 2008 DHCP server.  Now I had a functional DHCP server in 2008...

Tuesday 6 August 2013

How to set Sql server to SQL_Latin1_General_CP1_CI_AS Collation

When running the SQL setup choose custom and then "Dictionary order, case-insensitive, for use with 1252 character set"

Tuesday 22 January 2013

Crystal Reports: Add a Line Break or Enter in a Formula Field

Crystal Reports: Add a Line Break in a Formula Field

If you need to add a line break in a formula field just use the ChrW function which “returns the single character text string associated with the Unicode value passed in” with the value of 13. The Unicode value associated with 13 is the carriage return.
 
1// Formula Field Code
2"This formula field " + ChrW(13) + " contains a line break!"
3
4// Output
5// ------
6// This formula field
7// contains a line break!

Wednesday 14 November 2012

Hard Reset Acer E210 Cellphone

If you have a issue with a Acer E210 smartphone - try resetting it first by - Turn off the phone - Hold down the volume down button and turn it back on

This will reset all settings back to factory default

Monday 29 October 2012

Installing Windows 2008R2 Remote Desktop Connection Broker to balance load over two Remote Desktop Servers

We have one vm server running a Remote Desktop server and because of the amount of memory the vm is now using we need to divide up the load so we can balance over two vms and place them on two different esx hosts

Now we only wanted to use Remote Desktop connections, and we are not using RemoteApp or RemoteWeb (alot of instructions on the web have these steps as well)

1) First install the Remote Desktop Connection Broker
The Remote Desktop Connection Broker tells each incoming request to go to the server with the less load or to only the on line RD servers - if this service goes down then all requests will go onto one server and wont balance.  It would pay to have the broker on a separate server and not on the RD servers so you can restart the RD servers without interrupting the incoming requests.

  • Go to Roles and and install Remote Desktop Services Role
  • Then you need to install the Remote Desktop Connection Broker


2) Add the remote desktop servers into new local group
A new local group gets created called "Session Broker Computers"
Simply select type of computers and add the remote desktop server names
 


3) Set up DNS
You need to setup new A host records in your DNS for your new "farm" name
Farm1      192.168.0.1
Farm1      192.168.0.2

4) Set the remote desktop server to use the new remote desktop connection broker
Under the Remote Desktop Host Session configuration screen - right click the "Member of farm in RD connection Broker" and go proprieties

5) Click the button "Change Settings"
6) Click on Farm member, Click the RD Connection Broker server name, type the farm name used when setting up the DNS

7) Click "Partcipate in Connection broker load-balancing", Click the Ip address of your LAN


 
The next time someone logs in - it will go to the server with the lowest logins (it doesnt balance cpu or memory used)