Solved

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

Posted on 2011-03-02
1
317 Views
Last Modified: 2012-05-11
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
Comment
Question by:missymadi
1 Comment
 
LVL 12

Accepted Solution

by:
Navdeep earned 500 total points
Comment Utility
if(get-PSSnapin Quest.ActiveRoles.ADManagement) {write-host Quest Tools are installed} else {Write-Host "No Quest Tools are installed"}
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now