One of the things I used to like about using Windows was if I needed to drop to command line, I could (from any given location), by simply right clicking (while pressing CTRL) and selecting ‘Open Command Window Here. On a MAC I have Terminal but thats not an option.
Solution
As with most things on the MAC it is there, you just need to enable it.
1. Apple Logo > System Preferences.
2. Keyboard.
3. Shortcuts > Services > New Terminal at Folder.
4. Now when you right click a folder (or command click), you have ‘New Terminal at Folder’.
5. Et Voila!.
Related Articles, References, Credits, or External Links
Update Jan 2023: Feel free to use this Bulk-Create-AD-Users-Script (Just remeber to change the domain details in the “Global Variables’ Sections to give you 10o0 users, with sensible names addreeses etc.
Having a test network, is great for both learning, and testing. I’ve got some major migrations coming up in the next few months, so I’m in the process of running up some new test servers. I usually run a quick .vbs file like this;
[box]
Set objRootDSE = GetObject("LDAP://rootDSE")
Set objContainer = GetObject("LDAP://cn=Users," & _
objRootDSE.Get("defaultNamingContext"))
For i = 1 To 1000
Set objLeaf = objContainer.Create("User", "cn=UserNo" & i)
objLeaf.Put "sAMAccountName", "UserNo" & i
objLeaf.SetInfo
Next
WScript.Echo "1000 Users created."
[/box]
Save that as createusers.vbs and run it on your domain controller and it will churn out 1000 users (named UserNo1 – UserNo1000). They will be disabled, with no passwords, but that can be rectified with a few mouse clicks.
But I want something a little more realistic, so I found a random name generator, and decided to have a script to create 1000 users that were a little more ‘lifelike’.
Solution
1. Download this zip file, and extract it to your desktop. To run the script you will need to set your Execution Policy with the following command;
[box]
Set-ExecutionPolicy Unrestricted[/box]
2. You will need to change a couple of lines in the newusers.ps1 file open it with notepad and change the domain details to match yours;