Posts Tagged ‘ISE’

Get a list of Script Variables inside ISE

Saturday, December 27th, 2014

Get-ScriptVariables.ps1 is my take on a variable inventory script I found on Powershell.com.  I changed the function name, as Get-Variable already in use, gave a unique name to function variables to exclude, added other system variables, and added example to show current values with enumeration.

Script Text

Enabling ISE and ActiveDirectory module on Windows 2008 R2 Member Server

Friday, August 23rd, 2013

So, I wrote a pretty cool script and sent it to a co-worker.  I wrote it on a Windows 7 PC with the RSAT tools installed.  My friend tried to run it on a 2008 R2 server with PowerShell 3.0, but the ActiveDirectory module would not load.  I tried to edit the script, but ISE would not load.  After some research, I found a couple of one-liners:

#Installs AD Module and ISE on 2008 R2 server
import-module servermanager
add-WindowsFeature PowerShell-ISE
add-WindowsFeature RSAT-AD-Tools
									

For me the RSAT tools required a reboot.  It is not clear to me whether the ISE also requires a reboot.