Friday, 26 August 2011

Changing the default User and Computer OU

I like to keep my "Real" Users in a separate folder away from all the other system accounts. This ensures that only valid accounts are displayed if you use LDAP lookups for various applications (e.g. a network scanner)


Windows 2003 introduced a couple of new commands that allow you to change the default location:


Users:


   ReDirUsr "OU=RealUsers,DC=domain,DC=com"


Computers:


   ReDirCmp "OU=RealComputers,DC=domain,DC=com"


You need to run this on a Domain Controller, and you need the AD to be in Windows 2003 mode as a minimum.


As you want to ensure the path to the new directory is correct, I recommend Softerra LDAP browser (it's free) which allows you to connect to the AD with LDAP and copy object locations.


I hope this helps you out...please click on an advert to show your appreciation.

Tuesday, 16 August 2011

0x8007010b errors in Task Scheduler

Windows 7 and 2008 introduced a new, more comprehensive Task Scheduler.


While the "Create Task" button provides you with every option available, I could not run any tasks without the  0x8007010b error message.


It turns out that this error is caused by the "quotes" in the Start in field. The "Program/script" field needs quotes (if there is a space in the path to the file, but all quotes must be stripped from the "Start in (optional)" field.


It's counter-intuitive, but that's the way Microsoft wrote it.




Anyway, I hope this tip helps, and don't forget to click on the ads to show your appreciation :)

Friday, 5 August 2011

F5 URL and URI Variables


iRules are a fantastic feature of the F5.
Sometimes you need to do operations based upon the actual URL which has been typed and this page should give you a handy lookup guide to show which variables give up which parts of the URL.
Example URL: http://example.com/directory1/directory2/directory3/filename.html?
argument1=value1&argument2=value2&argument3=value3



Variable Description Example
[HTTP::host] hostname example.com
[HTTP::uri] Everything after the hostname example.com/directory1/directory2/directory3/filename.html
?argument1=value1&argument2=value2&argument3=value3
[HTTP::path] the directory path and file name /directory1/directory2/directory3/filename.html
[HTTP::query] everything after the ? argument1=value1&argument2=value2&argument3=value3
[URI::path [HTTP::uri] depth] number of directories value of 3
[URI::path [HTTP::uri] 1 1]
directory 1
directory1
[URI::path [HTTP::uri] 2 2]
directory 2
directory2
[URI::path [HTTP::uri] 3 3]
directory 3
directory3
[URI::query [HTTP::uri] "argument1"]
argument 1
value1
[URI::query [HTTP::uri] "argument2"]
argument 2
value2
[URI::query [HTTP::uri] "argument3"]
argument 3
value3
[URI::basename [HTTP::uri]]
file name
filename.html

If this page proves useful, please click on one of the adverts on the side