網頁

2012年5月26日 星期六

Windows Server 2008 R2 is as Router role

How to make Windows Server 2008 R2 as LAN Router device? It is very simple for everybody if we search the related information by Google or Microsoft.
Drawing1
(1).Add Server Roles --- Network Policy and Access ServicesIn Server Manager, click “Add Roles” to trigger the wizard
ScreenHunter_01 May. 22 15.22Click “Next > “ button
ScreenHunter_03 May. 22 15.23Enable “Routing and Remote Access Services” check box next to click “Next > “ button
ScreenHunter_05 May. 22 15.26Click “Next > “ button
ScreenHunter_06 May. 22 15.26Enable “Routing and Remote Access Services” check box so that Remote Access Service and Routing will be selected. To click “Next” button to continues the next step.
ScreenHunter_07 May. 22 15.27Click “Installation” button
ScreenHunter_08 May. 22 15.28If no any exception, the installation almost be succeeded.
ScreenHunter_10 May. 22 15.41Now, the system has already added a new roles “Network Policy and Access Services”.
ScreenHunter_11 May. 22 15.43

(2).Configure and Enable Routing and Remote Access
When you expand the “Network Policy and Access Services” tree, the red arrow down icon express this function never be enabled.
To right-click it and select “Configure and Enable Routing and Remote Access” in menu,the setup wizard will show up.
ScreenHunter_12 May. 22 15.44Click “Next > “ button
ScreenHunter_13 May. 22 15.45Select “Custom configuration” option next to click “Next > “ button
ScreenHunter_14 May. 22 15.46Enable “LAN routing” check box next to click “Next > “ button
ScreenHunter_15 May. 22 15.47Click “Finish” and “Start service” button
ScreenHunter_17 May. 22 15.47Now the icon become green arrow up.
ScreenHunter_19 May. 22 15.48

(3).Verify IPv4 setting
Right-click “Routing and Remote Access” next to select “Properties” in menu
ScreenHunter_20 May. 22 15.51You will see this computer pay a role as IPv4 Router now.
ScreenHunter_21 May. 22 15.51

(4).View IPv4 Routing table
To expand "IPv4” tree and right-click “Static Routes” to select “Show IP Routing Table…”
ScreenHunter_22 May. 22 15.54The current IPv4 Routing information will show up
ScreenHunter_23 May. 22 15.54
In the time, the computers in 10.10.101.x and in 10.11.101.x can communicate each other. Of course, the computer default gateway need to be set on the IP of Router interface.

2012年5月20日 星期日

Open firewall port for Computer join Domain & Account logon Domain

I want to understand which firewall port need to be opened if the computer will join and log on Domain. I use Microsoft Forefront Threat Management Gateway 2010 as firewall and assign two network segment for creating DC(VBHV-DC-01 in LAN3) and Workstation(VBHV-FS-01 in LAN4) role. And the network rules is route mode from LAN4 to LAN3.ScreenHunter_15 May. 17 19.05To create a new Access Rule from LAN4 to LAN3 and open the following protocols:
                              Microsoft CIFS/SMB: 445/TCP
                              Kerberos-Sec: 88/TCP, 88/UDP
                              DNS: 53/TCP, 53/UDP
                              LDAP: 389/TCP, 389/UDP
                              NetBIOS Datagram: 138/UDP
                              NetBIOS Name Service: 137/UDP
                              NetBIOS Session: 139/TCP
                              NTP: 123/UDP
                              RPC Endpoint Mapper(Custom): 135/TCP
                              ADLogon/DirRep(Custom): 50000/TCP
                              RPC Netlog(Custom): 50001/TCP
ScreenHunter_18 May. 17 20.20For limiting the special port for RPC to a single port(50000/TCP), we need to add a registry on each domain controller.
In “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NTDS\Parameters\" registry key to new a DWORD (32-bit) Value
ScreenHunter_19 May. 17 20.32Rename the entry from “New Value #1” to “TCP/IP Port”
ScreenHunter_20 May. 17 20.34Double-Click this entry and select “Decimal” option –> enter “50000” in Value data field –> click “OK” button
ScreenHunter_21 May. 17 20.35After finish the above correct, please reboot DC so that the registry function will enable.
ScreenHunter_22 May. 17 20.35To force RPC port for client RPC traffic to a specific port, I need to do the same activity in “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters\
To new a DWORD (32-bit) Value type “REG_DWORD”, rename the entry from “New Value #1” to “DCTcpipPort” and name a Registry value “50001” next to reboot it
ScreenHunter_01 May. 18 16.21Now,I try to join Domain “dw.com” and the result is successful.
ScreenHunter_01 May. 17 15.11The computer can log on Domain “VBHV-DC-01”.
ScreenHunter_04 May. 18 19.50By TCPView Utility, you will see there is no any port limited now.
ScreenHunter_03 May. 18 17.58

2012年5月17日 星期四

Computer cannot Log on AD by domain account

I don’t know when trust relationship has problem between DC and member server because I get a error message after keying in domain account.
ScreenHunter_05 May. 17 16.34Based on this error message, I search the related information by Google and try and error some method. Finally, the problem is resolved.

How to correct it?
Verify whether the value of servicePrincipleName of the computer exist or true!

Run ADSIEDIT.MSC and Right-Click the affected computer to select the property
ScreenHunter_06 May. 17 16.35In “Attribute Editor” tab, mark “servicePrincipalName” next to click “Edit” button
ScreenHunter_07 May. 17 17.03Add new value as “HOST/yourcomputername.yourdomainname” next to click “Add” button. (In our example, it is “HOST/vbhv-fs-01.dw.com”)
ScreenHunter_11 May. 17 17.08That is servicePrincipalName value = HOST/vbhv-fs-01.dw.com
ScreenHunter_13 May. 17 17.08Now I can log on in this workstation by domain account.
ScreenHunter_14 May. 17 17.09

2012年5月6日 星期日

Install 64-bit Oracle Client on 64-bit Windows 7

Last time, I install 32-bit PowerPivot 2012 on 32-bit Windows 7 to replace PowerPivot 2010. When I open Excel 2010 and select PowerPivot item, the remind message show up and ask me whether want to upgrade the workbook.
ScreenHunter_02 May. 06 11.50Of course, you have to press “OK” button so that the PowerPivot workbook will be showed up. In the moment, I follow the previous activity to execute refresh worksheet for retrieving Oracle Data but the result fail.
ScreenHunter_01 May. 06 11.46In this Error Message, it give me a suggestion either upgrading to 64-bit version or increasing memory. I choose upgrading to 64-bit version because the original 32-bit environment before replace PowerPivot version is normal so that it will be not enough memory.

For 64-bit environment, I need to install 64-bit OS, Office 2010, PowerPivot and hotfix with up-to-date. When finish the related Microsoft Prerequisite, the Oracle Client need to be installed then.
ScreenHunter_05 May. 06 13.50Download “Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64) from Oracle Website and extract “win64_11gR2_client” compressed file to the selected folder. The extracted path will be “\client” and its setup file is under this path.
Executing "setup.exe” to begin the installation process of Oracle Client.
ScreenHunter_03 May. 06 13.21In Select Installation Type,select “Administrator” option next to click “Next>” button
ScreenHunter_06 May. 06 14.29Click “Next> “ button if we don’t need to select another language.
ScreenHunter_07 May. 06 14.29Keep the default Oracle Base and Software Location next to click “Next> “ button
ScreenHunter_08 May. 06 14.29If no any problem in Perform Prerequisite Checks, click “Finish” button to begin to install Oracle Client Software now.
ScreenHunter_09 May. 06 14.30The installation of Oracle Client almost is successful if no any surprise.
ScreenHunter_10 May. 06 14.52
In the moment, we need to add a “tnsnames.oRA” file under the installation path as “c:\app\davidwa_wang\product\11.2.0\client_1\network\admin\” for creating an entry in this file to allows the ODBC driver to establish network connections to an Oracle Database.
ScreenHunter_11 May. 06 14.54In this file content, need to define “Data Source Name”, "Host” (by FQDN or NETBIOS name or IP), “Port” (default = 1521) and “Service Name”
ScreenHunter_12 May. 06 14.55After saving this file and opening Excel 2010 to execute PowerPivot Data Refresh, its function will be normal now.
ScreenHunter_13 May. 06 15.15

2012年5月4日 星期五

Install Microsoft SQL Server 2012 PowerPivot for Microsoft Excel 2010

Microsoft PowerPivot for Excel is a exciting tool for analyzing data. It is very convenient for us to use in Excel because we almost don’t need to write any code for data analysis.
Since Microsoft Powerpivot for Microsoft Excel 2010 release, I have already used it in business work for a long time. Recently, I decide to change its version to 64-bit Microsoft SQL 2012 Powerpivot for Microsoft Excel 2010 because I get memory issue when run it. I think the 64-bit version can extend more memory than 32-bit one!

When I download “PowerPivot_for_Excel_amd64.msi” from this URL http://www.microsoft.com/en-us/download/details.aspx?id=29074 and execute it on Windows 7 64-bit version, I get a error message as follows:
ScreenHunter_01 May. 02 16.38I read PowerPivot Instructions and find out I forget to install “Visual Studio 2010 Tools for Office Runtime” in the moment.
ScreenHunter_02 May. 02 17.03So I download 64-bit version and install it next to update the last hotfix, I can install Microsoft SQL Server 2012 PowerPivot by Wizard now.
ScreenHunter_06 May. 04 22.09After installing PowerPivot next to open Excel program, I find out that PowerPivot item never show in menu.
ScreenHunter_03 May. 04 21.53I know need to do something to enable it.
Click “File” –>  "Options”, it will show up Excel Options window.
ScreenHunter_04 May. 04 21.55In Excel Options, click “Add-Ins” –> Select “COM Add-ins” in Manage menu –> Click “Go…” button and the COM Add-Ins window will show up.
ScreenHunter_08 May. 04 22.11In COM Add-Ins window, enable “PowerPivot for Excel” check box next to click “OK” button, the result is nothing happen --- that is “PowerPivot” item still disappear.
Why?
Because COM Add-Ins load behavior fail!
ScreenHunter_09 May. 04 22.13How to resolve this problem? Reinstall .Net Framework 4.0 again!
You can download .NET Framework 4 (Web Installer) or (Standalone Installer) from Microsoft Web Site.
ScreenHunter_10 May. 04 22.38After Installation is completed, don’t forget to check Windows Update again.
ScreenHunter_11 May. 04 22.45Redo the above process to enable “PowerPivot” check box, the load behavior is normal.
ScreenHunter_12 May. 04 22.47And PowerPivot item can be see now.
ScreenHunter_13 May. 04 22.48I think the key point is whether “Microsoft .NET Framework 4 Extended” exist.
ScreenHunter_14 May. 04 22.53
Since 2010 Design by Davidwa
©Copyright Davidwa Inc. All rights reserved.