Cloning Windows Server 2008 R2 And Windows 7 – Using Sysprep

  1. Install Windows Server 2008 R2 or Windows 7 and patch it.
  2. Run Sysprep (on Windows Server 2008 R2 this is located in c:\Windows\System32\Sysprep\Sysprep.exe).
  3. Ensure ‘System Out-of-Box Experience (OOBE)’ is selected.
  4. Tick the ‘Generalize’ option (this resets the SID).
  5. Select ‘Shutdown’ from the Shutdown Options. 5) Once the machine has shutdown, take your image and you are good to go!

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Change Language on NDR Messages In Exchange 2010

When Exchange Server 2010 have to send out NDR messages it will attempt to detect the language of the message, and reply in that language,
If it cannot detect the language, it will reply in the default language from It’s configuration.

To change the language in the configuration, run these commands in Exchange Management Shell:

NDRs for mails received from external domains:

Set-TransportConfig -ExternalDsnDefaultLanguage en-us

And for NDRs for mails received from internal domains:

Set-TransportConfig -InternalDsnDefaultLanguage en-us

Disable auto detection from external domains:

Set-TransportConfig -ExternalDsnLanguageDetectionEnabled $false

Disable auto detection from internal domains:

Set-TransportConfig -InternalDsnLanguageDetectionEnabled $false

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Mcafee Epo 4.5 Master Repository Is Empty

If your EPO Master Repository is empty, it is because the “catalog.z” file is damaged.

The is the fix:

Step 1:

Log on the EPO Server and browse to path: “C:\Program Files\McAfee\ePolicy Orchestrator\DB\Software”

Step 2:

Rename the file “catalog.z” to “catalog.z.old”

Step 3:

Restart service “McAfee Engine Service”

Step 4:

Log on the web interface and go to “Menu – > Software – > Master Repository”

Step 5:

Click “Pull Now”

Step 6:

Click “Actions – > Check In Package”

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Apple TV 2 IOS 4.4.4 Untethered Jailbreak and XBMC Media Center installation

In this post i will show you have to make Untethered Jailbreak on ATV2 4.4.4 and install XBMC Media Center on it

Here is what you need:

  1. Download the latest version of Seas0nPass.
  2. A micro USB cable. ( I use a Nokia cable ).
  3. a SSH Application.
    – Mac user “Terminal”
    – Windows users “Putty

The Jailbreak Part:

Step 1: Unzip Seas0nPass zip file and launch Seas0nPass.

Step 2: Select the “Create IPSW” button.


Step 3:
It will now download the latest ATV2 IOS (4.4.4) and make the custom jailbreak file.


Step 4:
When prompted, connect your ATV2 to your Mac/PC using a micro-USB cable (leave power cable disconnected).

When the light on the front of the ATV2 begins to flash rapidly, point the remote at the ATV2 and hold both the MENU and PLAY/PAUSE buttons for 7 seconds.


Step 5:
Itunes will open and restore your ATV2 with the new custom IOS file.

Step 6: iTunes will confirm the restore when complete – your ATV2 is now jailbroken!

The XBMC Part:

Step 1:

– Mac:

Open Terminal and type the following command to login to your ATV2

ssh [email protected]

Password is alpine

– Windows:

Open Putty and enter your ATV2 Ip Address and click “Open”

Password is alpine


Step 2:
Copy these commands in to your terminal window.

apt-get install wget

wget -O- http://apt.awkwardtv.org/awkwardtv.pub | apt-key add –

echo “deb http://apt.awkwardtv.org/ stable main” > /etc/apt/sources.list.d/awkwardtv.list

echo “deb http://mirrors.xbmc.org/apt/atv2 ./” > /etc/apt/sources.list.d/xbmc.list

apt-get update

apt-get install org.xbmc.xbmc-atv2

reboot

Step 3: Now you have XBMC on your ATV2, Now we just have to Disable Auto Updates from Apple.

Login to your ATV2 again as we did in Step 1, and run those commands:

apt-get install nano

nano /etc/hosts

127.0.0.1 appldnld.apple.com
127.0.0.1 mesu.apple.com
127.0.0.1 appldnld.apple.com.edgesuite.net

Save the changes(ctrl-x)

reboot

Thats it! Enjoy your new Media Center!


VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Get Live Currency Conversion From Google Finance API

Here is a simple PHP Function to get live currency conversion from Google Finance API

In my example i am gettting the value of 100 US Dollar in Euro

function google_finance_convert($from_Currency, $to_Currency, $amount) {
$amount = urlencode($amount);
$from_Currency = urlencode($from_Currency);
$to_Currency = urlencode($to_Currency);

$url = "http://www.google.com/ig/calculator?q=$amount$from_Currency=?$to_Currency";
$ch = curl_init();
$timeout = 0;
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_USERAGENT , "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)");
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$rawdata = curl_exec($ch);
curl_close($ch);

$data = explode('"', $rawdata);
$data = explode(' ', $data[3]);
$converted = $data[0];

return $converted;
}

// Usage

echo google_finance_convert("USD", "EUR", "100"); // echos how much 100$ is in Euro

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=user name,OU=OU Name,DC=dc-name,DC=local”

The other day we got this error on our Exchange 2010 when synchronising e-mail on a mobilephone using ActiveSync. When we tried to setup the ActiveSync account, we got the following error message (Source MSExchange ActiveSync, ID 1053) on the server’s eventlog.

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=username,OU=OU Name,DC=dc-name,DC=local” container under Active Directory user “Active Directory operation failed on dc-name.local. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03151E04, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0“.
Make sure the user has inherited permission granted to domainExchange Servers to allow List, Create child, Delete child of object type “msExchangeActiveSyncDevices” and doesn’t have any deny permissions that block such operations.

To fix it logon your DC Server:

  1. Open “Active Directory Users and Computers”.
  2. Find the user, and right click, select “Properties”.
  3. Select “Security” Fan.
  4. Click “Advanced”.
  5. And check “Include inherited permissions from this object`s parrent”.
  6. And then click Apply.

That’s it !

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=user name,OU=OU Name,DC=dc-name,DC=local”

The other day we got this error on our Exchange 2010 when synchronising e-mail on a mobilephone using ActiveSync. When we tried to setup the ActiveSync account, we got the following error message (Source MSExchange ActiveSync, ID 1053) on the server’s eventlog.

Exchange ActiveSync doesn’t have sufficient permissions to create the “CN=username,OU=OU Name,DC=dc-name,DC=local” container under Active Directory user “Active Directory operation failed on dc-name.local. This error is not retriable. Additional information: Access is denied.
Active directory response: 00000005: SecErr: DSID-03151E04, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0“.
Make sure the user has inherited permission granted to domain\Exchange Servers to allow List, Create child, Delete child of object type “msExchangeActiveSyncDevices” and doesn’t have any deny permissions that block such operations.

To fix it logon your DC Server:

  1. Open “Active Directory Users and Computers”.
  2. Find the user, and right click, select “Properties”.
  3. Select “Security” Fan.
  4. Click “Advanced”.
  5. And check “Include inherited permissions from this object`s parrent”.
  6. And then click Apply.

That’s it !

VN:F [1.9.22_1171]
Rating: 0.0/6 (0 votes cast)

How to Deploy Citrix Receiver or Online Web Plugin for XenApp 6.5 on Web Interface 5.4

How to Deploy Citrix Receiver or Online Web Plugin for XenApp 6.5 on Web Interface 5.4:

If you are visiting your Web Interface with Web Interface 5.4.
You have probably noticed that it will show you a plugin install page like this, if you do not have the right web plugin installed:

The problem is when you click on the install button, it will redirect you to:

http://www.citrix.com/download/

And then you have to find the plugin yourself, thats not good enough!

So i will show you how to host the plugins on your Web Interface server, and let the “install button” download the right plugin to the user instead!

1. Connect to your Web Interface server and go to this folder:

“C:\Program Files (x86)\Citrix\Web Interface\5.4.0\Clients”

This folder will be empty like below:

2. Now find your xenapp 6.5 media / install folder and open the folder “Citrix Receiver and Plug-ins” , Copy everything from the folder in to “C:\Program Files (x86)\Citrix\Web Interface\5.4.0\Clients

3. Now go to your “Citrix Web Interface Management” and click “Client Deployment” on your XenApp website.
Make sure “Native client” are checked, and click on “Properties

4. Make sure “Perform client detection at logon” are Checked.
Also Check “Offer upgrades for clients” if you want it to offer the user to upgrade, if they use and older version.

5. Go to:

“C:\inetpub\wwwroot\Citrix\XenApp\conf”

And open the “Webinterface.conf” file in Notepad. Scroll down to the ICA clients section, they are all commented out default.

# ClientIcaLinuxX86=Filename:linuxx86-11.100.158406.tar.gz,Directory:Linux,Mui:Yes,Version:11.100
# ClientIcaMac=Filename:Citrix online plug-in (web).dmg,Directory:Mac,Mui:Yes
# ClientIcaSolarisSparc=Filename:solaris.tar.Z,Directory:Unix,Mui:No,Version:8.59
# ClientIcaSolarisX86=Filename:solx86.tar.Z,Directory:Unix,Mui:No,Version:8.5
# ClientIcaWin32=Filename:CitrixOnlinePluginWeb.exe,Directory:Windows,Mui:Yes,ClassID:238f6f83-b8b4-11cf-8771-00a024541ee3
# ClientStreamingWin32=Filename:CitrixOfflinePlugin.exe,Directory:Windows,Mui:Yes,ClassID:4384F3C5-4A9E-4E81-9AAE-4251C2813861

Replace it with this: (Make a backup of the file before you start editing it)

ClientIcaLinuxX86=Filename:linuxx86-11.100.158406.tar.gz,Directory:Linux,Mui:Yes,Version:11.100
ClientIcaMac=Filename:Citrix online plug-in (web).dmg,Directory:Mac,Mui:Yes
ClientIcaSolarisSparc=Filename:solaris.tar.Z,Directory:Unix,Mui:No,Version:8.59
ClientIcaSolarisX86=Filename:solx86.tar.Z,Directory:Unix,Mui:No,Version:8.5
ClientIcaWin32=Filename:CitrixReceiver.exe,Directory:Windows,Mui:Yes,ClassID:238f6f83-b8b4-11cf-8771-00a024541ee3
ClientStreamingWin32=Filename:CitrixOfflinePlugin.exe,Directory:Windows,Mui:Yes,ClassID:4384F3C5-4A9E-4E81-9AAE-4251C2813861

6. Make a iisreset

7. That`s it!
Now when you go to the web interface in your browser, you will notice the green Install button is there but there is also a little check box that says “I agree with the Citrix license agreement”.
This means the install file is being hosted on your Web interface server now. Check the box and click Install.

VN:F [1.9.22_1171]
Rating: 6.0/6 (11 votes cast)

Get Live Currency Rate From Yahoo Finance API

Here is a simple PHP Function to get live currency conversion from Yahoo Finance API

In my example i am gettting the value of 100 Dansih Krone in US Dollar

<?php
function yahoofinance_convert($from, $to) {
$url = 'http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s='. $from . $to .'=X';
$handle = @fopen($url, 'r');

if ($handle) {
$result = fgets($handle, 4096);
fclose($handle);
}
$return = explode(',',$result);
$to_value = $return[1] * 100;

return $to_value;
}

echo "Value of 100 DKK is " . yahoofinance_convert("DKK", "USD") . "$";

?>
VN:F [1.9.22_1171]
Rating: 5.5/6 (4 votes cast)