jump to navigation

Creating free space on harddisks partitions 27 November 2009

Posted by it2tp in Windows, Windows Server.
add a comment

You probably know the situation: you need to install some important updates, service packs, … but your C: drive has not enough free space left.

On the other hand, the D: partition (or another one) has plenty of free space. A possible solution is simply to move some folders.

You could do it even more smartly by first moving the folders to the other partition and then create a junction point again on the C: partition. This way it looks to the operating system like the folders/files are still on the same location. You could do this for example for the folder C:\Windows\SoftwareDistribution\Download (after stopping the service Automatic Updates).

A good and simple tool for creating junction is HardLink Shell Extension, see http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html#contact.

First you have to pick up the source folder as the source:

pickjunction

And then you can drop it as a Junction.

dropjunction

It’s as simple as that (at least with this tool).

Sysprep in Windows Server 2008 R2 18 September 2009

Posted by it2tp in Windows Server, Windows Server 2008 R2.
Tags:
add a comment

Sysprep has just become easier in Windows Server 2008 R2. The sysprep file is now already preinstalled by default. You can find it in Windows\System32\Sysprep.

Just launch the Sysprep application in this folder, check the Generalize check box, select Shutdown, and after the machine has shut down you can use it as a base image.

After reboot the well known Windows mini setup will start.

Different ways of finding Windows uptime 18 September 2009

Posted by it2tp in Windows, Windows 7, Windows Server, Windows Server 2008, Windows Vista.
Tags:
add a comment

1) Using Event Viewer

Filter on Event ID 6005.

The date and time when the Event ID 6005, The Event log service was started, is logged is the time when the Windows system was started.

Advantages:

  • You can see all startup times
  • Can also be used on remote systems.

2) From command line

Go to Start, Run. Type Cmd (Enter). On the command prompt type: net stats srv

Look for the text: Statistics since … For example: Statistics since 18/09/2009 9:34:09, meaning the Windows system was started on 18/09/2009 at 9:34:09.

You can also use the FIND command to retrieve only the line containing the time when the machine started.

net stats srv | find /i “statistics since”

See also http://support.microsoft.com/kb/555737

Scheduled server – or PC reboot 6 August 2009

Posted by it2tp in Windows, Windows Server.
add a comment

Create a batch file (call it Reboot.cmd for example) with the following content:

Shutdown /r /f

Create a Scheduled Task, where you call this Reboot.cmd, Run As a user with local administrator rights, set a Schedule, and you are done.

Note: check if the Shutdown command is available on the Windows version you are using (Cmd, Shutdown /?).  For older Windows versions you may not find the Shutdown command.  You can find it in the Windows Resource Kit.  See http://www.robvanderwoude.com/shutdown.php for more information.

GPO to prevent event log to become too large 26 June 2009

Posted by it2tp in Active Directory, Windows Server.
1 comment so far

You can create a GPO to avoid that the application, security and system log become too large.

This is a Computer policy: Computer Configuration, Windows Settings, Security Settings, Event Log

- Retention method for application log, Overwrite events as needed.
- Retention method for security log, Overwrite events as needed.
- Retention method for system log, Overwrite events as needed.

ADModify .net: CDOEXM Modifications disabled 19 June 2009

Posted by it2tp in Active Directory, Windows Server.
add a comment

It is not possible to modify settings from “Terminal Services Profile”; everything is grayed out, and “CDOEXM Modifications disabled” is displayed.

Solution: run ADModify from Windows Server 2003.

Bulk modification in Active Directory and more: ADModify .net 19 June 2009

Posted by it2tp in Active Directory, Windows Server.
add a comment

No this is not a new tool. I just needed to do some bulk modifications on AD, and wanted to find back some variables. You can find information on all this in this Microsoft Technet article: http://technet.microsoft.com/en-us/library/aa996216(EXCHG.65).aspx.

ADModifyNet

IIS 6.0 FTP logging 11 June 2009

Posted by it2tp in Windows Server.
add a comment

Logfiles by default can be found in %windir%\system32\Logfiles. Without further customization outgoing requests can be found in these logfiles.

Recently I had issues with incoming FTP requests, which are more difficult to pinpoint. With TCPView from Sysinternals I could find which machine caused this, which helped me solving the problem.

How to switch on auditing of logon events 10 June 2009

Posted by it2tp in Windows Server.
Tags:
add a comment

Go to Administrative Tools, Local Security Policy (on domain controllers: Domain Controller Security Policy).

(more…)