顯示包含「Microsoft」標籤的文章。顯示所有文章
顯示包含「Microsoft」標籤的文章。顯示所有文章

2013年9月9日星期一

Export a Server Certificate (IIS 6.0)

Web server certificates contain information about the server that allows the client to positively identify the server over a network before sharing sensitive information, in a process called authentication. Secure Sockets Layer (SSL) uses these certificates for authentication, and uses encryption for message integrity and confidentiality. SSL is a public key–based security protocol that is used by Internet services and clients to authenticate each other and to establish message integrity and confidentiality.
If you use SSL to protect confidential information exchanged between the Web server and the client, you must migrate or export the certificates and the associated private keys from the source server to the target server.

Requirements

•
Credentials: Membership in the Administrators group on the local computer.
•
Tools: Iis.msc.

Recommendation

As a security best practice, log on to your computer using an account that is not in the Administrators group, and then use the Run as command to run IIS Manager as an administrator. At the command prompt, type runas /user:administrative_accountname mmc %systemroot%\system32\inetsrv\iis.msc.

Procedures

To export a server certificate

1.
In the Run dialog box, type mmc, and then click OK. The Microsoft Management Console (MMC) appears.
2.
If you do not have Certificate Manager installed in MMC, you need to install it.
For more information on how to add the Certificate snap-in to an MMC console, see the procedure "To add the Certificates Snap-in to MMC" in Install a Server Certificate this appendix.
3.
In the console tree, click the logical store where the certificate you want to export exists. Usually this is in the Certificates folder in the Personal directory underCertificates (Local Computer) on the Console Root.
4.
Right-click the certificate you want to export, click All Tasks, and click Export to start the Certificate Export Wizard.
5.
Click Next.
6.
On Export Private Key, click Yes to export the private key.
  Important
You must export the private key along with your certificate for it to be valid on your target server. Otherwise, you will have to request a new certificate for the target server.
7.
In the Export File Format dialog box, click the format you want for the certificate. If the certificate has already been formatted, that format is selected as the default. Click Next.
Do not select Delete the private key if export is successful, because this will disable the SSL site that corresponds to that private key.
8.
Continue to follow steps in the wizard, and enter a password for the certificate backup file when prompted. Using a strong password is highly recommended because it ensures that the private key is well protected.
9.
Type the name of the file you want to export, or click Browse to search for the file. Click Next.
10.
Click Finish to complete the Certificate Export Wizard.

2013年6月27日星期四

Super Utilities for Visio

http://www.sandrila.co.uk/visio-utilities/

I nice to for Visio, such as copy and combine files.

How to enable Ping in Windows Server

GUI – Graphical User Interface
1. Open Control Panel, then select System and Security by clicking on that header
-
-
2. Select Windows Firewall
-
-
3. Advanced Settings
-
-
4. In ‘Windows Firewall with Advanced security’ click on ‘Inbound rules’
-
-
5. Scroll down to ‘File and Printer sharing (Echo request – ICMPv4-In)
-
-
6. Rightclick on the rule and select ‘Enable rule’
-
-
Make sure that it turns green
Done, close down the ‘Windows Firewall with Advanced Security’ windows and then the Control panel.
Verify functionality by pinging the servers own IP address from a command or PowerShell prompt.
Done!
Back to top

-
-
PowerShell
(This will enable the existing rule exactly as the instruction above does)
Import-Module NetSecuritySet-NetFirewallRule -DisplayName “File and Printer Sharing (Echo Request – ICMPv4-In)” -enabled True
 
EnablePing
(ABove enables the existing rule, below will create a new rule that allows ICMPv4/Ping and enable it)
Import-Module NetSecurityNew-NetFirewallRule -Name Allow_Ping -DisplayName “Allow Ping”  -Description “Packet Internet Groper ICMPv4″ -Protocol ICMPv4 -IcmpType 8 -Enabled True -Profile Any -Action Allow
 
EnablePing2
(For IPv6 Ping you obviously enable the v6 Inbound Rule…)

2013年6月25日星期二

Installing Remote Desktop Services

Open the Server Manager and right-click on roles, select Add Roles from the context menu
Click next on the Before You Being page to bring up a list of Roles that can be installed, select Remote Desktop Services and click next
On the Introduction To Remote Desktop Services page click next, this will bring you to the Role Services page, select the Remote Desktop Session Host as well as the Remote Desktop Licensing Service and then click next.
When you get to the application compatibility page it tells you that you should install the Session Host Role before you install your applications, just click next as we have not yet installed our applications. You are then asked if you want to require NLA, this will only allow Windows clients to connect to the Remote Desktop Session Host Server, in addition they must be running a Remote Desktop Client that support Network Level Authentication. I will go ahead and require NLA and then click next

Now you have to choose a licensing method, most of you guys wont have Remote Desktop Client Access Licenses, so you can leave your option at Configure Later this will give you unlimited access to the Remote Desktop Server for 4 Months (120 Days). However, if you do have licenses here is some information help you make your choice:
Licensing Modes
The licenses you purchased can be used either as Per User or Per Device. It is purely up to you, however if you already have a RDS Licensing Server you will have to choose the same option you chose when importing the licenses originally.
  • RDS Per User CAL –  This means that every user that connects to the RDS Server must have a license. The user is assigned the license rather than the devices that he/she connects to the server from. This mode is a good choice if your users want to connect from a lot of different computers or devices (iPad, Home PC, Laptop, Phone etc)
  • RDS Per Device CAL – If your users share a common workstation this is the mode for you, the license is given to the device rather than the users, this way many people can connect from a single device. However, if they try to connect from a different device they will not be able to since their user account doesn’t have a license.
I will leave mine at configure later and click next
Now you should specify who can connect to the Remote Desktop Server, I will just add my user account (Windows Geek), then click next
You are now given the option of making the RDS Server look and act more like Windows 7, this is to avoid users getting confused when they see the classic theme. I will enable the all the settings, it requires more bandwidth though, so take your network traffic into account before going click-happy and selecting everything. Once you have made your choice click next
Since we are running Server 2008 R2, we don’t need to specify a Discovery Scope so just click next again
Finally you can click on install.
Once installation is complete, reboot your server, when you log in the configuration will complete. That’s all there is to installing a Remote Desktop Server.

Activation

If you need to install your licenses you can do it through the RD Licensing Manager. You will need to activate the Server first though. I wont go through this, as it is self-explanatory.
Once you have installed you Licenses you will need to specify a license server for the RDS Session Host to use, to do this, open the RDS Session Host Configuration MMC
When the console opens double-click on the Remote Desktop license servers link.
Now you can specify your licensing mode and then hit the add button to specify a licensing server.
As I said before, you can skip this activation section and use Remote Desktop Services for 120 Days before you need to purchase a CAL. Once you have done this you will need to install your applications. However you cant just install them in any fashion you want, there is actually a special method for installing applications on a Remote Desktop Server.

2013年5月3日星期五

Reset a user password Active Directory (AD) by using command

1. Open Command Prompt.



2. Type:

dsmod userUserDN-pwdNewPassword

3. If you want to require the user to change this password at the next logon process, Type:

dsmod userUserDN-mustchpwd {yes|no}


UserDN: Specifies the distinguished name of the user for which the password will be reset.

NewPassword: Specifies the password that will replace the current user password.


Examples:
To reset a user's password:


dsmod user "CN=John Doe,CN=Users,DC=microsoft,DC=com"
-pwd A1b2C3d4 -mustchpwd yes

To reset multiple user passwords to a common password

and force them to change their passwords the next time they logon:

dsmod user "CN=John Doe,CN=Users,DC=microsoft,DC=com"
"CN=Jane Doe,CN=Users,DC=microsoft,DC=com" -pwd A1b2C3d4 -mustchpwd yes

To disable multiple user accounts at the same time:

dsmod user "CN=John Doe,CN=Users,DC=microsoft,DC=com"
"CN=Jane Doe,CN=Users,DC=microsoft,DC=com" -disabled yes


ref: http://techtoy-blog.blogspot.hk/2010/06/reset-user-password-active-directory-ad.html

2013年3月5日星期二

2012年9月26日星期三

Network Policy Server Log Location

In general,  the log location of Microsoft Network Policy Server at,

C:\Windows\System32\LogFiles\INXXXXXX.log

2012年6月26日星期二

Backup of Sticky Notes (自黏便箋)

The path of Sticky Notes (自黏便箋)

C:\Users\username\AppData\Roaming\Microsoft\Sticky Notes

2012年6月12日星期二

Windows 7 language packs

How to install a Windows 7 language pack and How to change the interface of Windows 7 after a language pack is installed

ref: http://support.microsoft.com/kb/972813

2011年12月29日星期四

Autologon in Windows 7 & Windows Server 2008


To enable Autologon in Windows 7 & Windows Server 2008,
1. Click Start, search for “control userpasswords2″ and press enter.
autologon1
2. Select the user from the list and uncheck “User must enter a user name and password to enter this computer” and click Apply and OK.

2011年11月1日星期二

Change the Measurement Units in MS Word

In 2003 or earlier, go to Tools > Options > General and change
the "Measurement units" dropdown.
 
In 2007 and 2010, go to Office button >
Word Options > Advanced, scroll down to the Display section, and change the
same dropdown.

2011年10月11日星期二

Product Activation and Key Information

Microsoft includes product activation technology in some products sold through the Volume Licensing channel. A product key is required to activate these products.
Note to Microsoft Volume Licensing customers: You can find your Volume License Product Keys at the Volume Licensing Service Center (VLSC).

Recent Changes to Volume Activation

With Volume Licensing for products such as Windows 7, Windows Server 2008 R2, Windows Vista, Windows Server 2008, and Microsoft Office 2010, you must use a new type of product activation called Volume Activation (VA). To activate these operating systems with VA, you can use either a Multiple Activation Key (MAK) or Key Management Service (KMS), requiring a KMS key.
Read More about Volume Activation
Volume Activation is a product activation technology used to activate Windows Vista, Windows Server 2008, 2008 R2, Windows 7 and Office 2010. It is designed to allow Volume Licensing customers to automate the activation process in a way that is transparent to end users. Volume Activation applies to systems that are covered under a Volume Licensing program and is used strictly as a tool for activation and is in no way tied to license invoicing or billing.
Volume Activation provides two different models for completing volume activations. The first model is Key Management Service (KMS) and the second is Multiple Activation Key (MAK). KMS allows organizations to activate systems within their own network, while MAK activates systems on a one-time basis, using Microsoft’s hosted activation services. Customers can use either or both activation methods in their environment. The type of key entered in the product determines the activation method.
If you plan to deploy Windows 7 and/or Office 2010 using Key Management Service (KMS) as the activation method, please note:
  • Windows Server 2008 is not supported as a KMS host to activate Windows 7 and Office 2010.
    • A patch is available to allow activation of Windows 7 client machines. (A Windows Server 2008 R2 KMS key is required.)
    • A patch is not available to allow activation of Office 2010 clients.
  • If you are using Windows Server 2008 as a KMS host, here are your alternatives:
    • Upgrade the KMS host machine to Windows Server 2008 R2.
    • Downgrade the machine to Windows Server 2003.
    • Run the KMS host on a Windows 7 volume edition machine.
    • Run a Windows Server 2003 virtual machine on the Windows Server 2008 machine.
If your organization has fewer than 50 PCs, the best option is to use Multiple Activation Keys (MAK) with Volume Activation Management Tool (VAMT).
While Microsoft makes every effort to cover all of its previous platforms for compatibility, new technologies may make it necessary to decide which previous versions will continue to be supported. Therefore, Windows Server 2008 is not covered as a platform as an Office 2010 KMS host.
Volume License Keys (VLK), including MAK and KMS, are issued to you under a specific license agreement and enable your organization to use the software that you have licensed.
VLKs can be used only with Volume Licensing products; they cannot be used with retail software or software that is preinstalled on a new computer (original equipment manufacturer, or OEM, products).
Learn about Volume Activation and how to activate systems using KMS and/or MAK.

ref: http://www.microsoft.com/licensing/existing-customers/product-activation.aspx 

2011年10月3日星期一

Provisioning Services and Microsoft Volume License Activation

This article describes Windows Server 2008 / Windows 7 Volume License Activation with Provisioning Services
Microsoft provides two forms of volume license activation for Vista:  Key Management Server (KMS) and Multiple Activation Key (MAK).  The choice of which form to use depends on whether Citrix standard-image mode is needed.
KMS Model: KMS volume license can be used with Provisioning Server for Desktops in either Private Image or Standard Image Mode.  Clients communicate to a central Key Management Server. Client machines identify themselves to the KMS by sending a hard-drive signature ID to the KMS.  
MAK Model: MAK activation, which requires that key and activation information be created and stored uniquely on each client (target device), is only compatible with Provisioning Server for Desktops in Private Image Mode, and only when each vDisk is built uniquely for each machine (vDisks cannot be cloned).  Because of these limitations, use of MAK’s for machines that are served by Provisioning Server for Desktops, is not recommended.


ref: http://support.citrix.com/article/CTX124106

2011年6月13日星期一

error code 0x80072F8F

There's a KB article on it here if that helps:
http://support.microsoft.com/kb/929458

2011年3月2日星期三

2011年1月17日星期一

Hyper-V, Virtual Network connect to Internet

Go to Hyper-V Manager, click "Virtual Network Manger"





















Then, create a new external virtual network. Choose External and "tick: Allow management operating system to share this network adapter"