Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » Powershell Scripts   (RSS)

DPM CLI Tips 'n Tricks: Powershell Basics - Part II

Tab Completion The most fascinating part of DPM Management Shell is Tab Completion of cmdlets. By learning the common verbs in Powershell (like Get, Set, Start etc.), a Windows or an Exchange admin can easily use that knowledge and learn the DPM cmdlets.

DPM CLI: Quick reference help

While using the DPM Management Shell, one would like to have a list of all cmdlets and its short help for quick reference. Also, we heard it would be useful to group the various cmdlets by the function they do – e.g. Library, Disk, Recovery or Protection
Posted by dpm | 0 Comments
Attachment(s): DPM CLI List.xls

CLI Script: Auto re-running consistency checks

Some customers had non-DPM issues, like network issues because of which consistency check (CC) jobs failed too often. For the benefit of them, we have added a script that would re-try CC until it succeeds. Note: In some cases, CC would impact the protected

DPM CLI Tips 'n Tricks: Powershell Basics

The scripts posted in this blog require knowledge of Powershell and DPM cmdlets. So we thought we would present some tips ‘n tricks to become power users! Introduction The first difference between any normal Command Line Interface (CLI) (typically, Windows

CLI Script: To recover a DPM replica volume from data stored in tape

When a disaster occurs, and you lose your replica volume for any datasource, you could re-seed the replica from the backed-up data you have in tape. This little script initializes replica from a tape recovery point. The parameters have to be customized

CLI Script: To remove all datasources in inactive protection state

This script removes all inactive datasources under a given DPM server. It provides options to remove inactive datasources on disk/tape/both. Save this as a .ps1 file and invoke it from inside the DPM Management Shell. Please contact us if you need any further assistance in running the script or face any issues. ---------------------- Start of Script --------------------------------- param([string] $DPMServerName, [string] $RemoveOption)

DPM PowerShell Script -- invoking a Consistency Check

By design, DPM 2007 should be ‘ fire and forget ’ – meaning that after initial replication, data changes will automatically and routinely replicate.  However, due to a variety of external factors, the data set may become inconsistent. 

CLI script: Create protection groups for Disk based backups

The following script creates a protection group with disk based protection, for a simple folder. It can be easily extended to add more data sources of different kinds – like Microsoft Exchange, SQL, Sharepoint, System state or Virtual Servers. The Synchronization
Posted by dpm | 0 Comments
Filed under:

CLI: Create new Recovery points on tape for all datasources in a PG

This is a sample script that will automatically create new recovery points for the entire Data source’s in a Protection Group. You can customize this easily to change script file to create recovery points on disk. Save the attached file as a .ps1 file
Posted by dpm | 0 Comments

Script: Auto-add new SQL DBs for protection

This is a sample script that will automatically add all the newly available SQL DBs in all instances for protection. You can customize this easily to change the protection policy. Save the attached file as a .ps1 file and invoke through the DPM Management

CLI Script: Job object fundamentals

In DPM, Jobs are objects that encapsulate the notion of a (typically) long running operation. Unfortunately though DPM v2 does not have cmdlets to directly monitor jobs, still a large number of cmdlets output jobs and it is useful to be able to interact
Posted by dpm | 0 Comments

CLI Script: Copy latest point in time of SQL DB to a folder

This script copies the latest recovery point of the specified SQL databases to the destination folder on a production server. Save this script as a .ps1 file and run it. Usage and examples of scripts can be found by calling them with ‘-?’ or ‘-help’ from
Posted by dpm | 0 Comments

CLI Script: Recover to latest point in time for a SQL DB

This script restores the latest recovery point of the specified SQL databases. Save this script as a .ps1 file and run it. Usage and examples of scripts can be found by calling them with ‘-?’ or ‘-help’ from inside DPM Management Shell. -------------------------------------
Posted by dpm | 0 Comments

CLI Script: Force mark tape as free

This script allows a user to mark any tape as free so that it is available for protection by DPM. Tapes which have unexpired data cannot be marked as free from the GUI but sometimes (esp. while testing) users need to override this behaviour. Save this
Posted by dpm | 0 Comments

CLI Script: Run consistency check on invalid datasources

This script runs a consistency check job on all the protected datasources that are in the invalid state and tracks the set of jobs while giving progress on the screen. Save this script as a .ps1 file and run it. Usage and examples of scripts can be found
More Posts Next page »
 
Page view tracker