2016年3月29日 星期二

cmdkey and Mstsc

cmdkey /generic:TERMSRV/"computername or IP" /user:"username" /pass:"password"
Then call RDP connection using
mstsc /v:"computer name or IP"
If you want to delete the credentials run
cmdkey /delete:TERMSRV/"Computer name or IP"
Remember to remove ""

-------------------------
Re-posted as an answer: Found an alternative (Tested in Win8):
cmdkey /generic:"<server>" /user:"<user>" /pass:"<pass>"
Run that and if you run:
mstsc /v:<server>
You should not get an authentication prompt.


2016年3月21日 星期一

IE 9 Offline install

http://techdows.com/2011/03/download-ie9-final-offlinestandalone-installer.html

How to Install 32-bit Version of IE9 on 64-bit Version of Windows 7


Installing 32-bit IE9 on 64-bit Windows 7
Actually when you install 64-bit version, 32-bit version will also be installed in your Computer automatically. All you need to do is find the path of IE9 32-bit executable and create a shortcut to it and start using it. Yep, so easy.
Why IE9 32bit is faster than 64-bit?
32bit IE9 contains JIT (Just In Time) compiler which converts script into machine code before running it. 64-bit IE9 doesn’t contains JIT compiler that’s why 32bit version runs 4 times faster than 64-bit IE.
64bit systems and applications are faster and they may be for future but not for current usage, that’s why Microsoft doesn’t allows you to set 64bit IE as default browser, which may be changed in future.
Running IE9 32bit on 64-bit Windows 7
Place a shortcut for Internet Explorer icon on start menu in Windows 7 or you can find IE9 32-bit executable here at C:\Program Files (x86)\Internet Explorer\iexplorer.exe to create a shortcut.

rerequisites for installing Internet Explorer 9

https://support.microsoft.com/en-us/kb/2399238
Click Start, type msinfo32

2016年3月18日 星期五

Time Sync

Internet Time tab has disappeared from the Date and Time applet of the Control Panel

Administrator mode : 

w32tm /config /syncfromflags:MANUAL /manualpeerlist:time.nist.gov
about not work

below not work

w32tm /config /update
below  work

w32tm /resync

Configure a client computer for automatic domain time synchronization
https://technet.microsoft.com/en-us/library/cc758905(v=ws.10).aspx

Administrative Credentials
To perform this procedure, you must be a member of the Administrators group on the local computer. To perform this procedure from a remote computer, you must be a member of the Domain Admins group.
To configure a client computer for automatic domain time synchronization
Open a Command Prompt.
Type the following command and then press ENTER:
w32tm /config /syncfromflags:domhier /update
Type the following command and then press ENTER:
net stop w32time
Type the following command and then press ENTER:
net start w32time

2016年3月16日 星期三

YCH XP ie6 -new (command line switch)

-nomerge command line cannot use in XP or XP mode (IE6 ) computer

try

YCH XP ie6 -new (command line switch)

https://technet.microsoft.com/en-us/library/cc977535.aspx

Command-Line Parameters for Starting Internet Explorer

In addition to using command-line switches to customize Setup, you can use command-line parameters to customize how Internet Explorer is started.
For example, you can start Internet Explorer in Kiosk or full-screen mode by adding a parameter to the Internet Explorer executable file name by using the following syntax:
/
path
/Iexplore.exe -k
The following is a list of parameters you can use for starting Internet Explorer:
-new - Launches the browser window in a new browsing process.
-remote - Starts a remote instance of Internet Explorer on UNIX platforms only.
-k - Starts the browser in Kiosk or full-screen mode.
-nohome - Starts Internet Explorer without its home page.
-embedding - Starts the Web browser control (no home page is displayed).
-channelband - Displays the channels folder.
-e - Starts Internet Explorer Help on UNIX platforms only.
-v (also -version) - Can be used to specify the version on UNIX platforms only.

2016年3月13日 星期日

Check SQL Express Version or 2008 R2 version

1)If you are not using the default instance, the try then following command:sqlcmd -S MACHINENAME\INSTANCE_NAME



4) https://gallery.technet.microsoft.com/Determining-the-version-of-62136c05

You can always find out what version number of SQL Server that you are running by executing this T-SQL statement in SQL Server Management Studio:

1
SELECT @@VERSION


http://blog.discountasp.net/microsoft-sql-server-tips-series-incorrect-sql-version/

install vum on vcenter already have sql server

http://www.virtualizationadmin.com/articles-tutorials/vmware-esx-and-vsphere-articles/general/vsphere-update-manager-vum-part2.html

http://pubs.vmware.com/vsphere-55/index.jsp#com.vmware.vsphere.update_manager.doc/GUID-042604BA-C226-46B4-A2CE-B2CDD8FE9302.html


Because I see below note on VUM 5.5 doc , seem link  said VUM 5.0 is a 32 bit , not suitable to describe VUM5.5.
tho VUM 5.5 is 64 bit application

on Blog Back to Basics: Installing vSphere 5.5 – VMware Update Manager (VUM)

Unlike vCenter, VUM is 32-bit application – and as such requires 32-bit DSN to communicate to the VUM database.

Make sure that your system meets the requirements specified in System Requirements.

Important
You can install the Update Manager 5.5 server component only on a 64-bit machine. Make sure the system on which you are installing the Update Manager server is not an Active Directory domain controller.
2) Becareful SQL Full recovery model (youtube here)

2016年3月1日 星期二

BootMed

Free) BootMed will teach you how to repair Windows or recover your data. This live CD boots up to online text based instructions and screen shots guiding you through DIY recovery.

http://www.bootmed.com/

task scheduler to restart a software service

net stop "Service B"
net stop "Service A"
timeout /T 10
net start "Service B"
timeout /T 10
net start "Service A"
It's not ideal, but it will do for t

@echo off
set logfile=D:\logs\myapp.log
echo starting app.exe at %date% %time% >> %logfile%
app.exe -options oas >> %logfile%
To pause the command processor for ten seconds, type:
timeout /t 10
To pause the command processor for 100 seconds and ignore any keystroke, type:
timeout /t 100 /nobreak
To pause the command processor indefinitely until a key is pressed, type:
timeout /t -1