Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts
Thursday, November 12, 2015
How to Enable Win XP, Win 2003 ... to access NAS Network
To access the network shares Windows relies on one of the Windows Service "Network DDE DSDM" also known "Manages Dynamic Data Exchange (DDE)", If this service is stopped, DDE network shares will be unavailable.
To Start this Service:
Go to Windows Start Button-->Administrative Tools-->Services, locate "Network DDE DSDM" and to set it to "Automatic" then start up the service.
Thursday, October 23, 2014
Explorer crashes due MSVCR100.dll in Windows 7
Faulting application name: explorer.exe, version: 6.1.7601.17567, time stamp: 0x4d672ee4
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
Exception code: 0xc0000005
Fault offset: 0x000000000003c145
Faulting process id: 0x1be8
Faulting application start time: 0x01cf723c3fbeee54
Faulting application path: C:\Windows\explorer.exe
Faulting module path: C:\Windows\system32\MSVCR100.dll
Report Id: 825626cb-de2f-11e3-ab39-0026b904b93e
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
Exception code: 0xc0000005
Fault offset: 0x000000000003c145
Faulting process id: 0x1be8
Faulting application start time: 0x01cf723c3fbeee54
Faulting application path: C:\Windows\explorer.exe
Faulting module path: C:\Windows\system32\MSVCR100.dll
Report Id: 825626cb-de2f-11e3-ab39-0026b904b93e
The synwinxt.dll of Synergy caused this issue reported before:
Solution:
go to the C:\Program Files\Synergy folder and rename the synwinxt.dll to synwinxt.dll.bak
Friday, November 23, 2012
Create log off message for Windows
- Click Start > Run, type “regedit” click Ok button. Registry Editor window will popup.
- Find this path from left side of Registry Editor window: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
- Double click LegalNoticeCaption from right side Registry Editor window. This will popup Edit String window. Type in Value data any name that you want to be your message window title. Click Ok button.
- Double click LegalNoticeText from right side Registry Editor window. This will popup Edit String window. Type in Value data any message, this message will show up on your message window. Click Ok button. Close your Registry Editor window.
- Log off from your computer.
Wednesday, November 7, 2012
How to check which process using TCP/IP Ports in Windows
Run the following command from a command prompt to find the PID of the process which is using TCP port 80 and/or 443.
netstat -aon | find ":80"
netstat -aon | find ":443"
You will see an output similar to the following. Remember the actual PID will vary from case to case.
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 3604
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 3320
Now using Task Manager you can easily find out to which process the above PID belongs and take appropriate action.
http://support.microsoft.com/kb/973094
Thursday, September 1, 2011
Change IP Address Using Netsh.exe Command
Netsh command
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
to change DNS
netsh int ip set dns "Local Area Connection" static 192.168.0.254 primary
The "Local Area Connection" is your Adapter name, It could also be "local area connection 2" or "wireless network connection"...
Syntax
netsh int ipv4 set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress[mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}}
MSDN Document
Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2
to change the ipv4 address, subnet mask and getway
netsh int ipv4 set address "Local Area Connection" static 192.168.0.2 255.255.255.0 192.168.0.254 1netsh int ip set dns "Local Area Connection" static 192.168.0.254 primary
The "Local Area Connection" is your Adapter name, It could also be "local area connection 2" or "wireless network connection"...
Syntax
netsh int ipv4 set address [name=]InterfaceName [source=]{dhcp | static [addr=]IPAddress[mask=]SubnetMask [gateway=]{none | DefaultGateway [[gwmetric=]GatewayMetric]}}
MSDN Document
Wednesday, December 15, 2010
How to disable IE prompt message: A script is accessing some software (an ActiveX control) on this page which has been marked safe for scripting
the marked safe for scripting which means some activeX control have been authenticated by Microsoft, therefor
Microsoft marked it as a safe script and you can use it less risk.
How to disable message prompt to you
in Internet Explorer menu
1. Tools -> Internet Options
2. Security Tab
3. Select a zone to Internet
4. Custom level
5. ActiveX controls and plug-ins
Script ActiveX controls marked safe for scripting
Microsoft marked it as a safe script and you can use it less risk.
How to disable message prompt to you
in Internet Explorer menu
1. Tools -> Internet Options
2. Security Tab
3. Select a zone to Internet
4. Custom level
5. ActiveX controls and plug-ins
Script ActiveX controls marked safe for scripting
Tuesday, August 17, 2010
How to remove GRUB and restore the Windows bootloader
1. Boot computer from bootable Windows XP CD
2. when the first screen stop and prompt options, press R to repair an existing installation.
3. In the console type commands as below:
C:\> FIXBOOT C:
C:\> FIXMBR
C:\> BOOTCFG /rebuild
Enter Load Identifier: Windows Server 2003, Enterprise
Enter OS Load Options: /fastdetect
4. reboot done!
Related
http://support.microsoft.com/kb/317521/en-us?fr=1
2. when the first screen stop and prompt options, press R to repair an existing installation.
3. In the console type commands as below:
C:\> FIXBOOT C:
C:\> FIXMBR
C:\> BOOTCFG /rebuild
Enter Load Identifier: Windows Server 2003, Enterprise
Enter OS Load Options: /fastdetect
4. reboot done!
Related
http://support.microsoft.com/kb/317521/en-us?fr=1
Wednesday, July 7, 2010
Using command line for Windows Disk Defragmenter
Windows Disk Defragmenter
Copyright (c) 2003 Microsoft Corp. and Executive Software International, Inc.
Usage:
defrag <volume> [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text
for example if you want to defrag Dirve D: and analyze onlydefrag D: -a
result is show below:
Windows Disk Defragmenter
Copyright (c) 2003 Microsoft Corp. and Executive Software International, Inc.
Analysis Report
51.16 GB Total, 14.92 GB (29%) Free, 5% Fragmented (10% file fragmentation)
You do not need to defragment this volume.
Copyright (c) 2003 Microsoft Corp. and Executive Software International, Inc.
Usage:
defrag <volume> [-a] [-f] [-v] [-?]
volume drive letter or mount point (d: or d:\vol\mountpoint)
-a Analyze only
-f Force defragmentation even if free space is low
-v Verbose output
-? Display this help text
for example if you want to defrag Dirve D: and analyze onlydefrag D: -a
result is show below:
Windows Disk Defragmenter
Copyright (c) 2003 Microsoft Corp. and Executive Software International, Inc.
Analysis Report
51.16 GB Total, 14.92 GB (29%) Free, 5% Fragmented (10% file fragmentation)
You do not need to defragment this volume.
Thursday, January 28, 2010
Configure Windows XP to Automatically Login
1. At a command prompt, type "control userpasswords2" and press Enter to open the Windows User Accounts application.
2. On the Users tab, clear the Users Must Enter A User Name And Password To Use This Computer check box and then click OK.
3. In the Automatically Log On dialog box that appears, type the user name and password for the account you want to be logged on each time you start your computer.
2. On the Users tab, clear the Users Must Enter A User Name And Password To Use This Computer check box and then click OK.
3. In the Automatically Log On dialog box that appears, type the user name and password for the account you want to be logged on each time you start your computer.
Thursday, December 17, 2009
Windows Remote Desktop Web Connection ActiveX Reference
This articel help you understand how to use javascript create a customize windwos remote desktop web connection.
you can use this technic connect to your server desktop anywhere and the IE browser is all you need.
you can use this technic connect to your server desktop anywhere and the IE browser is all you need.
// Declare MsRdpClient object in the web page
<OBJECT language="vbscript" ID="MsRdpClient" CLASSID="CLSID:7584c670-2274-4efb-b00b-d6aaba6d3850"
onerror="OnControlLoadError"
onreadystatechange="OnControlLoad"
CODEBASE="msrdp.cab#version=5,2,3790,3959"
WIDTH=<% resWidth = Request.QueryString("rW")
if resWidth < 200 or resWidth > 1600 then
resWidth = 800
end if
Response.Write resWidth %>
HEIGHT=<% resHeight = Request.QueryString("rH")
if resHeight < 200 or resHeight > 1200 then
resHeight = 600
end if
Response.Write resHeight %>
</OBJECT>
<OBJECT language="vbscript" ID="MsRdpClient" CLASSID="CLSID:7584c670-2274-4efb-b00b-d6aaba6d3850"
onerror="OnControlLoadError"
onreadystatechange="OnControlLoad"
CODEBASE="msrdp.cab#version=5,2,3790,3959"
WIDTH=<% resWidth = Request.QueryString("rW")
if resWidth < 200 or resWidth > 1600 then
resWidth = 800
end if
Response.Write resWidth %>
HEIGHT=<% resHeight = Request.QueryString("rH")
if resHeight < 200 or resHeight > 1200 then
resHeight = 600
end if
Response.Write resHeight %>
</OBJECT>
// Some Necessary input fields in web page
Domain Name: <input type="text" name="Domain" id="editDomain">
Screen Resolution:
<select size="1" name="comboResolution" id=comboRes class="topspace">
<option selected value="1"><ID id=option1>Full Screen</ID></option>
<option value="2"><ID id=option2>640 x 480</ID></option>
....
<option value="7"><ID id=option6>1600 x 1200</ID></option>
</select>
<input type="submit" id=connectbutton value="Connect" disabled="true" name="ButtonLogin" OnClick="RdpConnect">
Domain Name: <input type="text" name="Domain" id="editDomain">
Screen Resolution:
<select size="1" name="comboResolution" id=comboRes class="topspace">
<option selected value="1"><ID id=option1>Full Screen</ID></option>
<option value="2"><ID id=option2>640 x 480</ID></option>
....
<option value="7"><ID id=option6>1600 x 1200</ID></option>
</select>
<input type="submit" id=connectbutton value="Connect" disabled="true" name="ButtonLogin" OnClick="RdpConnect">
// Validate MsRdpClient ActiveX is ready to load
function onControlLoad
{
var control = document.getElementById("MsRdpClient");
if(control == null)
{
if(control.readyState == 4)
{
document.getElementById("connectButton").disabled = false;
}
}
}
// invok connection to MsRdpClient object
function RdpConnect()
{
MsRdpClient.Server="Server";
MsRdpClient.Domain="Domain";
MsRdpClient.UserName="user";
MsRdpClient.AdvancedSettings2.ClearTextpassword="password";
MsRdpClient.AdvancedSettings2.RDPPort = 3389;
MsRdpClient.FullScreen=1;
MsRdpClient.Width=1024;
MsRdpClient.Height=768;
MsRdpClient.DesktopWidth=1024;
MsRdpClient.DesktopHeight=768;
MsRdpClient.Connect();
}
function onControlLoad
{
var control = document.getElementById("MsRdpClient");
if(control == null)
{
if(control.readyState == 4)
{
document.getElementById("connectButton").disabled = false;
}
}
}
// invok connection to MsRdpClient object
function RdpConnect()
{
MsRdpClient.Server="Server";
MsRdpClient.Domain="Domain";
MsRdpClient.UserName="user";
MsRdpClient.AdvancedSettings2.ClearTextpassword="password";
MsRdpClient.AdvancedSettings2.RDPPort = 3389;
MsRdpClient.FullScreen=1;
MsRdpClient.Width=1024;
MsRdpClient.Height=768;
MsRdpClient.DesktopWidth=1024;
MsRdpClient.DesktopHeight=768;
MsRdpClient.Connect();
}
MsRdpClient OCX Methods and controls reference:
MsRdpClient.AdvancedSettings.PluginDlls
MsRdpClient.AdvancedSettings2.AcceleratorPassthrough
MsRdpClient.AdvancedSettings2.BitmapCacheSize
MsRdpClient.AdvancedSettings2.BitmapPersistence
MsRdpClient.AdvancedSettings2.BitmapVirtualCache16BppSize
MsRdpClient.AdvancedSettings2.BitmapVirtualCache24BppSize
MsRdpClient.AdvancedSettings2.BitmapVirtualCacheSize
MsRdpClient.AdvancedSettings2.ClearTextPassword
MsRdpClient.AdvancedSettings2.ConnectToServerConsole
MsRdpClient.AdvancedSettings2.DedicatedTerminal
MsRdpClient.AdvancedSettings2.DisableCtrlAltDel
MsRdpClient.AdvancedSettings2.DisplayConnectionBar
MsRdpClient.AdvancedSettings2.DoubleClickDetect
MsRdpClient.AdvancedSettings2.EnableAutoReconnect
MsRdpClient.AdvancedSettings2.EnableMouse
MsRdpClient.AdvancedSettings2.EnableWindowsKey
MsRdpClient.AdvancedSettings2.FullScreen
MsRdpClient.AdvancedSettings2.GrabFocusOnConnect
MsRdpClient.AdvancedSettings2.HotKeyAltEsc
MsRdpClient.AdvancedSettings2.HotKeyAltShiftTab
MsRdpClient.AdvancedSettings2.HotKeyAltSpace
MsRdpClient.AdvancedSettings2.HotKeyAltTab
MsRdpClient.AdvancedSettings2.HotKeyCtrlAltDel
MsRdpClient.AdvancedSettings2.HotKeyCtrlEsc
MsRdpClient.AdvancedSettings2.InputEventsAtOnce
MsRdpClient.AdvancedSettings2.KeepAliveInterval
MsRdpClient.AdvancedSettings2.KeyboardType
MsRdpClient.AdvancedSettings2.MaxEventCount
MsRdpClient.AdvancedSettings2.MaximizeShell
MsRdpClient.AdvancedSettings2.MaxReconnectAttempts
MsRdpClient.AdvancedSettings2.MinInputSendInterval
MsRdpClient.AdvancedSettings2.MinutesToIdleTimeout
MsRdpClient.AdvancedSettings2.NumBitmapCaches
MsRdpClient.AdvancedSettings2.OrderDrawThreshold
MsRdpClient.AdvancedSettings2.OverallConnectionTimeout
MsRdpClient.AdvancedSettings2.PerformanceFlags
MsRdpClient.AdvancedSettings2.PersistCacheDirectory
MsRdpClient.AdvancedSettings2.PinConnectionBar
MsRdpClient.AdvancedSettings2.RdpdrClipCleanTempDirString
MsRdpClient.AdvancedSettings2.RdpdrClipPasteInfoString
MsRdpClient.AdvancedSettings2.RdpdrLocalPrintingDocName
MsRdpClient.AdvancedSettings2.RDPPort
MsRdpClient.AdvancedSettings2.RedirectDrives
MsRdpClient.AdvancedSettings2.RedirectPorts
MsRdpClient.AdvancedSettings2.RedirectPrinters
MsRdpClient.AdvancedSettings2.RedirectSmartCards
MsRdpClient.AdvancedSettings2.ScaleBitmapCachesByBPP
MsRdpClient.AdvancedSettings2.ShadowBitmap
MsRdpClient.AdvancedSettings2.ShutdownTimeout
MsRdpClient.AdvancedSettings2.SingleConnectionTimeout
MsRdpClient.AdvancedSettings2.SmartSizing
MsRdpClient.AdvancedSettings2.SmoothScroll
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton
MsRdpClient.AdvancedSettings3.ConnectionBarShowRestoreButton
MsRdpClient.ColorDepth
MsRdpClient.SecuredSettings.AudioRedirectionMode
MsRdpClient.SecuredSettings.KeyboardHookMode
MsRdpClient.SecuredSettings.StartProgram
MsRdpClient.SecuredSettings.WorkDir
Related Links:
Installing Remote Desktop Web Connection in Windows XP
MsRdpClient.AdvancedSettings2.AcceleratorPassthrough
MsRdpClient.AdvancedSettings2.BitmapCacheSize
MsRdpClient.AdvancedSettings2.BitmapPersistence
MsRdpClient.AdvancedSettings2.BitmapVirtualCache16BppSize
MsRdpClient.AdvancedSettings2.BitmapVirtualCache24BppSize
MsRdpClient.AdvancedSettings2.BitmapVirtualCacheSize
MsRdpClient.AdvancedSettings2.ClearTextPassword
MsRdpClient.AdvancedSettings2.ConnectToServerConsole
MsRdpClient.AdvancedSettings2.DedicatedTerminal
MsRdpClient.AdvancedSettings2.DisableCtrlAltDel
MsRdpClient.AdvancedSettings2.DisplayConnectionBar
MsRdpClient.AdvancedSettings2.DoubleClickDetect
MsRdpClient.AdvancedSettings2.EnableAutoReconnect
MsRdpClient.AdvancedSettings2.EnableMouse
MsRdpClient.AdvancedSettings2.EnableWindowsKey
MsRdpClient.AdvancedSettings2.FullScreen
MsRdpClient.AdvancedSettings2.GrabFocusOnConnect
MsRdpClient.AdvancedSettings2.HotKeyAltEsc
MsRdpClient.AdvancedSettings2.HotKeyAltShiftTab
MsRdpClient.AdvancedSettings2.HotKeyAltSpace
MsRdpClient.AdvancedSettings2.HotKeyAltTab
MsRdpClient.AdvancedSettings2.HotKeyCtrlAltDel
MsRdpClient.AdvancedSettings2.HotKeyCtrlEsc
MsRdpClient.AdvancedSettings2.InputEventsAtOnce
MsRdpClient.AdvancedSettings2.KeepAliveInterval
MsRdpClient.AdvancedSettings2.KeyboardType
MsRdpClient.AdvancedSettings2.MaxEventCount
MsRdpClient.AdvancedSettings2.MaximizeShell
MsRdpClient.AdvancedSettings2.MaxReconnectAttempts
MsRdpClient.AdvancedSettings2.MinInputSendInterval
MsRdpClient.AdvancedSettings2.MinutesToIdleTimeout
MsRdpClient.AdvancedSettings2.NumBitmapCaches
MsRdpClient.AdvancedSettings2.OrderDrawThreshold
MsRdpClient.AdvancedSettings2.OverallConnectionTimeout
MsRdpClient.AdvancedSettings2.PerformanceFlags
MsRdpClient.AdvancedSettings2.PersistCacheDirectory
MsRdpClient.AdvancedSettings2.PinConnectionBar
MsRdpClient.AdvancedSettings2.RdpdrClipCleanTempDirString
MsRdpClient.AdvancedSettings2.RdpdrClipPasteInfoString
MsRdpClient.AdvancedSettings2.RdpdrLocalPrintingDocName
MsRdpClient.AdvancedSettings2.RDPPort
MsRdpClient.AdvancedSettings2.RedirectDrives
MsRdpClient.AdvancedSettings2.RedirectPorts
MsRdpClient.AdvancedSettings2.RedirectPrinters
MsRdpClient.AdvancedSettings2.RedirectSmartCards
MsRdpClient.AdvancedSettings2.ScaleBitmapCachesByBPP
MsRdpClient.AdvancedSettings2.ShadowBitmap
MsRdpClient.AdvancedSettings2.ShutdownTimeout
MsRdpClient.AdvancedSettings2.SingleConnectionTimeout
MsRdpClient.AdvancedSettings2.SmartSizing
MsRdpClient.AdvancedSettings2.SmoothScroll
MsRdpClient.AdvancedSettings3.ConnectionBarShowMinimizeButton
MsRdpClient.AdvancedSettings3.ConnectionBarShowRestoreButton
MsRdpClient.ColorDepth
MsRdpClient.SecuredSettings.AudioRedirectionMode
MsRdpClient.SecuredSettings.KeyboardHookMode
MsRdpClient.SecuredSettings.StartProgram
MsRdpClient.SecuredSettings.WorkDir
Related Links:
Installing Remote Desktop Web Connection in Windows XP
Thursday, August 27, 2009
How to Install/UnInstall COM Componets
If the COM file is a executive .exe file.Excute the file with a argument as below:
-Service // Install .exe COM file as a windows service.
-UnregServer // Uninstall .exe COM componet.
-RegServer // Install .exe COM file as a windows COM componet.
-UnregServer // Uninstall .exe COM componet.
-RegServer // Install .exe COM file as a windows COM componet.
If the COM file is a DLL file, suppose the file name is mycom.dll.
regsvr32 mycom.dll // To install dll COM
regsvr32 /u mycom.dll // Run regsvr32 with argument /u to uninstall the dll COM
regsvr32 /u mycom.dll // Run regsvr32 with argument /u to uninstall the dll COM
dcomcnfg // This tool can see the all DCOM componets has installed in the system.
The Installutil.exe is a tool for .NET componets registration
Here some argument options
| Option | Description |
|---|---|
| /h[elp] | Displays command syntax and options for the tool. |
| /help assemblypath | Displays any additional options recognized by individual installers within the specified assembly. |
| /logFile=[filename] | Specifies the name of the log file where install progress is recorded. The default is assemblyname.InstallLog. |
| /logToConsole={true|false} | If true, displays output to the console. If false (the default), suppresses output to the console. |
| /showCallStack | Prints the call stack to the log if an exception occurs at any point during installation. |
| /u[ninstall] | Uninstalls an assembly. Unlike other options, /u applies to all assemblies regardless of where it appears on the command line. |
| /? assemblypath | Displays any additional options recognized by individual installers within the specified assembly. |
| /? | Displays command syntax and options for the tool. |
The SC.exe is a Windows SDK tool
The SC.exe can be used to Query, Install, Uninstall and Setting Windows Service and Windows Hardware Drivers.
How to use it go ask google!
Subscribe to:
Posts (Atom)