How to display active directory browser from powershell - powershell

I have a GUI for AD user creation. One of the parameters I put in is location where the user shall be created. For now I have it in a text box as a simple text (ou=subcontainer,ou=container,dc=domain,dc=com). But this is not very user friendly and I'd like to add a button there to open a browser (like the left panel if you run dsa.msc) to select the path. I found a specially created browser for that, but it's again made of the text strings, which could be confusing for low-skilled technicians. Some of the people supposed to use this script are just skilled enough to create and modify a user in a GUI, but don't have much deeper knowledge and have no idea what that string means, so I'd like to have the classical gui from active directory users and computers. I tried to search classes under system.directoryservices.activedirectory but didn't find anything that could display the dialog

I found what I needed here: https://gist.github.com/supercheetah/b68023f3254dfc9a6497 - posted in comment by CraftyB

Related

No reaction when dragging into Access form

This post Drag file into Access, how to check the file details? says a BoundObjectFrame can be used as a target to drag and drop files from the Windows Explorer.
I've tried putting one on a form, but when I drag a file onto it, I get the circle-and-slash symbol that says I can't.
I've also tried various other control, including MS Forms textboxes, which are supposed to support drag-and-drop. But in every case I get the symbol.
Can anyone explain why?

Microsoft Access: Moving Form to shared drive, VBA code not working once there

Hello and thank you for helping!
I created an Access form that has a few button on it that when clicked format a textbox below the buttons (basically different colors). The idea is for employees to not lose track of important issues to discuss while they are on a phone call with clients. I know Access is typically for database-ing if you will, but I don't need it to track anything or update records as there are none.
This works fine on my computer, however when I try to send it via email or put it on a shared drive, the form appears, but the buttons do not work. I even tried copying the database file along with it to the shared drive, but it still did not work. It seems the VBA code that is connected to the button clicks does not work on a shared drive.
The drive itself is mapped to a letter (Y) on my computer, but may be mapped to Z or another letter on employee computers. Would this be the issue? Or better yet, is there a way to isolate the form so it works like a standalone program on each new machine using it?
I am relatively new to Access, what am I missing?
TL;DR Press button on Access form, textbox turns blue. Send to friends, they try to do the same, nothing happens.
As always, thank you for your time!
EDIT: There are two scenarios that can happen when another user tries to access this form:
1) The form appears perfectly, but when they click the buttons, nothing happens, no text box is formatted.
or
2) It throws this error: 'blah blah drive X' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
Try the UNC (Universal Naming Convention) instead of the drive letter (Y:)
The format is below.
\servername\sharename\path\filename
The servername and sharename information can be found on "My Computer" for Windows
Finally, this was solved! I changed the Form Record source to be the linked table, and it worked. It was still referencing a table on the computer I created it on. Thank you to everyone who helped!

Access 2010, stop form from updating table

I have been having some trouble with this and it seems to be the opposite of what other people want to do. I have a list of computers that I am maintaining in Access 2010. I want to create a form that I could enter the user's name and have a sub-table show me what computers they have. Ideally, I want to create a text box that would do a search. So far, I am too new to Access to figure out how to do that (I tried with an unbound text box, but couldnt get them to link properly).
Instead, I have created a drop down menu with a list of all the users. I can select a user and a sub-table will bring up the entry with their computer's information in it (service tag, name, type, etc.).
The problem is that while changing the drop down menu choices to other users, the table is being changed so that it now says the owner of a computer is someone else. For example, I search for Ted. It will bring up his computer. Then I will search for fred's computer. The results will be Ted's computer and Fred's computer. When I go into the actual table to look at Fred's and Ted's computers, they are now both set to being Fred's computers.
Is there a better way to do this (ie using a search text box) and/or to block edits to the table completely from the form?

Script to change settings in a program (filemaker pro 11)

Looking for some help here. I do a bit of IT support for an organisation of about 200 people. Most of them use a database program called Filemaker Pro 11. Each user should have their own username that is set under the 'edit' menu -> 'preferences'. The edit menu is on the tool bar at the top of the screen, along with file, view, window etc. like as in MS Word for example.
Each user currently has a default username but the organisation wants everyone changed to a unique username. This means me visiting every machine and manually changing it. I was wondering if it would be possible to write a script to prompt users to make this change the next time they open the system? I'm not new to programming but I've never made a script like this before so wouldn't know where to start. Could anyone point me in the right direction?
There is no way to script that change.
The user name you are referring to is the system (Windows or Mac) user name, and not the FileMaker user account. The default for the system user name is whatever they are logged in to their computer as. So, you could give people unique user names at the system level.
The option that is not default allows the user to change their system name. You can create a script that will open preferences for them, but there is no way to actually change it via a FileMaker script.
What you can do: Use the FileMaker account name instead of system name. The account name is much more reliable, follows the user across computers, is more secure, and best of all is (almost) totally scriptable.
I hope this helps. Sorry that what you want isn't possible inside of FileMaker.

Network Diagram, Word etc

Making a word document of our network set-up.
We have about 7 servers and I need to include screenshots and other info on each.
Is it possible to have a pic of the server that when clicked will open up another word doc that reveals all of the other info. Can this then be mailed to someone easily?
I think that you should have actually tried to do it in Word before asking. The answer is trivial. For completeness sake:
Right-click on the image, choose "Hyperlink..." from the menu. Select the document you want from the resulting standard file selection dialog.
That's it. Doing ctrl-click on the pickture will open up the document selected though you will probably get a security warning first.
You can also do it from a VBA macro. First select the desired image and then:
ActiveDocument.Hyperlinks.Add Anchor:=Selection.Range, Address:= _
"C:\Users\me\Documents\a-document.doc", SubAddress:=""
So you could automate the process of server discovery (or maybe you have the data in a spreadsheet that you could use), adding images and hyperlinks automatically. Probably not worth it for just 7 servers.
I'm not clear what you mean by the last part about emailing. Do you want to email the Master word document or the one opened after clicking on the hyperlink? Either way, Word has a menu option for doing this.
If you are wanting to send the document that is opened from the hyperlink - do you actually need the user to open that document or would you rather email it directly? A simple macro can be written that will ask you for the target email address and send the document directly without having to open it. There are really too many possibilities to write down here - we need more information.