Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Monday, May 4, 2015 7:55 AM
Hello all!
I don't understand why an exception is thrown when I import ActiveDirectory's module :'(
Herebelow the exception :
"Attempting to perform the InitializeDefaultDrives operation on the 'ActiveDirectory' provider failed".
I would like to know what are the reasons which can make this error, in order to avoid it.
When I launch this cmdlet twice, there is no problem with the second attempt.
Thanks for your powerful help :=)
Best regards
All replies (2)
Tuesday, May 5, 2015 10:21 AM ✅Answered
Hi Tweesty,
Glad to hear the error has gone, I found this error would occur if you installed RSAT-AD-PowerShell via powershell, in this case, we need to close and open powershell console to import the AD module.
Refer to:
http://mikefrobbins.com/2011/02/17/managed-service-accounts/
If you have any powershell script issue in the future, please feel free to let us know.
Best Regards,
Anna Wang
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]
Monday, May 4, 2015 10:02 AM
I would suggest a system problem. Perhaps you are missing updates to Net.
This is not really a scripting issue. It seems to be a system error. Try a different machine to be sure your script works.
\(ツ)_/