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
Posts Tagged ‘ISE’
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:
For me the RSAT tools required a reboot. It is not clear to me whether the ISE also requires a reboot.
#Installs AD Module and ISE on 2008 R2 server import-module servermanager add-WindowsFeature PowerShell-ISE add-WindowsFeature RSAT-AD-Tools