Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to make script run for anyone?

$
0
0

Hello, I have a working PS script.  It will prompt the user for a computer name and the computer named that gets entered will then be moved to an "inactive OU" in AD.   My issue is my script uses the Quest PowerShell snapin.  So using PowerShell ISE I need to execute the following just to run it.

 

set location c:\

Add-PSSnapin quest.activeroles.admanagement

 

How do I automate this or can I embed this into a .ps1 script?  I need many different people to be able to run this script and I need it to be simple.  I'd like a compiled .EXE if possible.

 

Thanks. 


Viewing all articles
Browse latest Browse all 6937

Trending Articles