Backup with PowerShell in Windows 2012


1 Open an elevated PowerShell window. (You must be a member of either the Administrators or Backup Operators group to perform these steps.)

2 Configure your script execution policy to allow untrusted scripts by typing the following and choosing Yes when prompted:

Set-ExecutionPolicy Unrestricted

3 Now input the following PowerShell script while making sure to change the values for New-WBBackupTarget and Get-WBVirtualMachine to something that’s relevant to your own environment:

# Create a New Backup Policy

$BackupPolicy = New-WBPolicy

# Specify a Target

$BackupTarget = New-WBBackupTarget -VolumePath F:

# Add the target to your policy

Add-WBBackupTarget -Policy $BackupPolicy -Target $BackupTarget

# Specify your virtual machine name

$VMs = Get-WBVirtualMachine | where vmname -like “ws2012r2*”

Add-WBVirtualMachine -Policy $BackupPolicy -VirtualMachine $VMs

# Configure the schedule

$BackupTime = [datetime] “23:00”

Set-WBSchedule -Policy $BackupPolicy -Schedule $BackupTime

# Activate the policy

Set-WBPolicy -Policy $BackupPolicy -AllowDeleteOldBackups

4 Once the script runs, your backup policy will be confi gured to run at the scheduled time, and you can view the job from inside the Windows Server Backup console.


Active Directory Trust

Active Directory Trust relationship is a logical link which allows a domain to access another domain, or a forest to access another forest. Trusts which are created automatically are called as implicit Trusts and the trusts which are created manually are called as Explicit Trusts.

The following are the characteristics of Windows Trusts.

  • Active Directory Trusts can be created manually (explicitly) or automatically (implicitly).
  • Active Directory Trusts can be either transitive or non-transitive. A transitive trust extends the trust relationships with other domains and a nontransitive does not allow the trust to flow to any other domains in the forest.
  • Active Directory Trusts can be one-way or two-way.

Active Directory Trust Types

Parent-child Trust: Parent-child Trust is an implicitly established, two-way, transitive trust when you add a new child domain to a tree.

Tree-root Trust: Tree-root Trust is an implicitly established, two-way, transitive trust when you add a new tree root domain to a forest.

Shortcut Trust: Shortcut Trust is an explicitly created, transitive trust between two domains in a forest to improve user logon times. Shortcut Trust will make a trust path shorter between two domains in the same forest. The Shortcut Trust can be one-way or two-way.

External Trust: External Trust is explicitly created, non-transitive trust between Windows Server 2003 domains that are in different forests or between a Windows Server 2003 domain and Windows NT 4 domain. The External Trust can be one-way or two-way.

Realm Trust: Realm Trust is explicitly created transitive or non-transitive trust between a non-Windows Kerberos realm and a Windows Server 2003 domain. This trust helps to create trust relationship between Windows Server 2003 domain and any Kerberos version 5 realm. The Realm Trust can be and one-way or two-way.

Forest Trust: Forest Trust is explicitly transitive (between two forests) created trust between two forest root domains. The Forest Trust can be one-way or two-way.

(adsbygoogle = window.adsbygoogle || []).push({}); //--> Feedjit Flag Counter