You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The path passed to copy should not include drive letter
I guess there should be some check if the supplied ntdsSource is on the C drive, and if not, there needs to be taken a separate shadow copy of that. Further, the ntdsSource variable needs to be modified so the drive letter is removed, so that the command becomes:
I noticed that when passing a path to the NTDS.dit file, using the
ntdsSource
argument, it fails when trying to copy from the shadow.Take for instance the supplied example (https://github.com/samratashok/nishang/blob/master/Gather/Copy-VSS.ps1#L27):
This fails with the following:
This due to the script first making a copy of the C drive (https://github.com/samratashok/nishang/blob/master/Gather/Copy-VSS.ps1#L53):
Then later, it tries to copy from the supplies
ntdsSource
(https://github.com/samratashok/nishang/blob/master/Gather/Copy-VSS.ps1#L70), which by using example above will look like this:This fails because of two things:
I guess there should be some check if the supplied
ntdsSource
is on the C drive, and if not, there needs to be taken a separate shadow copy of that. Further, thentdsSource
variable needs to be modified so the drive letter is removed, so that the command becomes:I ended up running the commands manually, which doesn't take much effort.
Just a heads up :-)
The text was updated successfully, but these errors were encountered: