All About SharePoint

Liedong(Ken) Zheng,SharePoint Leader at SIMPLOT

Archive for the ‘Handy Tips’ Category

Get Physical Files from GAC

Posted by ken zheng on May 11, 2011

The easiest way I found is just go to Start | Run and type in "c:\windows\assembly\" to open it up in file explorer.  It will open GAC under file explorer, the majority dlls will be under GAC_MSIL folder

image

Posted in Handy Tips | Leave a Comment »

IE8 developer tools is not opening

Posted by ken zheng on January 4, 2011

Sometime I have Developer tool stuck that can’t open window but is added to the task bar.

this worked for me:
1. Close all of your IE Windows
2. Delete the registry entry: HKCU\Software\Microsoft\Internet Explorer\IEDevTools\WindowPos
(optionally, type the following at a command prompt)

reg delete "hkcu\software\microsoft\internet explorer\iedevtools" /v windowpos

3. Open IE again.
4. Press F12 to open the dev tools

Posted in Handy Tips | Tagged: | Leave a Comment »

Check scheduled tasks in Windows XP and in Windows Server 2003

Posted by ken zheng on August 19, 2010

schtasks /query /fo LIST /v

to display the properties of the tasks. One of the properties is the last run field. If you could input the results of the query above and last result field.

The command uses the /s parameter to identify the remote computer, Reskit16,
the /fo parameter to specify the format and the /nh parameter to suppress
the column headings. The >> append symbol redirects the output to the task
log, p0102.csv, on the local computer, Svr01. Because the command runs on
the remote computer, the local computer path must be fully qualified.

schtasks /query /s Reskit16 /fo csv /nh >> \\svr01\data\tasklogs\p0102.csv

image

 

Checking the Task Status

Periodically check the status of scheduled tasks, because sometimes you may not be aware that a scheduled task did not run. Use the Detail view in the Scheduled Task window to see the following information about each task:

  • Schedule – The schedule for the task.
  • Next Run Time – The time and date that the task is next scheduled to run.
  • Last Run Time – The time and date the task was last run.
  • Status – The current status of the task.
  • Last Result – Code that indicates the result of the last run.

The Status column has the following status and description information:

  • Blank – The task is not running, or it ran and was successful.
  • Running – The task is currently running.
  • Missed – One or more attempts to run this task was missed.
  • Could not start – The most recent attempt to start the task did not work.

The Last Result column displays a completion code. You can obtain a full explanation of all Windows completion codes from MSDN, but the common codes for scheduled tasks are:

  • 0×0: The operation completed successfully.
  • 0×1: An incorrect function was called or an unknown function was called.
  • 0xa: The environment is incorrect.

Here is the Microsoft Page explains “How to troubleshoot scheduled tasks in Windows XP and in Windows Server 2003

Posted in Handy Tips | Tagged: | 1 Comment »

please wait while the installer determines …

Posted by ken zheng on October 21, 2009

Windows Installer doesn’t finish determining disk space requirements, you can run the following command for installation.

msiexec /package /qr

Posted in Handy Tips | Tagged: | Leave a Comment »

Scott Hanselman’s 2009 Ultimate Developer and Power Users Tool List for Windows

Posted by ken zheng on October 7, 2009

It is a very useful check list to install any utility tools

http://www.hanselman.com/blog/ScottHanselmans2009UltimateDeveloperAndPowerUsersToolListForWindows.aspx

Posted in Handy Tips, Tools | Leave a Comment »

Selecting ‘No To All’ In A Confirm File Replace Dialog Box

Posted by ken zheng on October 2, 2009

This is a very useful tip. The available options are Yes, Yes To All, No and Cancel. But what if you are copying a large number of files and want to choose the non-existent ‘No To All’ option? Well simply hold in the shift key while clicking the No option and it will apply that choice to all subsequent dialogs within the current operation.

Posted in Handy Tips | Tagged: | Leave a Comment »

The service did not respond to the start or control request in a timely fashion for sql report service

Posted by ken zheng on June 11, 2009

We managed to circumvent the problem with this instrucions:

1.Click Start, click Run, type regedit, and then click OK.

2.Locate and then click the following registry subkey:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control

3.In the right pane, locate the ServicesPipeTimeout entry.

Note If the ServicesPipeTimeout entry does not exist, you must create it. To do this, follow these steps:

a.On the Edit menu, point to New, and then click DWORD Value.

b.Type ServicesPipeTimeout, and then press ENTER.

4.Right-click ServicesPipeTimeout, and then click Modify.

5.Click Decimal, type 60000, and then click OK.

This value represents the time in milliseconds before a service times out.

6.Restart the computer.

Posted in Handy Tips, SQL | Tagged: | 4 Comments »

Cannot Set Windows Background Image

Posted by ken zheng on June 3, 2009

It happens to me a few times, I can’t set my desktop image. What you need to do is go to your registry. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System, delete Wallpaper key and now you can set the background image

Posted in Handy Tips | Leave a Comment »

Corrupted applicationHost.config file in IIS 7

Posted by ken zheng on June 2, 2009

One day, when my VPC was closed unexpected, the IIS can’t restart and throw error:

The Windows Process Activation Service encountered an error trying to read configuration data from file ‘\\?\C:\Windows\system32\inetsrv\config\applicationHost.config’, line number ’0′. The error message is: ‘Configuration file is not well-formed XML’

Luckily IIS makes a backup each time you make a change. All those versions are stored in the folder C:\inetpub\history\. All you have to do is to copy a former applicationHost.config file into the C:\Windows\System32\inetsrv\config\ working directory.

Posted in Handy Tips, Sharepoint | Tagged: , | 28 Comments »

Get a copy of dll in GAC (or) add Reference to a dll in GAC

Posted by ken zheng on May 14, 2009

Today I found this blog to show you how to get dll from GAC
you can run
Dot net have a dll file Shfusion.dll which is a Assembly Cache Viewer. It is located in the following path.

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll

1. uninstall the dll using the following command in the run dialog box.

regsvr32 -u C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll

1. Now type assembly in the Run dialog box.
2. Now you will see the folder view of the GAC. copy the dll you want.

To get back to the previous state of view register the Shfusion dll using the following command

regsvr32 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\shfusion.dll

Posted in Handy Tips | 5 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 28 other followers