Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
332 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

808 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