Memorise

Moving Sage Accounts 2008 Data to network location

In C:\Documents and Settings\All Users\Application Data\Sage\Accounts\2008 you will fine a file called Company with no file extension.

Open this file in notepad and you will see it contains the path to your data.

You can then edit this path to point at your network drive.

As always – take a backup of the Company file.


List Global Catalog Servers

Problem Description

How do I find a list of Global Catalog Servers using nslookup?

Resolution

The following commands will list all Global Catalog Servers in your Active Directory domain:

  1. From the command prompt, type nslookup.
    • C:\nslookup
  2. Set the type to server.
    • >set type=srv
  3. Find the Global Catalog Server(s).
    • >_gc._tcp.<DnsForestName>
  4. Example:
    •  >_gc._tcp.“your domain.com”
  5. The results will include the hostname and IP address of each Global Catalog Server.
  6. Type “exit” to leave the nslookup session.

When you try to install the Exchange Server 2010 Mailbox role, the installation process fails

Log Name:      Application
Source:        MSExchangeSetup
Date:          6/5/2009 5:24:30 PM
Event ID:      1002
Task Category: (1)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      computer.exchange.com
Description:
The description for Event ID 1002 from source MSExchangeSetup cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

Mailbox Role
Error:
The execution of: "$error.Clear(); if ( ($server -eq $null) -and ($RoleIsDatacenter -ne $true) ) { Update-RmsSharedIdentity -ServerName $RoleNetBIOSName }", generated the following error: "Database is mandatory on UserMailbox. Property Name: Database.".

Database is mandatory on UserMailbox. Property Name: Database.

SOLUTION:
To resolve this problem, follow these steps:
  1. Remove the FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 e-mail account by using the ADSIEDIT tool. To do this, follow these steps:
    1. Click Start, click Run, type adsiedit.msc, and then click OK.
    2. Locate the Default Naming Context node, and then locate to the CN=Users container.
    3. Locate and then right-click the CN=FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 container. Then, clickDelete.
  2. Rerun the Exchange Server 2010 Mailbox role setup application.
  3. Create a new federated e-mail account by using the following command:
    New-Mailbox -Arbitration -Name FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042 -UserPrincipalName FederatedEmail.4c1f4d8b-8179-4148-93bf-00a95fa1e042@<Default_Accepted_Domain>

OWA http to https redirection

Copy and paste code below to text file, and save it as Default.htm to inetpub\www root directory.

<BODY onLoad=”window.noJs()”>

<SCRIPT LANGUAGE=”Javascript”>

<!– Begin

function noJs() {

var destination = “https://webmail.myenrouteexchange.com/owa”;

window.location.replace(destination);

window.location.href=destination;

}

// End –>

</SCRIPT>

Then follow the link below for 2nd part

http://blog.shiraj.com/2013/04/iis7-redirect-http-to-https/


IIS7 redirect HTTP to HTTPS

30% off your entire order at GoDaddy.com!

If you are looking to re-direct Outlook Web Access then follow this article

The method of setting up an IIS7 redirect HTTP to HTTPS is to Require SSL on the site or part of the site and set up a custom 403.4 error page. To do this, just following these steps:

  1. Install your SSL certificate in IIS 7 and bind it to your website
  2. In IIS, click on the site name, and go to the SSL Settings section
  3. Check Require SSL and Require 128-bit SSL and click Apply
  4. After doing this, users will normally receive error:
  5. Create a new text file and paste the following into it:

<html>
<head><title>Redirecting…</title></head>
<script language=”JavaScript”>
function redirectHttpToHttps()
{
var httpURL= window.location.hostname + window.location.pathname + window.location.search;
var httpsURL= “https://” + httpURL;
window.location = httpsURL;
}
redirectHttpToHttps();
</script>
<body>
</body>
</html>

6. Save the file as redirectToHttps.htm in your C:Inetpub directory

7. Back in IIS, click on the site name and double-click the Error Pages option

8. Click Add… and enter 403.4 as the Status code. Browse for the redirectToHttps.htm file you just created and click OK

9. Select the error code and press Edit Feature Settings…

10. Click the Custom error pages option and again browse for the redirectToHttps.htm file

11. Test the site by going to http://www.yoursite.com and making sure it redirects

A caveat of using a custom error page to do an IIS7 redirect from HTTP to HTTPS is that the web browser must have JavaScript enabled for the redirection to work.

If you get “Lock violation” error in IIS 7.5

All you need to do is to open file “%windir%System32inetsrvconfigapplicationHost.config” and remove ‘defaultPath’ from the following line:

<httpErrors lockAttributes=”allowAbsolutePathsWhenDelegated,defaultPath”>

Thanks to this Thread: http://forums.iis.net/t/1159721.aspx


Howto Assign Multiple Public IP Addresses on Juniper SSG

Sharing Internet with Multiple public IP from same ISP:

ISP Router running in bridge mode
Juniper SSG5 eth0/0 doing ppoe to connect ADSL.
ISP assign Public IP block as: 217.214.17.120/29
Network range will be: 217.214.17.120- 217.214.17.127. Using /29 on 2 untrust interface will give you an error, IP overlapping. To use these IP on 2 untrust interface we will need divide these to 2 IP block of /30
i.e: 217.214.17.120/30
Network range: 217.214.17.120 – 217.214.17.123
and 217.214.17.124/30
Network range: 217.214.17.124 – 217.214.17.127

on the Juniper you will need to go to Network > Zones > Edit the untrust interface and remove tick mark from ‘Block Intra-Zone Traffic’ and in Network > Routing > Routing Entries destination route 0.0.0.0/0 going to interface that doing ADSL as the Gateway.


Unlock Samsung phone

Download SuperOneClick Root

and  XVI32 Hex Editor to open the file.

Method  (Terminal App) download that on your get that on your phone

– Open Terminal Emulator app
– Grant Super-user access to application
– The following commands will be executed in current opened application:

Code:

– su

– cat /dev/block/bml5>/sdcard/bml5.img

– exit (2x)

– Close the application.

Quote:

Attention: If you run cat command with the path from above and it’s says the file doesn’t exists or something like that make sure you try “cat /dev/bml5>/sdcard/bml5.img“. For Samsung GT-S5570 the files is under /dev/block.

Quote:

If you get this message when trying to access .bml file while your connected to PC: Permission Denied then try to get your USB card out of Mass Storage mode, so card won’t be used by another process.

Ok, so after using one of these methods we have our file bml5.img in our PC if we used first method or on our /sdcard if we used second method. Keep in mind that we need this file on our PC, so if you used second method just copy the file to PC!
Now comes the part where we need to work with the file that we just extracted. So, in order to get the unlock code we need a HEX Editor, i’ve used XVI32 Hex Editor to open the file.

Finding the unlock code

– Open XVI32 Application that we just downloaded. Hit CTRL+O and select the bml5.img file that we extracted earlier. (Open the file)
– At the first look we will see just a bunch of FF’s and 00’s and random decimals or symbols, but somewhere deep in there it’s our unlock code.
– Hit CTRL+F to open search dialog, select “Hex String” and put the following search string

Quote:

FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 30 30 30 30 30 30 30 30

(maybe the search string won’t be the same for all phones, but the one from above worked for Samsung GT-S5570)
– Mark “Case Sensitive“, Direction “Down“, Scope from “Begin“.
– Click ok, or hit ENTER to start our search.
– So now, we must hit F3 untill we find our unlock code.
Our unlock code will be 8 digits plain text surrounded by unknown symbols just like in image below.

(I’ve hited F3 like 3 times, but don’t know if it’s the same for everyone. Also to make sure you see the code, after hitting F3 make sure you go 2-3 rows up to make sure the code is not above the searched string.)
(Unlock code can be finded in multiple places in file, so if you skip one searched string by mistake, just pay attention for next ones)

After getting the unlock code, write it somewhere in PC or paper… close the phone, remove the actual SIM Card, insert a foreign one and turn it ON! Wait untill it boots up, insert the unlock code and your done. Now you have an unlocked phone!

Quote:

Attention: Unlock code can be extracted using a Custom ROM like CM7 in my case, the file was there, but can’t be unlocked since the window to insert code doesn’t appear(pop-up). In order to unlock your phone you must have a Stock ROM that actually can read any Samsung code and have that Network unlock code window!

Quote:

Most custom roms that tries to remove blur break the subsidy lock interface (sim unlock screen doesn’t show on them). If you flash other rom and subsidy unlock screen doesn’t pop when you insert foreign sim, you will need to flash back stock ROM in order to unlock. So the easyest way for those of you running a Custom ROM, just do a nandroid backup using CWM, flash Stock ROM, unlock your phone then restore your backup.

Useful Codes

Quote:

*#7465625# – Dial code to check if phone it’s network locked.
#7465625*638*UNLOCK-CODE# – Replace UNLOCK-CODE with your 8 digits number, then dial. Phone might reboot.

Details about test environment

Code:

Phone used: Samsung Galaxy i5500

Android Version: 2.1

PC Windows: Windows 7 (64-bit)