Skip to main content

Featured

Health Supplements you should be taking

Hello once again! Here is a list of supplements you should likely be taking. Note that this is not medical advice, and some supplements are tolerated better by some people than others due to health / genetic factors. Generally, taking excessive amounts of supplements do not increase benefits, so stick to reasonable dosages. There is some variation between male and female in terms of requirements, I'm more familiar with male physiology and supplementing. There are some supplements I will mention that are not OTC, or are special prescription, which I may or may not take myself, and are not freely available. These supplement types are generally more expensive and less accessible, but I will discuss them also. Ideally you would start supplementing in your mid to late 20's. Most people only discover vitamins/supplements later in life when they begin to feel run-down, and by that point a lot of 'damage' has already been done to your body, which is accelerated with life

Setting Restore Point settings, and creating a restore-point in Windows 7 using Powershell

So I had a need to setup shadow storage parameters for system Restore Points on Windows 7. Here's how I did it in Powershell (v2.0):

Firstly you will want to Disable, run your script then re-enable UAC if you are scripting this, this info is in another article.
You will also (from memory) need to be running Powershell as an Administrator or with elevated priviledges to use these commands

Here are the scriptable items:

& C:\Windows\System32\vssadmin list shadowstorage
& C:\Windows\System32\vssadmin Resize ShadowStorage /For=C: /On=C: /MaxSize=25G
& C:\Windows\System32\vssadmin list shadowstorage


list shadowstorage will give you a listing obviously of existing settings:


vssadmin 1.1 - Volume Shadow Copy Service administrative command-line tool (C) Copyright 2001-2005 Microsoft Corp. Shadow Copy Storage association For volume: (C:)\\?\Volume{c3c8ac5d-1ef7-11e2-8dcb-64700200c342}\ Shadow Copy Storage volume: (C:)\\?\Volume{c3c8ac5d-1ef7-11e2-8dcb-64700200c342}\ Used Shadow Copy Storage space: 18.517 GB (3%) Allocated Shadow Copy Storage space: 18.889 GB (4%) Maximum Shadow Copy Storage space: 20 GB (4%) Resize ShadowStorage will perform the actual Resize on the drive volume you defined, to the MaxSize you define. In this case 25GB. It sets aside that amount of shadow storage in the background for use with Restore Points.
The next command does not require leading ampersands, as it is a recognised Powershell applet command. This actually enables system restore in the volume:

Enable-ComputerRestore C:
Finally, the same type of command in Powershell, to actually make a restore point. It requires a description and will prompt if you do not supply one in a script.

CheckPoint-Computer -Description "Powershell Scripted Restore Point!"

And that is how you size / enable and create restore points via Powershell scripting. ;)

Comments

Popular Posts