Performancing Metrics

Group Policy in Windows 7 - Group Policy Team Blog - Site Home - TechNet Blogs

Group Policy in Windows 7

Group Policy in Windows 7

  • Comments 13
  • Likes

PowerShell! The name alone should get you excited. Wait until you see all the cool stuff you can do with PowerShell in the Windows Server 2008 R2 and Windows 7 release of the Group Policy management tools. For those of you who have yet to learn PowerShell, hopefully this will help motivate you. You will be able to…

 

a)      Add PowerShell scripts to logon/logoff and startup/shutdown

b)      Use cmdlets to do a lot of what you’ve been using the GPMC UI or GPMC Sample Scripts for (creating new GPO’s, linking, making backups…)

 

<drumroll please…>

 

c)       Configure GPO registry settings from the PowerShell commandline

 

Holy cow! If you aren’t excited, it’s only because you don’t know what the word cmdlet is yet, but you can find out!

 

Here’s how:

 

Don Jones is a great writer for people of every level:

               

Here are some of his great reasons to use PowerShell with some cool tricks you can use right away for troubleshooting and management:

http://technet.microsoft.com/en-us/magazine/cc160873.aspx

Check this out from the article:

 

Top 10 Cmdlets to Start Using Immediately
  • Get-Command retrieves a list of all available cmdlets.
  • Get-Help displays help information about cmdlets and concepts.
  • Get-WMIObject retrieves management information by using WMI.
  • Get-EventLog retrieves Windows event logs.
  • Get-Process retrieves a single or list of active processes.
  • Get-Service retrieves a Windows service.
  • Get-Content reads in text files, treating each line as a child object.
  • Add-Content appends content to a text file.
  • Copy-Item copies files, folders, and other objects.
  • Get-Acl retrieves access control lists (ACLs).

For a complete list of cmdlets that ship with Windows PowerShell, go to windowssdk.msdn.microsoft.com/en-us/library/ms714408.aspx
 

 

 

Here, he’s showing you how to build a software inventory tool using WMI cmdlets in a 6 minute video with accompanying article:

http://blogs.technet.com/tnmag/archive/2008/10/21/windows-powershell-building-your-own-software-inventory-tool.aspx

 

 

The Scripting Guys are hilarious and helpful.  This is some of the stuff I liked that they wrote:

 

Get-Service; a quick way to get your hands dirty with something you can use right away

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/get-service.mspx

 

Format-List; how to make your results useful to you

http://www.microsoft.com/technet/scriptcenter/topics/msh/cmdlets/format-list.mspx

 

This is their archive of Windows PowerShell Tips:

http://www.microsoft.com/technet/scriptcenter/resources/pstips/archive.mspx

 

Let me know what resources you like in the comments, I can always learn more.  Keep looking to this blog for more details on GP’s new cmdlets…

 

Hope this helps,

 

Lilia Gutnik

Group Policy, PM

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • The news regarding wall to wall PowerShell in Windows 7\Windows 2008 R2 is great news. The fact that

  • S&aring; kom nyheden endelig. I Windows 7 / Windows Server 2008 R2 vil der v&aelig;re support for bl

  • 寒くなりましたね...おまけに街はクリスマス一色となりつつあります...点灯されたクリスマスツリーを見るだに寒さが心にしみ入ります。 さて、そんな寒さを吹き飛ばすお話を(よけいに寒くなるか?)。 Group

  • Hi !

    So far I can see, for GPO, is remains the big problem since ever:There is no way to script local policies! It's just like Stonehenge:I have to take my shoes , walk to another server, configure somethings, continue .... So this remains still the biggest pain in ...

    For example:I have no access to GPOs and so I must do verything manually .... Thanks for that!

    Very annoyed.

    --mabra

  • You configured a setting in one GPO and want to know what that setting is across all GPO’s. You want

  • hi,

    is it possible to have the beta of .admx for group policy for windows 7 to test before the  official release?

    Thanks

  • Any issues managing Group Policy with my Windows 7 RC workstation in a Windows 2003 domain?

  • If I wanted Power Shell, I would use UNIX!!  I think Microsoft forgot their flagship product named "Windows" that is based on a GUI...  Remember GUI???  I have more important things to do with my time at work than to learn powershell language to accomplish administrative tasks that used to take seconds in a GUI!!!

  • Has anyone had any Group Policy issues with Windows 7 workstations in a Windows 2003 domain enviroment???

  • What are the new GPOs for Windows 7 OS?  Anything specific?

    Rob

  • Robert - see recent posts on this topic.

  • It seems that the GPOs wont work with my win7 in our domain environment (DC on windows server 03 R2).Am i missing anything?

  • ManU - it all depends on the settings you want to apply and whether they are not used in W7 like they were in previous versions. Usually you will find a replacement for these.