Add new realm to existing trusted identity provider in SharePoint 2010/2013

Setup: You have a SharePoint farm with an web application configured to use ADFS 2.0 for authentication via Trusted Identity Provider. Problem: You want to add another web application to this SharePoint farm and configure the authentication via ADFS Solution: Open SharePoint PowerShell and issue the following commands: where appname is the alias of your […]

Read More

Reset MYSQL root password on Linux

Setup: MYSQL server running on Linux Problem: root account password is lost. You need a method to reset the password and login. Solution: Stop MySQL On Debian or Ubuntu or on CentOS, Fedora, and RHEL: Next we need to start MySQL in safe mode. You should be loged in as root now, as we skipped […]

Read More

Export users from Active Directory in CSV with PowerShell

Setup: You have access to a domain member computer with Active Roles installed Problem: You want to export users with details from specific OU to a CSV file Solution: Open Powershell Active Roles console and run these commands: -sizelimit 0 will return all users. See http://msdn.microsoft.com/en-us/library/ms180880(v=vs.80).aspx for more details -enabled return only enabled users. Remove […]

Read More

Batch Create AD groups from file

Prerequisites: Active Directory, PowerShell, ActiveRoles Management Shell for Active Directory Setup: You have access to a domain member computer in a Active Directory domain Problem: You have a text file with many group names and you want to create them quickly Solution: Open ActiveRoles PowerShell console and run these commands: Tips 1: If you want […]

Read More