How to manage products like Exchange and AD without installing additional tools

Home > Blogs > Exchange Server > How to manage products like Exchange and AD without installing additional tools

How to manage products like Exchange and AD without installing additional tools

Like This Blog 0Jason Helmick
Added by May 24, 2013

So, what if you want to manage Active Directory, Exchange, SCVMM or any product for that matter and don’t have the RSAT or management tools installed?  Well, I have the answer for you – and for some reason it’s overlooked by many PowerShell admins – but is my favorite solution to managing other products.

I never seem to have the modules on my client to manage most products. I don’t normally install the RSAT tools, and I’ve never been a big fan of management tool packs like those for Exchange. It’s not that there is anything wrong with them – in fact, using the RSAT tools is much better than beating up on your server with RDP. It’s just I never seem to have the same client computer.

For many consultants, traveling admins, and admins that find themselves running around the office from one computer to the next, you can’t always just stop in the middle of your work and install additional software. Especially considering that it can take a couple of hours to install the RSAT tools and a couple of management packs.

You may also like:  Video - How to Recover and Reset Passwords in Azure by Mike Pfeiffer

Well, PowerShell has this great feature called Implicit Remoting. I know, the name doesn’t mean much, but in a nutshell it means that you can “borrow” the modules and cmdlets that are on your servers. As an example, want to manage Active Directory? Grab the AD module and its cmdlets from the AD server. Want to manage Exchange? Grab those from the Exchange server!  Not only are you getting the update and current version of the cmdlets directly off the server – you don’t need to install a single thing. In just a matter of seconds you have everything you need.

Technically this is not installing the cmdlets on your client. In fact, think of this as creating shortcuts on your client that point to and run the actual cmdlets on the remote server. Just keep in mind that if you close your console, then the session is ended. Some folks put the commands to implicit remote in their Profile so that they are available every time they launch the Shell. Let’s try this by grabbing some cmdlets from a domain controller.

You may also like:  How to Setup and Use Dynamic Groups TTL Windows Server 2016 and Server 2012R2

You will need PowerShell Remoting enabled to do this, but you should already know that. Here we go.

First, create a new PowerShell session to the server that contains the module of cmdlets you would like to use.

PS> $Session=New-PSSession -ComputerName DC

Now here’s the cool part – the next step is to import the module you want.

PS> Import-PSSession -Session $Session -Module ActiveDirectory

Whoa!  That’s all there is to it!  Go ahead, try running a few commands and see what happens. You have all the help and examples you need.

PS> Get-Help *AD*

PS> Get-Help Get-AdComputer -Full

PS> Get-Adcomputer -Filter *

It all works, just like you had the RSAT tools installed locally only without all the bother.

Knowledge is PowerShell,

Jason Helmick
Systems Instructor
Interface Technical Training

Videos You May Like

Agile Methodology in Project Management

0 74 0

In this video, you will gain an understanding of Agile and Scrum Master Certification terminologies and concepts to help you make better decisions in your Project Management capabilities. Whether you’re a developer looking to obtain an Agile or Scrum Master Certification, or you’re a Project Manager/Product Owner who is attempting to get your product or … Continue reading Agile Methodology in Project Management

How to clone a Windows Server 2012 or 2012 R2 Domain Controller

1 614 2

One of the coolest new features in Window Server 2012 and Windows Server 2012 R2 is the ability to clone a Domain Controller. In the past, if we had virtualized Domain Controllers and we actually took a snapshot of it and then rolled back to that snapshot, it would break the logon service on that … Continue reading How to clone a Windows Server 2012 or 2012 R2 Domain Controller

Detailed Forensic Investigation of Malware Infections – April 21, 2015

2 271 3

In this IT Security training video, Security expert Mike Danseglio (CISSP / CEH) will perform several malware investigations including rootkits, botnets, viruses, and browser toolbars.

Write a Comment

Share your thoughts...

Please fill out the comment form below to post a reply.