Archive

Archive for the ‘Microsoft’ Category

Example Backup Batch Script

February 14th, 2012 Comments off

Had to whip up a batch script to backup a data location on a Server 2003 box to an external USB hard drive. Normally this is a pretty simple task, however the client wanted the backup to run nightly and to clean out existing backups older than 30 days. I figured I would share an example of the script here. I am sure there are many better ways to script this, but it was kind of spare of the moment on-site. Feel free to add corrections/suggestions in the comments.

@echo off

REM Delete backups older than 30 days
forfiles /p C:\destination /s /m *.* /d -30 /c “cmd /c del @path”
for /f “delims=” %%d in (‘dir C:\destination /s /b /ad ^| sort /r’) do rd “%%d”

REM Perform backup
set folder=%date:~10,4%%date:~4,2%%date:~7,2%
mkdir C:\destination\%folder%
xcopy /e /c /k /o C:\source C:\destination\%folder%

To get the script to run nightly I just created a “Scheduled Task” for it.

Categories: Microsoft Tags:

How to Reset TCP/IP stack in Windows

January 14th, 2012 Comments off

I have received a lot of questions lately about resetting the TCP/IP stack in Windows 7. The command is actually the same as it was in Windows XP. Just open a command line window and type the following:

netsh int ip reset resetlog.txt

You will then need to reboot to make sure the changes take effect.

Categories: Microsoft, Networking Tags:

How to add/edit OEM information in Windows 7

June 16th, 2011 Comments off

How to add/edit OEM information in Windows 7

Whether you are a computer tech selling custom built computers or an IT administrator for a large corporation there are going to be times when it nice to be able to modify the OEM information for a computer in Windows. If you are building a computer for a customer it is nice to have your information for contact purposes. If you are adding a computer to a large corporate network you may want to edit the OEM information for simpler network management. Regardless of your reasons doing this task is much different than in previous versions of windows. In this article I will show you how to accomplish this in Windows 7.

Read more…

Categories: Microsoft Tags:

Windows Shell vulnerability patched by Microsoft

August 3rd, 2010 Comments off

Microsoft released an emergency patch on Monday. The patch was to fix a known vulnerability in the windows shell that allowed remote code execution via windows shortcuts (.lnk). Microsoft rated this patch as critical and released it immediately rather than waiting until their regular Patch Tuesday.

[Microsoft Security Advisory]