Powershell Scripting on Vista and XP in AD - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

Powershell Scripting on Vista and XP in AD

Description:

Powershell Scripting on Vista and XP in AD Examples (on local and remote PC s) Show COM,ADSI,.NET, WMI techniques List drives List Software installed into Excel ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 10
Provided by: AlanSi3
Category:

less

Transcript and Presenter's Notes

Title: Powershell Scripting on Vista and XP in AD


1
Powershell Scripting on Vista and XP in AD
2
Scripts enable easy Management of many PCs
  • Examples (on local and remote PCs)
  • Show COM,ADSI,.NET, WMI techniques
  • List drives
  • List Software installed into Excel sheet
  • Rename administrator account
  • Change administrator password
  • Add/remove account in administrators group
  • Start/stop service
  • Change registry key properties
  • Schedule a task on remote PC

3
Techniques
  • COM to automate applications
  • ADSI access AD objects
  • .NET access .net classes, methods and
    properties
  • WMI access wmi namespaces, classes,
    methods, properties and instances

4
Powershell set up
  • Install powershell version 1 - needs .net 2
  • Version installed found in
    C\WINDOWS\Microsoft.NET\Framework
  • Community Technology Preview powershell v2
    available) needs .net 3 for some features
  • .net 3 already on Vista
  • Cannot run both versions of Powershell
  • Install Quest ActiveRoles management shell snapin
  • Install Quest PowerGUI(for script editor)
  • Install PowerGUI snapins(for AD,network,exchange)
  • Install WMI browser (powershell script)

5
Target Computer Configuration
  • Add powershell account to local administrators
  • Enable WMI exception in firewall on Vista
  • Enable remote management in GP on XP
  • Start remote registry service

6
Remote management Group Policyon XP
  • Run MMC
  • Add group policy object editor snapin
  • Go Computer-Admin templates-Network-Network
    connections-windows firewall
  • Go Domain profile
  • Enable windows firewall Allow remote
    administration exception specify IPs allowed
    access
  • Run gpupdate

7
Demos
  • Powershell run on Vista enterprise
  • Target is Vista on Virtual PC in AD location
  • Clients\departments\School of
    biological\TEST
  • Target is XP on PC in same location in AD

8
Sources of Info
  • Scripting
  • http//www.microsoft.com/technet/scriptcenter/hubs
    /msh.mspx
  • PowerGUI documentation and examples
  • http//powergui.org/documentation.jspa
  • Powershell script repository
  • http//www.myitforum.com/myITWiki/(X(1)S(uenx3ejgr
    w0b5y3jqmqsoong))/WPScripts.ashx
  • http//www.myitforum.com/articles/40/section.asp?w
    2auyli628p1
  • Webcasts
  • http//channel9.msdn.com/Showpost.aspx?postid3360
    98
  • WMI
  • http//thepowershellguy.com/blogs/posh/search.aspx
    ?qwmiexplorerp1

9
Sources of software
  • Powershell
  • http//www.microsoft.com/technet/scriptcente
    r/topics/msh/download.mspx
  • Quest ActiveRoles Management shell
  • http//www.quest.com/powershell/activeroles
    -server.aspx
  • Quest PowerGUI
  • http//powergui.org/downloads.jspa
  • PowerGUI snapins
  • http//powergui.org/kbcategory.jspa?categoryID48
  • WMI explorer
  • http//thepowershellguy.com/blogs/posh/search.aspx
    ?qwmiexplorerp1
Write a Comment
User Comments (0)
About PowerShow.com