Wednesday, November 7, 2012

Limited or No Connectivity? (Win Svr 2003 SP1 DC)

Wasted HOURS to troubleshoot this network issue.

Symptoms:
- Reboot server and able to ping for 4 or 5 times, afterwhich timed out
- There are send and receive bytes but unable to browse network
- Regardless new or old NIC, all the same
- Resetted Winsock and IP protocol, to no avail

Ref: http://support.microsoft.com/kb/912023

To resolve this issue, follow these steps:

1. Delete the local policy registry subkey. To do this, follow these steps:
a. Click Start, click Run, type regedit in the Open box, and then click OK.
b. In Registry Editor, locate and then click the following subkey:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\Policy\Local
c. On the Edit menu, click Delete.
d. Click Yes to confirm that you want to delete the subkey.
e. Quit Registry Editor

2. Rebuild a new local policy store. To do this, Click Start, click Run, type regsvr32
polstore.dll
in the Open box, and then click OK.

3. Verify that the IPSEC Services component is set to automatic, and then restart the
domain controller.


Thursday, February 16, 2012

Domain Renaming Guide - 01

Domain renaming is not a daily task but a task you do if the management forces you to do it! (ie. because of a company restructure, take over etc )

There are many resources on the Internet sharing a “walk through” about this job, but I made my own documentation some years ago when I was told to rename the domain. So I just go with the flow and publish it.

To do this task your domain/forest functional level has to be at least 2003 and all DC’s need at least SP1.

Exchange 2003 SP2. This is the only version that supports a domain rename. Exchange 5.5, 2000 and 2007 is not supported and Exchange can’t be installed on a DC.

Before you proceed you do have to read the official documentation and requirements from Microsoft: http://technet.microsoft.com/nb-no/windowsserver/bb405948(en-us).aspx

- Download the domain rename tools

- Understanding How Domain Rename Works

- Step-by-Step Guide to Implementing Domain Rename

The environment consisted of:

One forest (2003 Functional level) with three domains (2003 FL, transitive trust and a parent-child trust), six DC’s (Win2003 SP1) and four Exchange servers (Win2003 SP1 with Exchange SP1).

The objective was to rename one of the three domains. (The domain without a child).

Before we started banging on the production environment, we made a test environment to test the rename and its impact on all third-part applications like Citrix, MSSQL based applications, HP Data Protector. After a month of testing and three successful renaming, we moved over to the production environment.

Preparing:

To increase your change of a successful renaming your domain have to be in a good shape.

· Your event logs should be clean on all DC’s and Exchange servers
· “dcdiag /v /e /c” should be clean
· “netdiag /debug /v” should be clean

You need to have a domain member to act as the Control station (CS). Should be at least a Win2003 SP1 server. Log on to the control station with an enterprise admin (I guess you don’t bother the “run as” in this situation) and download the domain rename tools to this server (domainrename.exe and xdr-fixup.exe).

Install by running the domainrename.exe. It will install rendom.exe and gpfixup.exe to “C:\Program files\Microsoft Domain Rename Tools”

Copy both these files to “C:\Rename”

Now it’s time to take some System State backups of your domain controllers and keep them in a safe place.

In this documentation I will use theses domain names:

Old domain name: tottenham.int
New domain name: spurs.local

Create a new DNS zone:

· Open the DNS management consoll (dnsmgmt.msc)
· Right click “Forward Lookup Zones” > “Add new forward lookup zone”
· Call it “spurs.local” (without quotes)
· If you have a trusting domain, create the same zone as a secondary zone in the trusting domain

DNS suffix:

When you rename the domain the DNS suffix in the domain will change. Two conditions must be checked:

· The computers DNS suffix should be configured to change when the domain membership changes (default)
· No Group Policy must configured to set the primary DNS suffix to computers.

Do the renaming procedure:

Open cmd and change the directory to “C:\Rename”.

1. rendom /list

· This will create a list of the directory partitions in the forest
· Copy the “domainlist.xml” file to “domainlist-save.xml”
· Open “domainlist.xml” in Notepad and change it to the new forest description

2. rendom /showforest

· Verify that it reflect the new domain name

3. rendom /upload

· Generates the domain rename instructions
· Pushes the rename instruction to all DC’s
· Force a replication. “repadmin /syncall /APed”

4. rendom /prepare

· Verify that all DC’s are ready
· You should get an answer from all DC’s and they should NOT return an error. If they do, open “dclist.xml” (that was created in step 3). The DC’s that have reported errors will not be tagged with prepared. You have to troubleshoot any errors. DO NOT set the state to “prepared” manually in this file for any DC’s!

You should fix any errors and re-run “rendom /prepare” to all DC’s are in the “prepared” state.

5. rendom /execute

· If everything goes as planned you should get an answer from all DC’s. The DC’s will reboot automatically. When the DC’s are back online the domain name is changed, but not the DNS suffix on the DC’s itself. This has to be done manually on each DC’s in the renamed domain:

Add the new DNS suffix:

· netdom computername dc01.tottenham.int /add:dc01.spurs.local

Change the primary DNS suffix:

· netdom computername dc01.tottenham.int /makeprimary dc01.spurs.local

Reboot the server.

Remove the old DNS suffix:

· netdom computername dc01.spurs.local /remove:dc01.tottenham.int

Reboot the CS twice!

5.1. Exchange

(still working from the CS):

Before you proceed to the Exchange specific tasks, you got to be sure you are not going back with a domain restore.

· xdr-fixup /s:domainlist-save.xml /e:domainlist.xml /trace:TRACEFILE /changes:CHANGESCRIPT.ldf

This will create two files. changescript.ldf and restorescript.ldf. You run this command only one time (not one time per Exchange server).

· ldifde -i -f changescript.ldf

(to revert, run “ldifde -i -f restorescript.ldf”)

· Restart all Exchange servers twice

6. rendom /end

· this will unfreeze the forest


Side steps:

Reestablish external trusts and validate:

· “nltest /sc-query:foreign_domain.com” (from a DC in the renamed domain)

· “nltest /sc-query:spurs.local” (from the trusting domain)


Fix DFS topology (if you use DFS)

Fix GPO links:

gpfixup /olddns:tottenham.int /newdns:spurs.local /oldnb:tottenham /newnb:spurs /dc:dc01.spurs.local /user:administrator /pwd:password 2>1 > gpfixup.log

Look for errors in the created log.

Take a new System state of the DC’s.

Restart all other servers twice.

Verify the Exchange rename:

· xdrfixup /verify:restorescript.ldf /changes:verifycorrections.ldf

this should give you:

Verified that the server exch01.tottenham.int was renamed to exch01.spurs.local. Verify pass has completed.(it should list all Exchange servers involved in this output)

Verify/update the Recipient Update Services (RUS) which DC it should use.

If applicable, update the Active Directory Connector (ADC)

Reboot every computer in the domain twice. When it’s done. Do the last step **:

7. rendom /cleanup

Side steps:

· Authorize the DHCP server
· Delete the old Forward Lookup Zone from DNS
· dcdiag /v /e /c
· netdiag /debug /v
· Check Event logs

** If you have many domain member laptops out of the house during the rename, you can wait with step 7 until they have logged on the domain and rebooted twice. I think I waited a week before I ran step 7.

If you run step 7 and there are members that have not been booted twice you have to rejoin them to the domain. I made a script to keep track of computers that have not been updated with the new domain name.

''''''''''''''''''''''''''''''''''''''' Save me as a vbs file '''''''''''''''''''''''''''''''''''''''
On Error Resume Next
Const ADS_SCOPE_SUBTREE = 2
Set objFSO = CreateObject("Scripting.FileSystemObject")
'''''' Create a text file with all computers holding the old domain name
Set objResultsFile = objFSO.CreateTextFile("C:\temp\tottenham.txt", True)  Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") 
objConnection.Provider = "ADsDSOObject" objConnection.Open "Active Directory Provider" 
Set objCommand.ActiveConnection = objConnection objCommand.Properties("Page Size") = 1000 objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE  
''''' Modify the query so that it responds to your domain 
objCommand.CommandText = _ "SELECT dnsHostName, distinguishedName FROM 'LDAP://dc=spurs,dc=local'" & _ "WHERE objectCategory='computer' AND dnsHostName='*tottenham.int'"
Set objRecordSet = objCommand.Execute
Do Until objRecordSet.EOF 
objResultsFile.Write objRecordSet.Fields("dnsHostName").Value & " --> OU: " objResultsFile.Write objRecordSet.Fields("distinguishedName").Value objResultsFile.Writeline objRecordSet.MoveNext Loop
Wscript.Echo objRecordSet.RecordCount objResultsFile.Close
'''''' EOF ''

Saturday, February 19, 2011

Network bandwidth throttling in Windows 7

Having to support Windows in my day to day job (I'm the Windows administrator) is a necessary evil. I was wondering why my test deployment of Windows 7 was so slow copying files. Turns out it was due to bandwidth throttling, a "feature" since Vista. Windows 7 seems to throttle bandwidth, especially on a LAN and it's based on helping to prevent little or no interruption to audio playback. This can be damn annoying, especially when copy large files across an intranet.
Two registry settings that seem to prevent or alleviate the throttling are:

(DWORD value) HKLM\system\CurrentControlSet\Services\lanmanworkstation\parameters\DisableBandwidthThrottling (create if it doesn't exist and set to 1 to disable and then reboot)

or

HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\NetworkThrottlingIndex (set to a value between 1 and 100 and reboot)

Also another possibility is to disable the MMCSS (Multimedia Class Scheduler) service - from wikipedia: "This service has been implicated in poor networking performance while multimedia is playing", or "Windows throttles the network interfaces while audio is playing in order to maintain audio quality and prevent network interrupts interrupting media playback. By default, this limits the network receive speed to 10% of its maximum - 100Mbps on gigabit ethernet, and 10Mbps on fast ethernet"

The service is is a dependancy in the windows audio service (the dependancy needs to be removed so windows audio can still run) so in regedit,
go to HKLM\SYSTEM\CurrentControlSet\Services\Audiosrv, find DependOnService and remove MMCSS and restart.
Finally, in the services control panel, services.msc, disable “Multimedia Class Scheduler service” and restart.

Wednesday, February 16, 2011

Solution 1
So to resolve the issue I re-registered every dll on my system. To do this follow the below steps.

Register all dll files within registry

1) First go Start/Run, and type in 'cmd' to bring up the Command Prompt.

2) Type 'CD \' and hit enter.

3) Type 'DIR *.dll /s /b > regdll.bat' and hit enter.

4) Type 'Notepad regdll.bat' and hit enter.

Now Notepad is going to bring up a list of your .dll files, never mind that for a moment.

5) Now type 'Path' and hit enter to see your current path. It will bring up something like: Path=c:\Windows;c:\windows\Command

6) (supplement your Windows Version, ex: C:\WINNT, or C:\Windows) Now type: 'Path=c:\windows;c:\windows\Command;c:\Windows\Program~\Accessories' and hit enter.

7) Verify again by typing 'Path' and hitting enter, and then type: 'C:\WINNT\System32\Regsvr32.exe /s C:\' and hit enter again.

Now, go back to Notepad and if you have Win98 use the replace feature in Wordpad (CTRL + H) or notepad to search for 'C:\' and replace it with this: 'C:\Windows\System\Regsvr32.exe /s C:\'
If you have Win2000, etc. use the replace command in note pad to search for 'C:\' and replace it with this: 'C:\WINNT\System32\Regsvr32.exe /s C:\'

*Be sure to type the replace string exactly like above or it won't work*

9) Use "Replace All" to make the changes to the entire file.

10) When it finishes, save it, exit notepad or wordpad, and return to the Command Prompt.

11) Type 'regdll' and press enter. If you followed the above steps correctly it will now go through and re-register all your .dll files.

An example of a line from my bat is below

"C:\Windows\System32\regsvr32.exe /s C:\Program Files\Common Files\Microsoft Shared\ink\IPSEventLogMsg.dll"

You may receive numerous errors during this mass registration, simply clear them by clicking OK or whatever you need to to clear the error and the bat file should continue to run. The process may also seen to hang and become unresponsive. Be patient, go get a cup of coffee, a bawlz or smoke a cigarette. I am confident this will resolve your issue. It solved three for me, one involving media player, one involving the right click screen resolution option in the context menu and one involving the personalize context menu option.

Solution2
Register all dll files within registry

1) First go Start/Run, and type in 'cmd' to bring up the Command Prompt.

2) Type 'CD \' and hit enter.

3) Type ' FOR /R C:\ %G IN (*.dll) DO "%systemroot%\system32\regsvr32.exe" /s "%G" ' and hit enter.

It took almost an hour to Re-register all DLL and numerous error will pop-up, ignore and close all error pop-up windows. After it completes, restart! ** This works for me **

Sunday, January 31, 2010

Samsung Omnia II Rom Details

More info about Eboot, PDA, CSC, PHONE, ROM



Eboot (.eb0)

Some users compared it to a PC bios; another user posted this definition "it's a
part of I8000 software that provides the very flashing process. In other words
it's a program that replaces PDA, CSC and phone parts of existing firmware to
updated ones in I8000 read-only memory"

The only risk of bricking your phone comes from "eboot": if Eboot will be
corrupted during replacement to newer one then you will likely lose the option
to save your i8000. That is why changing Eboot is not recommended on every-time
basis.

Personally I'd suggest to flash eboot only while upgrading from WM6.1 to WM6.5
(that's the only time I flashed the eboot), because it seems that not flashing
eboot may cause a problem about your phone not going into sleep mode. I guess
this was needed for going from a old wm6.1 rom to a new wm6.5 rom, so maybe it
will not be necessary again in the future.

So in the end, even if still suggest to not flash eboot when is not needed, if
you are facing some weird problems it may be worth to flash it too.



PDA (.mst or .nb0)

The actual Windows Mobile OS, applications, drivers, etc..



CSC (.csc):

Definition by RodfigoFD "Among other things, it contains boot images (not the
animated ones, that correspond to power_on/off.gif, but the one that goes before
that), much like the HTC devices' splash .nb files, .. also, the charging
animation when device is plugged but off, animations for the EBOOT program when
you are flashing the phone, and also files and settings that get applied to your
Win Mobile when you flash or hard reset. CSC can include, for example,
wallpapers, themes, connection settings, etc. I suppose it can also contain apps
an other stuff.

Although in flasher program CSC file seems to let you select languages, CSC file
just have possible language choices, but not the files/settings corresponding to
those languages. Those are all packed in the PDA part (NB0 or MST)."



Some more comments on CSC

If you have advanced knowledge of this phone and WM , specially if you flash
custom ROMs, it might be more recommended to dont flash CSCs since you dont know
exactly what is being modified with it... but if you are an average user that
just want it to get it done, then probably you should flash the CSC
corresponding to your ROM version/ phone carrier / language/ etc...



If you erase CSC data (by selecting the corresponding option in Octans) then you
will loose:

1) charging screen when phone is OFF

2) Downloading screen (while flashing firmware)

3) initial splash screen with "Samsung OMNIA II" words.

CSC section, gets stored in a special invisible part of ROM of the phone, and
the phone uses it as a 'customization' for the basic configuration .



Phone (.bin)

The radio/GPS firmware, It was suggests not to flash the phone part as it may
cause problems of compatibility in case of downgrading the rom or if your phone
is locked to some operator. He also stated that there is no benefit in it, while
other users reports different performance in the GPS fix, etc... honestly I have
no idea on the subject, but so far no user reported any actual problems for
flashing the Phone part.



---------------------------------------------------------------



More ROMs details

The firmware code is split into individual sections (you can find out more about
CSC file in this thread):



example with i8000NXXIJ6 rom

i8000 - > model designation.

N - > window mobile 6.5

XX - > region / network carrier designation (XX = open Market).

I - > release year (I = 2009).

J - > release month (J = October).

6 - > version number.



Region codes:

BD Cyprus, Greece

CP Finland

DB Vietnam

DC Thailand

DD India

DT Australia

DX Indonesia, Malaysia, Philippines, Singapore, Vietnam

DZ Malaysia, Singapore

JA South Africa

JC Algeria, Morocco, Nigeria, South Africa, Tunisia

JP Arabic

JR Arabic

JV Algeria, Egypt, Iran, Iraq, Kuwait, Morocco, Nigeria, Oman, Pakistan,

Saudi Arabia,South Africa, Syria, Tunisia, Turkey

MT Switzerland

XA Austria, France, Germany, Italy, Netherlands, Switzerland, United Kingdom

XB Denmark, Norway, Sweden

XC Portugal, Spain

XD Croatia, Czech, Hungary, Slovakia

XE Bulgaria, Estonia, Kazakhstan, Latvia, Lithuania, Russia, Ukraine

XF Bulgaria, Croatia, Romania

XX Austria, Belgium, France, Germany, Hungary, Italy, Spain, United Kingdom

ZC China, Hong Kong

ZH Hong Kong

ZT Taiwan



Network carrier codes:

AE SFR, France

AI Tim, Italy

AM Vodafone

AN E-Plus, Germany

AO O2

AS KPN, Netherland

AU Mobilkom, Austria

BB Tmn, Portugal

BF Optimus, Portugal

BG Telefonica, Spain

BM Swisscom, Switzerland

BN Amena, Spain

BO T-Mobile, Germany

BU Vodafone

BV Orange, Switzerland

BW O2, United Kingdom

CD Proximus, Belgium

CG Telia Mobitel, Sweden

CH SingTel, Singapore

CK Tele2 Comviq, Sweden

CT Tdc, Denmark

CU One, Austria

CV Telenor, Norway

DT Optus, Australia

DV Telstra, Australia

EF Celcom, Malaysia

JB Vodacom, South Africa

MD Telia Sonera, Finland

MJ Vodafone, Italy

MM Tele Ring, Austria

MV NetCom, Norway

NA Nrj, France

NB Tele2 Norway, Norway

NE H3g Nordic, Sweden

NP H3g, Italy

SS Vodafone, Japan



Release years:

D = 2004

E = 2005

F = 2006

G = 2007

H = 2008

I = 2009

J = 2010



Release months:

A = January

B = February

C = March

D = April

E = May

F = June

G = July

H = August

I = September

J = October

K = November

L = December



---------------------------------------------------------------



More info about CSC decoding

The "CODE" is what you find after "I8000" and before rom version (i.e. : IJ6)

I found the coutry by cross-check over the web ...but realy not certain

The "LANGUAGE" is the default language when you select a CSC in OCTANS.

You can find operators in parameters/network parameters/operator setting (or
something like that!))



CODE - COUNTRY - LANGUAGE - OPERATORS

AMN - SPAIN - Spanish(Spain) - "ORANGE"

ATO - AUSTRIA - German(Germany)

AUT - SWITZERLAND - German(Germany)

BMC - CANADA - -"BELL"

CNX - ROMANIA - English(UK) - "VODAFONE"

COA - ROMANIA - English(UK) - "COSMOTE"

CYO - GREECE - Greek(Greece)

DBT - GERMANY - German(Germany)

EUR - GREECE - Greek(Greece) - "VODAFONE GR" "COSMOTE" "WIND GR"

FOP - SPAIN - Spanish(Spain)

HAT - ROMANIA - English(UK)

IRD - SLOVAKIA - Czech(Czech Rep.)

ITV - ITALY - Italian(Italy)

MBM - MACEDONIA - - "T-MOBILE"

MOB - AUSTRIA - German(Germany)

MOT - SLOVENIA - English(UK) - "MOBITEL"

MOZ - - German(Germany)

MTL - BULGARIA - English(UK)

OMX - BULGARIA - English(UK)

ORO - ROMANIA - English(UK) - "ORANGE"

PAN - HUNGARY - Hungarian(Hungary)

PLS - POLAND - Polish(Poland)

PRO - NETHERLANDS - English(UK)

PRT - POLAND - Polish(Poland) - "PLAY POLAND"

SEB - AUSTRIA - English(UK)

SEK - UKRAINE - Russian(Russia)

SER - RUSSIA - Russian(Russia)

SIM - SLOVENIA - English(UK) - "SIMOBIL"

SKZ - KAZAKHSTAN - - "BEELING"

SMO - SERBIA - English(UK)

SUN - SWITZERLAND - German(Germany)

SWC - SWITZERLAND - German(Germany)

THA - THAILAND

TPH - PORTUGAL - Portuguese(Portugal)

TRA - CROATIA - English(UK)

TUR - TURKEY

VGR - GREECE - Greek(Greece)

VIP - CROATIA - English(UK)

VIR - UK - English(UK) - "VIRGIN"

WIN - ITALY - Italian(Italy)

XCS - - Czech(Czech Rep.)

XEB - BELGIUM - English(UK)

XEE - SWEDEN - English(UK)

XEF - FRANCE - French(France) - "BOUYGTEL" "Orange F" "F SFR" "NRJ (SFR)"
"Virgin" "Tele2" "Auchan" "Carrefour" "NRJ (ORANGE)"

XEH - HUNGRARY - Hungarian(Hungary)

XEN - NETHERLAND - Dutch(Netherlands)

XEO - POLAND - Polish(Poland)

XEP - PORTUGAL - Portuguese(Portugal)

XEU - UK - English(UK)

XEZ - HUNGARY - Czech(Czech Rep.)

XSO - SINGAPORE

FAM - SINGAPORE - English - "SingTel" "M1" "Starhub"

Friday, January 8, 2010

CARBON Served @ BK Burlington Square

This incident took place on 28th October 2009 at
Burger King, Burlington Square Branch.

At about 1.25pm, I ordered a set of Mushroom Swiss Tendergrill Meal + upsize + fries w/o salt and drink change to Ice Lemon Tea. Take away, total cost $8.35.


YET THIS IS WHAT I GOT!!!!!!!!!!!!!!

SURPRISE!!! "BLACK-PEPPER" LIKE
SUBSTANCE, KNOWN AS C.A.R.B.O.N!!!

I REALLY CAN'T IMAGINE HOW MUCH CARBON
ARE HIDDEN UNDERNEATH THE CHEESE AND TOMATO!!!

This BK fast food really can kill people fast and
can contribution faster growth in Cancer Patient population. Shit!