Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
338 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 2000 total points
ID: 35023068
if(get-PSSnapin Quest.ActiveRoles.ADManagement) {write-host Quest Tools are installed} else {Write-Host "No Quest Tools are installed"}
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Measuring Server's processing rate with a simple powershell command. The differences in processing rate also was recorded in different use-cases, when a server in free and busy states.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

972 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