Schedule Disk Cleanup – Windows 7

It’s always a good idea to run regular maintenance tasks like Disk Cleanup on your Windows machine to help keep it running smoothly. Today we take a look at how to schedule a basic Disk Cleanup task, and how to use command line switches for a more advanced setup.

Schedule Disk Cleanup Basic

Windows includes some handy tools to help keep your machine operating smoothly. One such tool is Disk Cleanup that can remove temp and old files to help you reclaim some hard drive space. You might want to set it up to run weekly or monthly depending on what works best for you. To schedule Disk Cleanup to run on a regular basis we need to schedule a task. For this example we’re using Windows 7, but the steps are essentially the same in Vista as well.

Click on the Start Menu and enter task scheduler into the search box and hit Enter.

 

30disk thumb Schedule Disk Cleanup – Windows 7

The Task Scheduler opens and you’ll want to click on Action then select Create Basic Task.

31disk thumb Schedule Disk Cleanup – Windows 7

The Create Basic Task Wizard comes up and from here type in a name for the task and a description then click Next.

32disk thumb Schedule Disk Cleanup – Windows 7

Now select how often you want Disk Cleanup to run…Weekly, Daily, Monthly, One Time…etc. There is not right or wrong answer to how often you run it. It’s completely up to you and you might want to try out some different schedules. In this example we’re going to select weekly.

33disk thumb Schedule Disk Cleanup – Windows 7

Since we set it up to run weekly we need to schedule it when to start, how often it reoccurs, and which day of the week to run it.

34disk thumb Schedule Disk Cleanup – Windows 7

Next under Action select Start a program

35disk thumb Schedule Disk Cleanup – Windows 7

In the Program/script field type in cleanmgr.exe

56bas thumb Schedule Disk Cleanup – Windows 7

Or you can hit browse and select Disk Cleanup which is in C:\Windows|system32\cleanmgr.exe

57bas thumb Schedule Disk Cleanup – Windows 7

Under Program/script you’ll see the path to Disk Cleanup as C:\Windows\system32\cleanmgr.exe

37disk thumb Schedule Disk Cleanup – Windows 7

Then you’re shown a summary of the scheduled task and if everything looks correct click on Finish.

38disk thumb Schedule Disk Cleanup – Windows 7

For this basic setting we scheduled it for a time when we know the computer will be in use. When it’s time for the Scheduled Task to occur it will pop up and you can run it by selecting the drive to clean up.

41disk thumb Schedule Disk Cleanup – Windows 7

Disk Cleanup starts its calculations…

42disk thumb Schedule Disk Cleanup – Windows 7

Now the results and you can choose the files to delete.

43disk thumb Schedule Disk Cleanup – Windows 7

Advanced Command Line Switches

While the above method is effective, you may not want to interact with the Disk Cleanup utility at all. Running a couple of command line switches will allow you to select what to have cleaned up and run everything automatically. To open the Command Prompt type cmd into the search box in the Start Menu and hit Enter.

51adv thumb Schedule Disk Cleanup – Windows 7

With the Command Prompt open type in the following:

cleanmgr.exe /sageset:1

That will open the Disk Cleanup Settings dialog box where you can select the items you want Disk Cleanup to delete. You’ll notice there are a lot more options here than when you go through the GUI to cleanup files.

52adv thumb Schedule Disk Cleanup – Windows 7

After selecting the files you want to be deleted in Disk Cleanup Settings click Ok to close out of the screen. The /sageset:1 command creates a registry key that saves the settings you entered.

Now go in and create your Scheduled Task like we showed previously, but this time you’ll want to add in /sagerun:1 into the Add argument field.

55adv thumb Schedule Disk Cleanup – Windows 7

Now when Disk Cleanup runs it’ll retrieve those saved settings you created with /sageset:1 and you won’t need to interact with Disk Cleanup at all. It will run automatically and clean up the files you selected in Disk cleanup Settings.

Task Scheduler Error

When you launch Task Manager in Windows 7 you might get the following error message. It tells you to hit refresh but the error keeps coming back. It doesn’t seem to negatively affect anything you schedule, but it’s quite annoying.

39disk thumb Schedule Disk Cleanup – Windows 7

From the research I’ve done on this error, there are a handful of different solutions that have worked for different people. On our system, the Disk Defrag Schedule was turned off, so we turned it back on and resolved the issue. On a separate Windows 7 system the Disk Defrag Schedule was already on (which it is by default) and turning it off cured the error. On another machine I had to turn it off then back on to fix the error message.

50disk thumb Schedule Disk Cleanup – Windows 7

Since this “rub your head and pat your belly” approach worked we didn’t try any other possible fixes. If you find it doesn’t work or have found another solution let us know in the comments.

Conclusion

If you use the advanced switches to run Disk Cleanup it actually offers a lot more choices. In the /sageset:1 switch, “1” is just an arbitrary number. You can enter any number you want, but make sure /sagerun:”x” corresponds to the number you used in /sageset:”x”. So you can customize the switches for different types of files you want to clean in Disk Cleanup Settings.

For example, maybe you only want to clean Temp Internet files during a cleanup session, then you could do /sageset:1 and /sagerun:1 for that. Then if you want to clean up all files you could use /sageset:10 and /sagerun:10 for that. The switches give you more flexibility in the types of files that are deleted during the Disk Cleanup session. Whichever method you use, or if you just want to run it manually, running Disk Cleanup will keep your drive free of unwanted files.

  • Share/Bookmark
Posted in Secuirty | Leave a comment

Troubleshoot Connection Issues with WHS

If you’re experiencing slow connections or none at all to your Windows Home Server, a good way to help diagnose issues is with the Windows Home Server Toolkit. Today we take a look at the toolkit and see how it can help you get your connections back.

Windows Home Server Toolkit Install

The WHS Toolkit is an easy to use utility that will help you find out what is going wrong if computers aren’t connecting to your home server. Simply download and install the toolkit on any of the machines on your network that aren’t connecting properly.

 

1toolkit thumb Troubleshoot Connection Issues with WHS

For this example we installed the toolkit on a Windows 7 machine and after installation you’ll see it listed in the Start menu. The first thing we need to do is publish the add-in over to the Home Server.

 

2toolkit thumb Troubleshoot Connection Issues with WHS

After it’s copied over you’ll receive the following message stating that it needs to be installed on the Home Server.

4toolkit thumb Troubleshoot Connection Issues with WHS

Open up the Home Server Console and click on Add-ins then the Available tab on the right then Install.

 

5toolkit thumb Troubleshoot Connection Issues with WHS

You’ll receive a message indicating the installation was successful and that WHS Console will close.

6toolkit thumb Troubleshoot Connection Issues with WHS

WHS Console closes and you’ll see an error that connectivity has been lost… that is normal just click Ok.

7toolkit thumb Troubleshoot Connection Issues with WHS

Using Connector Troubleshooter

Now you can use the toolkit to help troubleshoot network issues. Go to Start \ All Programs \ Windows Home Server Toolkit then launch the Connector Troubleshooter.

13toolkit thumb Troubleshoot Connection Issues with WHS

The troubleshooter gathers data and tries to help diagnose connection problems. It doesn’t make changes to any settings on your computer, but does help detect issues and find solutions.

 

12toolkit thumb Troubleshoot Connection Issues with WHS

After it’s complete you’ll get a report that opens in your browser and points out any issues it found. It might point you to a driver or software that needs to be installed, a Knowledgebase article, Windows Updates…etc.

14toolkit thumb Troubleshoot Connection Issues with WHS

There might be times when you’re asked to send these logs to tech support, copy the logs to the server, or control other options. You can do so from the WHS Console under Home server support tools.

 

18toolkit thumb Troubleshoot Connection Issues with WHS

For example here we copied over the log files to the server.

20toolkit thumb Troubleshoot Connection Issues with WHS

Advanced mode

While the method above is easy and should help most people who need it, you can also run it in Advanced Mode. This allows you to see the tests that the troubleshooter performs and can give you a better idea of any potential problems. To run it in Advanced Mode go to Start \ Run type cmd into the search box and hit Enter.

 

15toolkit thumb Troubleshoot Connection Issues with WHS

Now in the Command Prompt type in the following…

cd /d “%ProgramFiles%\Windows Home Server\Toolkit”

Then at the next prompt type in…

ConnectorTroubleshooter.exe – a

16toolkit thumb Troubleshoot Connection Issues with WHS

The troubleshooter opens in Advanced Mode…click Run All Tests, enter in the server password, then get detailed information on each test that’s been performed.

17tookit thumb Troubleshoot Connection Issues with WHS

This can be used to help solve connection problems and for sending error reports to tech support. You’ll need to install the toolkit on each machine that you’re tying to troubleshoot and it runs on XP SP2 and higher. If you’re having problems connecting to your home server, this toolkit can come in very handy for beginners and advanced user alike.

Download Windows Home Server Toolkit 1.1 32-bit

Download Windows Home Server Toolkit 1.1 64-bit

  • Share/Bookmark
Posted in Secuirty | 1 Comment

Configure your PC to backup to WHS

One of the cool features of Windows Home Server is being able to set backups of the other computers on your network to the server. Today we take a look at the process of configuring a computer on your network to be backed up automatically to WHS.

Backup to WHS

To backup a computer your network, open the Windows Home Server Console and select Computers & Backup. Right-click the computer to backup and select Configure Backup.

1 thumb Configure your PC to backup to WHS

The Backup Configuration Wizard kicks off…

2 thumb Configure your PC to backup to WHS

Wait while the Configuration Wizard collects information…

3 thumb Configure your PC to backup to WHS

Choose the disks you want to backup…notice you can also choose external drives if you wish to back them up. Note that the disk needs to be formatted as NTFS, if it’s not then it won’t be displayed in the list.

4 thumb Configure your PC to backup to WHS

Now choose the folders you want to exclude from the backup. The grayed out locations are automatically excluded but you may want to remove them from the exclude list. If you want to exclude other folders click on the Add button.

5 thumb Configure your PC to backup to WHS

Now go through and select the folders to exclude from the backup. To reduce the size of your backups, you might exclude large media files and unimportant documents, pictures…etc. Make sure you don’t exclude your most important documents, pictures, and other data.

6 thumb Configure your PC to backup to WHS

After you’re done excluding folders from the backup, click Next to continue.

7 thumb Configure your PC to backup to WHS

Then you’ll have the Congratulations screen showing a summary of the backup size, the time of day backups will occur, and the backup frequency which is daily.

8 thumb Configure your PC to backup to WHS

After the backup process completes you’ll be able to see if a computer has been backed up or not in WHS Console.

9 thumb Configure your PC to backup to WHS

If you want to change the time of day backups occur, click on Settings in WHS Console then Backup. Under Backup Time you can change the start and end time to what fits your schedule.

10 thumb Configure your PC to backup to WHS

To view a backup just right-click on the computer and select View Backups.

11 thumb Configure your PC to backup to WHS

It opens the View Backups window where you can verify and manage your computer’s backups.

12 thumb Configure your PC to backup to WHS

Conclusion

This will get you started with backups and you’ll have peace of mind knowing that your computer’s data is being backed up to the server. The process is relatively simple and the main thing is to make sure the backups aren’t needlessly large with unnecessary files (such as large multimedia files). There’s a lot more administration you can do with backups, and we’ll be taking a detailed look at managing them in future posts…so stay tuned. Remember that you can download a free 30 day trial of Windows Home Server, so if you have an extra machine you can dedicate to being a server, you might want to check it out.

Download the 30 Day Trial of Windows Home Server

  • Share/Bookmark
Posted in Secuirty | Leave a comment

Manage User Accounts in WHS

Once you have your Windows Home Server set up, you’ll want to add users and control the content they have access to. Here we take a look at how to add a new user, determine their access to shared folders, and how to disable or remove a user.

Add a New User

To add a new user to Windows Home Server (WHS), open the Home Server Console and select User Accounts. A screen will pop up advising you about user accounts, allow you to enable the Guest Account, and set a password policy. To stop it from popping up every time click the box next to Do not show this message again then click Ok.

10add thumb Manage User Accounts in WHS

Now click on Add and an Add User Account screen comes up. Type in the user name, logon name, and determine if you want to enable Remote Access. Remote Access allows the user to connect to the server through the Internet. If you choose Remote Access, you can select if they have access to shared folders and home computers, shared folders only, or home computers only then click Next.

1adduser thumb Manage User Accounts in WHS

Type in a password for the user twice and make sure it meets the password requirements.

2adduser thumb Manage User Accounts in WHS

Next select the type of rights they have to each of the shared folders from Full, Read, or None.

  • Full – allows the user to create, change, and delete files in the shared folders.
  • Read – allows the user to read the files only. They cannot create, change or delete any files in the shared folders.
  • None – doesn’t allow the user any access to files in the shared folders.

3adduser thumb Manage User Accounts in WHS

The settings you chose are configured and the new account is added.

4add thumb Manage User Accounts in WHS

Now when you look at the list of users you’ll see the new account listed.

5add thumb Manage User Accounts in WHS

When a user logs on to their machine and tries to access the shared folders, they’ll be prompted to log on with the username and password you created for them.

20add thumb Manage User Accounts in WHS

If you didn’t allow the user access to a certain folder, if they try to access it, they’ll get the following Network Error message.

21add thumb Manage User Accounts in WHS

If the user only has Read rights, they can access the files but not make any changes to them. Like in this example, a user with only Read rights to the Music share, tried to delete a file and received a File Access Denied error message.

22add thumb Manage User Accounts in WHS

Passwords

If you want to keep things simple for the user you might want to make sure the password on the machine and the server account are the same. This makes it easier for them so they don’t have to type in the server password every time they want to access the shared folders. If the passwords aren’t the same, when they log on their machine they’ll see the following notification.

37pass thumb Manage User Accounts in WHS

They can click the balloon message or right-click the Home Server Console icon and select Update Password.

38user thumb Manage User Accounts in WHS

Then select the radio button next to Update password and click Ok.

35user thumb Manage User Accounts in WHS 

Now the user just needs to select Keep my password on the home server or Keep my password on this computer (whichever one they want) and type in their computer password and the password for the server and click Ok.

36user thumb Manage User Accounts in WHS

Then they’ll get a message showing it was changed successfully.

39pass thumb Manage User Accounts in WHS

Disable a User Account

Sometimes you might want to disable a user account so they can’t access files on the server. Instead of completely removing the account, an easier method is to disable it. This will temporarily prevent a user from accessing shared folders on the server. Under User Accounts right-click the user and select Disable Account.

17dis thumb Manage User Accounts in WHS

Then click on Yes when the dialog box comes up asking if you’re sure.

16dis thumb Manage User Accounts in WHS

Now when the user tries to access the shared folders on the server, they’ll get a message telling them the account is currently disabled.

25dis thumb Manage User Accounts in WHS

Remove a User Account

Sometimes you might need to remove a user account completely. Under User Accounts right-click on the user you want gone and select Remove.

13remove thumb Manage User Accounts in WHS

You’ll be prompted to keep their shared folder or remove it. If you think you might add them at a future date, you’ll probably want to keep the shared folder. In this example we’re going to remove it.

12remove thumb Manage User Accounts in WHS

Next a message comes up telling you that you’re about to remove them and in this case delete the shared folder.

14remove thumb Manage User Accounts in WHS

That’s it. Everything will be removed and when you close out of the wizard, they’ll no longer be listed under User Accounts.

15remove thumb Manage User Accounts in WHS

Manage User Account Properties

Sometimes you might need to change a user’s password or change the folders they have access to. Right-click on the user account and select Change Password if that’s all you need to do, or Properties to change folder access or other properties.

18user thumb Manage User Accounts in WHS

In the Properties window under the General tab you can change their logon name, Remote Access and Account Status.

19user thumb Manage User Accounts in WHS

Under the Shared Folder Access tab you can go through and change the type of access they have to each of the shared folders.

30user thumb Manage User Accounts in WHS

Note that any changes you make won’t go into effect until after the user logs off then back on again.

31user thumb Manage User Accounts in WHS

Conclusion

This should get you started with managing users on your home or small office network. Keep in mind that the maximum number of accounts allowed on WHS is 10…not including the Guest Account. Managing your users is a great way to administer the type of content they have access to, and preventing them from deleting important data.

  • Share/Bookmark
Posted in Secuirty | Leave a comment

Add external drive to WHS

Sometimes you might find it necessary to add additional storage to your Windows Home Server. Today we’ll take a look at how to add an external hard drive to your home server to increase storage space.

Add External Drive

Plug the external hard drive into the server. Then open up the Windows Home Server Console from another computer on the network and go to Server Storage. You should see the external drive in the list, where in this example it’s a Western Digital 1TB My Book. You’ll notice the drive status is Not Added yet.

 

1drive thumb Add external drive to WHS

To add the new drive as storage space, right-click and select Add.

 

2drive thumb Add external drive to WHS

The Add a Hard Drive Wizard kicks off.

3drive thumb Add external drive to WHS

In the next step of the wizard we want to select Add this hard drive to your server storage to increase the storage capacity of your home server. If you were adding it as a backup drive for the server you’d select the second option.

4drive thumb Add external drive to WHS

A warning screen will come up advising you that the drive will be formatted and all data lost, just click Finish to start the process.

 

5drive thumb Add external drive to WHS

Wait a few moments while the drive is formatted and prepared for the server.

6drive thumb Add external drive to WHS

That’s it! Now you have the extra storage space available to store more movies, music, video, and important data files.

7drive thumb Add external drive to WHS

Now you’ll see the drive listed with a Healthy status and there is more server storage space in the graphic too.

8drive thumb Add external drive to WHS

If you need additional storage space on your Windows Home Server, adding an additional external drive might be a simpler process than cracking open the case and adding an internal one (depending on the machine your running it on). So far while we’ve been testing it, there doesn’t seem to any latency problems while accessing files from the server. In the near future we will show you how to add an internal drive as well, and try to see compare them to see if there is a difference in performance. If you’re interested in trying out Windows Home Server they offer a free 30 day trial and we have an article up on how to set it up which you can read as well.

Download the Windows Home Server 30 Trial

  • Share/Bookmark
Posted in Secuirty | Leave a comment