Print

User Account Management

Written by Daniel Mundy on Tuesday, 02 November 2010 16:53.

Command Line Account Management

 

Print

Profile Folder Locations in Windows

Written by Daniel Mundy on Tuesday, 02 November 2010 09:00.

Windows XP

Individual User

  • Desktop: C:\Documents and Settings\%username%\Desktop
  • Documents: C:\Documents and Settings\%username%\My Documents
  • Favorites: C:\Documents and Settings\%username%\Favorites
  • Start Menu: C:\Documents and Settings\%username%\Start Menu

All Users

  • Desktop: C:\Documents and Settings\All Users\Desktop
  • Documents: C:\Documents and Settings\All Users\Documents (shows as Shared Documents)
  • Favorites: C:\Documents and Settings\All Users\Favorites
  • Start Menu: C:\Documents and Settings\All Users\Start Menu

 

Windows 7 and Vista

Individual User

  • Desktop: C:\Users\%username%\Desktop
  • Documents: C:\Users\%username%\Documents
  • Favorites: C:\Users\%username%\Favorites
  • Start Menu: C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu
  • Libraries: C:\Users\daniel\%username%\Roaming\Microsoft\Windows\Libraries

All Users

  • Desktop: C:\Users\Public\Desktop
  • Documents: C:\Users\Public\Documents
  • Favorites: C:\Users\Public\Favorites
  • Start Menu: C:\ProgramData\Microsoft\Windows\Start Menu
  • Libraries (Windows 7 Only): C:\Users\Public\Libraries
Print

Self Logging Batch Script

Written by Daniel Mundy on Friday, 29 October 2010 15:23.

 

@echo off

set datestamp=%date:~-4%%date:~7,2%%date:~4,2%%time:~0,2%%time:~3,2%%time:~6,2%

setlocal

@REM *** START: Turns logging on ***
if "%~1" == "NOWLOGGING" goto NowLogging
set SchedulesLogFile=%temp%\%~n0_%datestamp%.txt
%0 "NOWLOGGING" > "%SchedulesLogFile%" 2>&1
goto :EOF
:NowLogging
@REM *** END: Turns logging on ***


@rem Guts of batch file...
echo [%date% %time%] starting...
@echo on

net stop "ShadowProtect ImageManager"
c:\scripts\sleep.exe 6
net start "ShadowProtect ImageManager"

@echo off
echo [%date% %time%] ending...

Source: http://makemsi-manual.dennisbareis.com/logging_whole_batch_file_execution.htm

Print

Microsoft Dot Net Installers

Written by Daniel Mundy on Tuesday, 05 October 2010 09:58.

Here is a collection of links to the standalone Microsoft Dot Net (.NET) installers.

 

.NET Framework 4.0 Setup

.NET Framework 3.5 Setup

.NET Framework 3.5 Setup Service Pack 1

.NET Framework 3.0 Setup

.NET Framework 2.0 Setup

.NET Framework 1.1 Setup

More Information

Source: http://www.lazydesis.com/software/215640-all-dot-net-framework-offline-standalone-installers-direct-links.html

Print

Changing the IP Address in SBS 2008

Written by Daniel Mundy on Friday, 17 September 2010 17:15.

There is no longer a wizard for changing the IP address in SBS 2008, but the process is still very simple.

   1. Start > ncpa.cpl
   2. Right click on the server NIC and select Properties
   3. Double click on Internet Protocol Version 4 (TCP/IPv4)
   4. Configure the new IP address and click OK, OK, etc.
   5. Open the SBS Console
   6. Go to the Network tab, and then the Connectivity tab
   7. Click the Fix My Network link
   8. Run through the wizard and click Finish when complete
   9. Confirm there are no unexpected errors

That should be it, but read on...

 

Check DNS and DHCP

There may be a root DNS A record pointing to the old server IP in the SBSDomain Forward Lookup Zone - delete it.

Also double check that the DHCP scope options are set correctly.

Print

Automating a Faster SBS 2008 Shutdown

Written by Daniel Mundy on Wednesday, 08 September 2010 09:59.

SBS 2008 takes a long time to shut down. The reason is that Active Directory (AD) shuts down before Exchange, which relies on AD... It waits a long time and finally times out, allowing the shutdown process to continue. (extremely simplified - see Wayne Small's blog for a more complete explanation)

 

To fix it, we run a script that shuts down Exchange at the start of the shutdown process.

Enter the following lines into a script, and save it as (eg.) C:\Scripts\fast-shutdown.cmd

net stop msexchangeadtopology /y
net stop msftesql-exchange /y
net stop msexchangeis /y
net stop msexchangesa /y
net stop iisadmin /y

Now use Group Policy to run the script automatically:

  1. Open the Group Policy Management Console
  2. Create a new Group Policy called Faster SBS Shutdown
  3. Link the policy object to the Domain Controllers OU
  4. Call C:\Scripts\fast-shutdown.cmd using the following policy setting: Computer Configuration\Policies\Windows Settings\Scripts\Shutdown
Print

Redirecting an Entire Website Using .htaccess

Written by Daniel Mundy on Tuesday, 31 August 2010 00:00.

When I decided to change the domain for my Joomla website mundy.net.au to blog.mundy.co, I needed a way to ensure that all traffic from my old URL was not lost - I get quite a few hits from Google. 

 

I used the following .htaccess file to redirect mundy.net.au to blog.mundy.co. If both olddomain and newdomain point to the same server filespace, then you will need to tell this rewrite rule not to redirect newdomain to itself, which it will do unless told otherwise.The added RewriteCond prevent the rule from being applied unless the requested domain is NOT "www.newdomain.com"

Options +FollowSymLinks
RewriteEngine on
#
RewriteCond %{HTTP_HOST} !^blog\.mundy\.com
RewriteRule (.*) http://blog.mundy.co/$1 [R=301,L]
Print

Adding Additional Email Addresses in SBS 2008

Written by Daniel Mundy on Saturday, 28 August 2010 18:44.

  1. Start up the Exchange 2007 management console
  2. Click on Recipient Configuration > Mailbox
  3. Double click on the desired user
  4. Click on the E-Mail Addresses tab
  5. Click on the green plus (+) tab and enter the additional email address.

 

Print

How to Install a Third Party SSL Certificate on SBS 2003

Written by Daniel Mundy on Wednesday, 25 August 2010 13:50.

The following steps outline how to install a third party SSL certificate on your SBS 2003 server. First, you'll need to generate a Certificate Signing Request, or CER. You'll use this to sign up for an SSL certificate and then install the certificate in your server using the IIS Admin console.

  1. Determine the common name for remote access - this is the externally accessible name, eg remote.mundy.co (hint: this is the same address people use for RWW or Exchange OWA)
  2. Make sure the Administrative contact for that domain has a proper e-mail address that you can access. Usually This email address is being protected from spambots. You need JavaScript enabled to view it.
  3. Open the Server Management console
  4. Go to Advanced Management > Internet Information Services > [your server] > Web-Sites > Default Web-Site
  5. Right click on Default Web-Site and select Properties
  6. Open the Directory Security tab and select Server Certificate
  7. Click Next and select "Remove the Current Certificate", then follow the prompts to remove the certificate
  8. Go back into the Server Certificate option and select "Create New Certificate"
  9. Select "Prepare the Request Now, but send it later" and click Next
  10. Enter you Organization Name (your Company name) and Organizational Unit. Record these details in case you are quizzed by the CA later.
  11. Enter the sites common name -
  12. Click Next and fill in the required Geographic Information
  13. Save the request to a file
This will generate a CSR file, or Certificate Signing Request. Open this file in Notepad and copy the information to the clipboard.
Apply for an SSL certificate (you can get one at mundyhosting.com!) and enter the CSR. Several emails will be received by the Administrative Contact, there will be two important ones - a confirmation that you must click on, and then the certificate itself. Save the certificate to the server with a filetype extension of .cer
To install the certificate on your server:
  1. Open the Server Management console
  2. Click Internet and E-Mail
  3. Click Connect to the Internet
  4. On the Welcome page, click Next
  5. On the Connection Type page, click Do not change connection type, and click Next
  6. On the Firewall page, click Do not change firewall configuration, and click Next
  7. On the Web Server Certificate page, click Use a Web server certificate from a trusted authority, and click Browse
  8. Select the certificate.cer file you saved earlier, and click Next
  9. On the Internet E-Mail page, click No not change Internet e-mail configuration, and click Next
  10. On the Completing the Configure E-mail and Internet Connection Wizard page, click Finish
Browse to the external address, eg https://remote.mundy.co/remote and confirm that you don't get a security warning.