Posts

Showing posts with the label PowerShell

HOW TO IMPORT / EXPORT ActiveDirectory User List with Properties (French Characters – UTF8)

HOW TO IMPORT / EXPORT ActiveDirectory User List with Properties (French Characters – UTF8)   1- Export Users to a CSV file from an OU with the following command. (Don’t forget to “import-module ActiveDirectory” when you start PowerShell) Get-ADUser -Filter * -SearchBase "OU=Administrateurs Systeme,OU=Utilisateurs,dc=domain,dc=com" -properties * | Export-Csv C:\AdminSysteme.csv -Encoding UTF8

WDS Import-WDSInstallImage Overview - Tips

Image
I am studying for an upcoming Microsoft exam #70-411 and I was practicing the new WDS (Windows Deployment Services) features in the Windows Server 2012 R2 and I ran into a little problem.

Windows 8 Sysprep Issues - Fatal Error

Altough it's been a while that Windows 8 is out on the market, I never had to play around with the Windows 8 images and syspreps as I had to with Windows 7. I decided to prepare me a nice updated image of Windows 8 in a vm and sysprep it and use it as template for my lab environment. The plan is simple...

Exchange 2010 - Get Full Access to User’s Mailboxes

To get access to a specific mailbox with all permissions use the following command in “Exchange Management Shell” Get-Mailbox username | Add-ADPermission –user username –AccessRights GenericAll To get access to a specific Exchange Mailbox database and all of the mailboxes that this database contains, use the following command in “Exchange Management Shell” Get-MailboxDatabase –identity “ mailbox database name ” | Add-Permission –user username –AccessRights GenericAll Done!

Find GUID (Globally Unique Identifier) of installed programs

After a long time, I finally motivated myself and wrote this article. As I spent a couple of hours trying to figure out how to find GUID of Java environment for a little deployment project, I realized that it’s not an easy task if you don’t know where to look. You can probably find a couple of third party applications which can do the job for you. But if you are like me and you don’t want another piece of software sitting on your computer for a one time shot then this article is for you… keep reading… Get your keyboards ready, we are going to use “PowerShell” or “Command Prompt”. We are going to use WMIC for this task. For more information about WMIC, click on the following link. http://technet.microsoft.com/en-us/library/bb742610.aspx By using this command here in “CMD” or “PowerShell” you will get a list of all programs on your computer with their “Globally Unique Identifiers”. wmic product list After running this command, it can take a couple of seconds before ...

Using PowerShell to Export a List of all the Users in a Security Group in Active Directory

Image
  PowerShell is known with its power of Active Directory management. If you really into simplifying your daily complicated time consuming tasks, this might be very interesting for you. Lately, for a small project I needed to make a list of all the users in a “Security Group” in Active Directory. The security group is called “Color Printing” and we had about 20 users in that “Security Group”. I did not want to write down all the names one by one in a excel sheet so I’ve started to make a research about how to export the list of users in security group. I know that when your users are only in an “Organization Unit”, it’s very easy to do this task, but when it’s a security group, you don’t have the “Export” option. Here what I found to complete a task of this kind! You can download free cmdlets from http://www.quest.com/powershell/activeroles-server.aspx for “Active Directory” management tasks. Once the right setup is downloaded and installed in your computer (in my case X64 version...