Copy AD group members

I needed to copy AD group members to another AD group, if they didn't already exist in the target group. This is very plain and simple script you can run the script and add -SourceGroup "group name" -DestinationGroup "destination group", or omit those and the script will ask you for it (since they are mandatory). … Continue reading Copy AD group members

Get AD RDS Profile information

I needed to get information which is located in the AD user information, which is located on the tab "Remote Dekstop Services Profile", which gives the user Profile Path, Home Folder drive and location of the Home Folder on the network (see image below). AD user RDS Profile tab I also wanted to check if … Continue reading Get AD RDS Profile information

Check user credentials and set auto logon

I had several requests from the developers at our company, to enable auto logon for various servers. I knew this was possible through regedit (as explained in this Microsoft support article) Though, sometimes it needed to be done on (test) servers which reside on a domain and sometimes it needed to be done one (stand-alone) … Continue reading Check user credentials and set auto logon

How to get all remote logged on users

I wanted a simple way to get all (remote) logged on (and disconnected) users on all servers in my domain. This way it's easier for me to see if there are any disconnected sessions still open. In my case I've entered them into a SQL database, but for the example on this blog, I will … Continue reading How to get all remote logged on users

Writing to a SQL database

Last week I needed to store information in a SQL database, so I can share certain user account information with a select group of users in the helpdesk department, but they shouldn't have access to the AD itself. So I decided that a SQL database was the way to go and I can create a … Continue reading Writing to a SQL database