< Back

Mount-ActiveDirectorySnapshot

Mon Jan 13, 2020 5:57 am

NAME Mount-ActiveDirectorySnapshot



SYNOPSIS

Mount an Active Directory snapshot.





SYNTAX

Mount-ActiveDirectorySnapshot [-Identity] <String> [-Port] <Int32> [-WhatIf] [-Confirm] [<CommonParameters>]





DESCRIPTION

Mount an Active Directory snapshot and use dsamain.exe to load it.





PARAMETERS

-Identity <String>

The identity of the snapshot to mount



Required? true

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-Port <Int32>

The port to use in order to query the mounted database



Required? true

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-ActiveDirectorySnapshot



Identity : {CAE74093-6422-42D5-AB1B-988C418E1560}

Date : 17/6/2017 11:42:37 ?????????

SetID : {7772C6CE-F375-49B9-BC28-16F965B4E55C}

Mounted : False

MountPoint :

Server : DC1



PS C:\\> Mount-ActiveDirectorySnapshot -Identity "{CAE74093-6422-42D5-AB1B-988C418E1560}" -Port 33389



Mount the Active Directory snapshot with id {CAE74093-6422-42D5-AB1B-988C418E1560} on port 33389









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-ActiveDirectorySnapshot | Sort-Object -Property Date -Descending | Select-Object -First 1 |

Mount-ActiveDirectorySnapshot -Port 33389 -Verbose



VERBOSE: Performing the operation "Mount Active Directory snapshot" on target

"{CAE74093-6422-42D5-AB1B-988C418E1560}".

VERBOSE: Loading database: C:\\$SNAP_201706171142_VOLUMEC$\\Windows\\NTDS\\ntds.dit

VERBOSE: Mounting database on port 33389

VERBOSE: In order to dismount the database, close dsamain and then run "Dismount-ActiveDirectorySnapshot



Mount the latest Active Directory snapshot.











RELATED LINKS