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

Assign permissions to Virtual Machine service account on .vhd files

Setup: Hyper-V server Problem: On a Hyper-V server and when you start the VM you get an error 12290 like this in log Microsoft-Windows-Hyper-V-Worker/Admin ‘VMName’: IDE/ATAPI Account does not have sufficient privilege to open attachment ‘\Path_to_disk\disk.vhd’. Error: ‘General access denied error’ (0x80070005). (Virtual machine ID 545CC7B7-83B6-46A9-A29C-29AB56B09306) Solution: Open an elevated command prompt and run this […]

Read More

Enable ADFS 2.0 debug log

Setup: ADFS 2.0 Federation server Problem: You need to troubleshoot some authentication issues and check the claims sent to RP Solution: Run the following command from a command prompt: Open Event Viewer, click the View menu and select Show Analytic and Debug Logs. This must be enabled for the AD FS 2.0 Tracing log to […]

Read More