Tag: tutorial

Active Directory Users & Computers Snap-in for Windows 7

Remote Server Administration Tools for Windows 7 with SP1 enables IT administrators to manage roles and features that are installed on computers that are running Windows Server 2008 R2, Windows Server 2008, or Windows Server 2003, from a remote computer that is running Windows 7 or Windows 7 with SP1.

The first thing to do is download and install the tool kit from Microsoft:

http://www.microsoft.com/en-us/download/details.aspx?id=7887

Next, from your control panel, turn on the Windows features as shown below:

ADUC-1

ADUC-2

SQL Date Range Examples

Today

SELECT EventTime, Event, AppTitle, AppVersion
FROM LOG_AutomatedApplicationRunTime
WHERE EventTime >= DATEADD(d, 0, DATEDIFF(d, 0, GetDate()))
ORDER BY EventTime

Past 30 Days

SELECT EventTime, Event, AppTitle, AppVersion
FROM LOG_AutomatedApplicationRunTime
WHERE EventTime < DATEADD(day, – 30, GETDATE())
ORDER BY EventTime

Office 2010 spell check does not work

Problem:

Spell check does not work in Office 2010.  Intellisense does not detect incorrectly spelled words and manually running spell check does not work either.

Solution:

  1. Click on Office Button | Word Options | Add-Ins | Manage: Disabled Items. If you see any disabled items that relate to spelling, try enabling them.
  2. If the previous suggestion doesn’t help, then:
    a. Close Word and any other open applications.
    b. Click on Start | Run | Open and type “regedit” (without the quotation marks).
    c. If the following key exists, delete it.
    HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\Proofing Tools\1.0\Overrided.
    d. Exit the Registry Editor.
    e. Restart your computer.

NOTE TO SUPPORT STAFF:  The Windows 7 registry editor will prompt for an administrator password.  It will show the HKEY_CURRENT_USER tree for the user credentials provided.  Have the non-admin provide his or her credentials or you will not see the correct tree.

Pasted from <http://answers.microsoft.com/en-us/office/forum/office_2010-word/office-2010-spellcheck-is-not-working/df78d1af-1d42-4c7f-aed3-571997e6323d>

Defining ASP.NET 4.0 as Application Pool on IIS 7

I was trying to move my local website to to Windows 7. The application must run ASP.NET v4.0 as the application pool within IIS. This is how I was able to get it working.

  • Open your command prompt (Windows + R) and type cmd and press ENTER.  You may need to start this as an administrator if you have UAC enabled. To do so, locate the exe (usually you can start typing with Start Menu open), right click and select “Run as Administrator”
  • Type cd C:WindowsMicrosoft.NETFrameworkv4.0.30319 and press ENTER.
  • Type aspnet_regiis.exe -ir and press ENTER again.
    • If this is a fresh version of IIS (no other sites running on it) or you’re not worried about the hosted sites breaking with a framework change you can use -i instead of -ir. This will change their AppPools for you and steps 5-on shouldn’t be necessary.
    • at this point you will see it begin working on installing .NET’s framework in to IIS for you
  • Close the DOS prompt, re-open your start menu and right click Computer and select Manage
  • Expand the left-hand side (Services and Applications) and select Internet Information Services
    • You’ll now have a new applet within the content window exclusively for IIS.
  • Expand out your computer and locate the Application Pools node, and select it. (You should now see ASP.NET v4.0 listed)
  • Expand out your Sites node and locate the site you want to modify (select it)
  • To the right you’ll notice Basic Settings… just below the Edit Site text. Click this, and a new window should appear
  • Select the .NET 4 AppPool using the Select... button and click ok.
  • Restart the site, and you should be good-to-go.

(You can repeat steps 7-on for every site you want to apply .NET 4 on as well).

Set Default Enter Button in ASP.NET

I recently had to define a default Enter button on an ASP.NET page but could not use the Form field because it was inherited from a master page.  I eventually discovered that this can be done by defining the button in a panel as shown below.

<asp:Panel runat=”server” DefaultButton=”btnSearch”>
..
<asp:Button ID=”btnSearch” runat=”server” Text=”Search” />
..
</asp:Panel>

Use  txtSearch.Focus() to set focus on the default field (in this case txtSearch).