Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 343
  • Last Modified:

How to verify on a Windows 2k3 server that Quest Active dir tools have been installed or not?

Experts,

         I only want this piece of code to run if the Quest Active dir tools have not already been installed. How can I verify this information? A registry check?

Thanks, missymadi
#Install Quest Active Directory CMDlets
Write-Host "Installing Quest Active Roles Management Shell for Active Directory Tools. Please wait.."
Add-PSSnapin Quest.ActiveRoles.ADManagement
Write-Host "Quest Active Roles for Active Directory is now installed on your system.

Open in new window

0
missymadi
Asked:
missymadi
1 Solution
 
NavdeepCommented:
if(get-PSSnapin Quest.ActiveRoles.ADManagement) {write-host Quest Tools are installed} else {Write-Host "No Quest Tools are installed"}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now