I'm new to powershell, but I recently setup a Powershell Web Access Server following this guide (http://blogs.technet.com/b/canitpro/archive/2013/11/14/step-by-step-deploy-powershell-web-access.aspx). On that server (running 2012 R2) I installed RSAT for AD with Powershell and Exchange Powershell. When I use PSWA to connect to the same server that it is hosted on and run "Import-Module ActiveDirectory" It gives me this error
WARNING: Error initializing default drive: 'Unable to contact the server. This may be
because this server does not exist, it is currently down, or it does not have the
Active Directory Web Services running.'.
It lets me go on to run "Get-ADUser"
Unable to contact the server. This may be because this server does not exist, it is
currently down, or it does not have the Active Directory Web Services running.
+ CategoryInfo : ResourceUnavailable: (bob.smith:ADUser) [Get-ADUser],
ADServerDownException + FullyQualifiedErrorId :
ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADUser
If I use PSWA to connect to the domain controller instead of the shell server itself, I can run these commands just fine. I can also run these commands fine if I remote desktop into the shell server and run powershell there. My goal however is to create something of an easy to use portal where a help desk tech (of varying skills) could run one of several scripts to create users or create Exchange mailboxes, without having direct access to those servers. Perhaps there is a better way to do this, but I didn't want them remoting into Exchange to run scripts or to install Exchange management tools on my Domain controllers.
My PSWA server is running Server 2012 R2
We have two Domain controllers both running Server 2008 R2
I've checked both DCs, they both have ADWS enabled and running. I restarted the services on both and both run.
- Edited by ethanthekiwi Monday, August 17, 2015 9:07 PM


