PowerShell script exchange
Post Reply
user12345678
Lurker
Posts: 2
Liked: never
Joined: May 05, 2021 8:45 am
Full Name: user
Contact:

How to restore AD objects in powershell?

Post by user12345678 »

I'm trying to use the Restore-VEADItem cmdlet to perform AD restore.
When I try to do a restore of a deleted object with the -RestoreDeletedObjects parameter, I get an error that says:
Restore-VEADItem: object reference not set to an instance of an object.
When I try to use it with the -RestoreChangedObjects parameter instead, the command "works", the output says it's restoring the items, but in reality, the job is stuck and not being completed.
When I try to perform the restore from the GUI Console it works. Any help?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: How to restore AD objects in powershell?

Post by veremin »

Kindly, provide the whole script, so we can double check whether everything is written properly. Thanks!
user12345678
Lurker
Posts: 2
Liked: never
Joined: May 05, 2021 8:45 am
Full Name: user
Contact:

Re: How to restore AD objects in powershell?

Post by user12345678 »

oleg.feoktistov
Veeam Software
Posts: 1912
Liked: 635 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: How to restore AD objects in powershell?

Post by oleg.feoktistov »

I have tested your script in both v10 and v11. It has worked just fine. I'd advise you to contact our support and share the case id here for further follow-up. Thanks!
Post Reply

Who is online

Users browsing this forum: caleb.boyd and 18 guests