Today I share a script to automate all of the manual steps involved with setting up the Active Directory PowerShell module on your Windows 10 workstation.
Clickety, Click. Scripty, script.
I thought I had read that it was possible to run Active Directory on Windows 10, but I guess that is not a thing. I need to develop a method in Access 2013 VBA that can read (from Active Directory) the groups that a logged-in user is a member of to determine their 'security level' in the Access app (i.e. Which features they are granted access to). Dec 30, 2017 How do I install Active Directory on Windows 10? Do you actually mean how to install AD on the Windows 10 machine, or install the AD management tools on the Windows 10 machine? Windows 10 is a client OS and you would install RSAT on the client. Active Directory would be installed on a server version OS and you 'promote' the server to a Domain.
I recently reloaded my everyday work laptop. After three years it had in-place upgrades from Windows 8 to Windows 8.1 to Windows 10. You can imagine that we dogfood a lot of software as Microsoft employees, so it was well past time for a reload.
As part of this I had to set up the Active Directory module. Since the process was more than one quick step, I decide this deserves a script to help everyone else in the world as well. How many steps does it take?
This is mostly a one-time task, except for updating the module help. Generally I only script things that are more repeatable. However, I know many of you like to reload your laptop on a regular basis. I also know that lots of people are deploying Windows 10 right now. So this seemed like a good community service project.
The Script
This script needs to run from an elevated ISE or console session, since it is configuring your system. Obviously it will only run on Windows 10, because that is the goal.
Like any good PowerShell scripter I borrowed code from various sources on the internet. I included comments with the links where I found handy code for downloading a file, installing a hotfix, etc.
Downloading Active Directory Windows 10
Rather than explain the entire script line-by-line, I’ll provide the interesting parts here with comments. DO NOT copy/paste/run the code below. It is not complete. Use the download link at the bottom of this post to get a copy of the full script.
Cable and Satellite subscribers can watch full episodes of Man Vs.Wild on BBCAmerica.com.BBC America subscribers can also watch full episodes on our mobile app, available for iOS and Android phones and tablets. Start your free trial to watch Man vs. Wild and other popular TV shows and movies including new releases, classics, Hulu Originals, and more. Start watching Man vs. Stream thousands of shows and movies, with plans. Compatible device and high-speed, broadband Internet connection required. Multiple concurrent streams and HD. Watch Man vs. Wild Online: Watch full length episodes, video clips, highlights and more. Bear and his crew give us another behind the scenes look at what it takes to film Man vs Wild. Watch Man vs. Wild (Seasons 1- 5) 4K FOR FREE Man vs. Wild (Seasons 1- 5) Bear Grylls travels around the globe to find the most dangerous tourist locations and environments, in. In a special first aired on 2 June 2009, Will Ferrell joined Grylls on a survival trip to Northern Sweden. Grylls also said he has been approached about doing a Man vs. Wild urban disaster 3-D feature film, an idea he said he would 'really like to do.' Ben Stiller also signed on for an episode later in the year. Man vs wild full episodes hd.
I turned this into a function with full help and verbose output. I always like watching the blue verbose scroll as PowerShell runs. You get that sense of satisfaction that everything in the world is good when you watch your own code perform. #nerdthrills
Download
You can find the code here on the TechNet Script Gallery. Enjoy!
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |