posted 13/01/10

How to list all XP computers

By Fredrik Wall

Todays onliner will show all Windows XP computers
in a whole Active Directory.

Get-QADComputer -SizeLimit 0 -Osname "*xp*" | Select-Object Name, description, path

This can be nice If you want to migrate to Windows 7.

And if you want to show all Windows Server 2008

or Windows Server 2003 machines you just change –OSName to 2008 or 2003.

You need to have Quest AD cmdlets installed and you need to Add it first.

Add-PSSnapin Quest.ActiveRoles.ADManagement

If you want to import all information to excel you can

export It to a csv file with

| Export-Csv c:\scripts\test.txt

2 Comments
read more
posted 27/10/09

PowerGUI and AD PowerPack

By Fredrik Wall

This short blog post will be a first view of
PowerGUI and the AD PowerPack.

Now with the Active Directory PowerPack
we have a new group in PowerGUI.

image

In my case, my computer belongs
to my lab Active Directory. But my logged in user
don’t.  So when I try to click on Users I will get some errors.

image

To fix this I only need to start PowerGUI with
a different user.

image

image

The Power of the PowerGUI as I see it is the nice GUI and
the easy way to see how Its done. Because Its PowerShell
behind this and Its so easy to see it.

Right-click on Users and then Properties.
Now you can see the code behind.

image 

This will give you some information on how to use
this in your own scripts.

But be ware of that PowerGUI does something that
you don’t see in this code.

You need to load the snap-in for Quest AD cmdlets.

More about this later on!

 

No Comments
read more
posted 27/10/09

4 new friends

By Fredrik Wall

Hi,

my latest project or my latest lab is to install
two PowerPacks with the latest release
of PowerGUI (1.9.5).

image

These good PowerPacks are not new, but I’m
old fashion and I haven’t tried them before :)

To be able to install these two PowerPacks we needed to
install two things.

  1. Active Directory
    To be able to use the Active Directory PowerPack
    we need Quests Active Directory cmdlets.

    And we will find them in the Quest
    ActiveRoles Management Shell. You will find it here.

    image 

    The next step is very good, but will not
    work for me in my lab environment.
    image

  2. Exchange 2007
    To be able to use the Exchange 2007 PowerPack
    we need to do this on a Exchange 2007 machine or
    install the Exchange 2007 Management Console.

    The 64-bit version can be found on the
    Exchange 2007 disk.

    The 32-bit version can be found here.

    More information about the Exchange Management Shell
    can be found here.

 

So now we have installed 4 new friends :)

 

No Comments
read more