DPM has a handy function during client provisioning that allows you to automatically allocate a quota size. Basically, it takes the used size on for a data source, multiplies it by three, and then divides that by two which give you your quota (say you are setting up a data source that is the C drive [...]
Frequently data sources can end up in a inconsistent state which will cause the job to fail until a consistency check has happened. Inconsistent data sources typically are caused by reboots in the middle of a syncronization or general server unavailability during a syncronization period. You can set consistency checks to run once every 24 hours on a [...]
Powershell has a number of security restrictions out of the box to keep malicious code from running and also (I would assume) to protect the user. The first thing you will notice is that powershell will not run a script without the full path to the script defined. This means that even if you are in [...]
Sometimes you need to build a clause that has multiple cases to meet multiple requirements. This is how you do it:
Case where multiple requirements need to be met:Â
1
Where-Object {$_.Name -like "something" <strong>-and</strong> $_.Volume -like "something"}
Case where any of the defined requirements can be met (as long as at least one is met):
1
Where-Object {$_.Name -like "something" <strong>-or</strong> [...]
The default Windows environment variables acts like a drive within powershell. You can poll the available Windows environment variables just like you were getting the contents of a drive or folder. Open a PowerShell console and run the following:
1
2
Set-location env:\
get-childitem
This will return all of the local environment variables, similar to the following:
Name                          Value
—-Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â —–
Path                          C:\Program Files\PHP\;C:\Program [...]