SlideShare une entreprise Scribd logo
1  sur  17
Windows PowerShell for Windows Azure
G. SARAVANAN
Duration : 60 Minutes
Agenda
2
• Writing Custom CmdLets
• Installing Custom CmdLets
• UnInstalling Custom CmdLets
• PowerShell for .Net 4.0
• PowerShell CmdLets for Windows Azure
Writing Customized CmdLets
Modules
A module is a package of commands and
other items that you can use in Windows
PowerShell. After you run the setup
program or save the module to disk, you
can import the module into your Windows
PowerShell session and use the
commands and items. You can also use
modules to organize the cmdlets,
providers, functions, aliases, and other
commands that you create, and share
them with others.
SnapIn
A Windows PowerShell snap-in
(PSSnapin) is a dynamic link library (.dll)
that implements cmdlets and providers.
When you receive a snap-in, you need to
install it, and then you can add the cmdlets
and providers in the snap-in to your
Windows PowerShell session.
3
Windows PowerShell is a fully extensible environment. Anyone can write commands for PowerShell.
You can use commands that others write and share the commands that you write with others.
Commands are shared by using modules and snap-ins. Windows PowerShell modules and snap-ins
are packages that contain Windows PowerShell commands and other items.
Step 1: Load new Visual studio project and select PowerShellCmdLet template.
4
PowerShellCmdLet template and be downloaded from http://psvs2008.codeplex.com/
This template is in VS2008, However you can use the same template in VS2010 also.
Step 2: Add NewItem, Select PowerShell PSCmdLet template. Name it as “Get-Process”
5
Step 3: Replace the GetProcess.cs file with the below code
6
using System;
Using System.Management.Automation;
namespace DemoSnapIn
{
[Cmdlet(VerbsCommon.Get, "Proc")]
public class GetProcess : PSCmdlet
{
protected override void ProcessRecord()
{
try
{
WriteObject(System.Diagnostics.Process.GetProcesses(), true);
}
catch (Exception)
{
}
}
}
}
System.Management.Automation is the root namespace for Windows PowerShell. It contains classes, enumerations,
and interfaces
Step 4: Add another PowerShell PSCmdLet template and name it as “CustomProcess.cs”
7
Step 5: Replace the CustomProcess.cs file with the below code and build the source.
8
using System.ComponentModel;
using System.Management.Automation;
namespace DemoSnapIn
{
[RunInstaller(true)]
public class CustomProcess : PSSnapIn
{
public override string Description
{
get { return "Custom Command Lets"; }
}
public override string Name
{
get { return "DemoSnapIn"; }
}
public override string Vendor
{
get { return "Aditi Technology"; }
}
}
}
Specifies whether the Visual Studio Custom Action Installer or the Installutil.exe (Installer Tool) should be
invoked when the assembly is installed
Installing Custom CmdLets
• Execute the below commands in Powershell window
Start  All Programs  Accessories  Windows PowerShell  Windows PowerShell.exe
1. set-alias installutil $env:windirMicrosoft.NETFramework64v4.0.30319installutil
2. installutil "D:SaravananSample SRCMyDemoPowerShellDemoSnapInDemoSnapInbinDebugDemoSnapIn.dll"
3. Get-PSSnapIn –registered
4. Add-PSSnapIn DemoSnapIn
5. Get-Command -pssnapin DemoSnapIn
6. Get-Proc  This will list all the process running in the current system.
9
UnInstalling Custom CmdLets
• Execute the below commands in Powershell window
Start  All Programs  Accessories  Windows PowerShell  Windows PowerShell.exe
1. set-alias installutil $env:windirMicrosoft.NETFramework64v4.0.30319installutil
2. $path = "D:SaravananSample SRCMyDemoPowerShellDemoSnapInDemoSnapInbinDebugDemoSnapIn.dll"
3. installutil -u $path.
4. Get-PSSnapIn –registered
DemoSnapIn has been
uninstalled
10
Configure PowerShell to use DotNet 4.0
You might get following error when you load a snap-in that is written by DotNet 4.0.
This is because by default, PowerShell uses DotNet version 2.0 CLR. To use powershell load DotNet 4.0 assemblies,
the following settings need to be added in PowerShell.exe.config under
C:WINDOWSsystem32WindowsPowerShellv1.0.
• <configuration>
• <startup useLegacyV2RuntimeActivationPolicy="true">
• <supportedRuntime version="v4.0.30319"/>
• <supportedRuntime version="v2.0.50727"/>
• </startup>
• </configuration>
Note: Create PowerShell.exe.config if this file not found.
11
PowerShell Cmdlets for Windows Azure
Windows azure cmdlets can be downloaded from the below link
http://wappowershell.codeplex.com/
A few Windows azure cmdlets
12
Executing Windows Azure PowerShell Cmdlets
Get-HostedServices -subscriptionId %SubscriptionId% -certificate (get-item
cert:CurrentUserMY%thumbprintInUpperCase%) | where {$_.ServiceName -eq "%serviceName%"} |
Get-Deployment staging
13
Sample Windows Azure CmdLets
14
Description Commands
Create New Hosted
Service
New-HostedService -ServiceName DemoPack -Label "DemoPack" -Location "North Central US" -SubscriptionId "1e6830f6-90c1-
479a-9956-02b3674a07e4" -Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
Create New Storage New-StorageAccount -ServiceName powershelldemo -Label "powershelldemo" -Location "North Central US" -SubscriptionId
"1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item
cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
Add files to blob Add-Blob -BlobType Block -FilePath "D:SaravananSample
SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishDeployDemo.cspkg" -StorageAccountKey
"o0b++/hhFldi2uue0Cb8FKM6f4HUFOK3noA7fA1W9uVg1LK/+X2/m9S5j8OSdd91SoEMsiujRC+ftKsAqzVFsA==" -
StorageAccountName "adititraining" -ContainerName "powershell"
Get Hosted service
details
Get-HostedService -subscriptionId 1e6830f6-90c1-479a-9956-02b3674a07e4 -certificate (get-item
cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) | where {$_.ServiceName -eq "fileuploaddownload"} |
Get-Deployment staging
Create New
Deployment
New-Deployment -subscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item
cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) -serviceName adititraininghost -slot staging -package
"D:SaravananSample SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishDeployDemo.cspkg" -
configuration "D:SaravananSample
SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishServiceConfiguration.Cloud.cscfg" -name
DeployDemo -label DeployDemo -storageservicename adititraining
Remove Hosted
Service
Remove-HostedService -ServiceName DemoPack -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item
cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
Remove Storage
Account
Remove-StorageAccount -StorageAccountName "powershelldemo" -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -
Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
Remove
Deployment
Remove-Deployment -Slot staging -ServiceName adititraininghost -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -
Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
15
References
Windows PowerShell Web site
PowerShell Features
TechNet Script Center Repository for PowerShell
PowerShell Tips
A-Z PowerShell 2.0 Commands
Windows PowerShell Cmdlet Help Topics
Windows PowerShell Quick reference
PowerShell Owner's Manual
PowerShell Tutorial
PowerShell.com
http://msdn.microsoft.com/en-us/library/ms714658.aspx
http://blogs.technet.com/b/heyscriptingguy/
http://en.wikipedia.org/wiki/Windows_PowerShell#Examples
16
Questions ?
Thank you
G. SARAVANAN
saravanang@aditi.com | +91 9176665242

Contenu connexe

Tendances

Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 

Tendances (18)

PowerUpSQL - 2018 Blackhat USA Arsenal Presentation
PowerUpSQL - 2018 Blackhat USA Arsenal PresentationPowerUpSQL - 2018 Blackhat USA Arsenal Presentation
PowerUpSQL - 2018 Blackhat USA Arsenal Presentation
 
Software industrialization
Software industrializationSoftware industrialization
Software industrialization
 
Oracle Web logic 12c on docker
Oracle Web logic 12c  on dockerOracle Web logic 12c  on docker
Oracle Web logic 12c on docker
 
CodeShip
CodeShipCodeShip
CodeShip
 
Backbase CXP Manager Setup
Backbase CXP Manager SetupBackbase CXP Manager Setup
Backbase CXP Manager Setup
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL
 
EMC Networker installation Document
EMC Networker installation DocumentEMC Networker installation Document
EMC Networker installation Document
 
Encrypt and decrypt in solaris system
Encrypt and decrypt in solaris systemEncrypt and decrypt in solaris system
Encrypt and decrypt in solaris system
 
WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation WebLogic, 12C SOA Standalone installation
WebLogic, 12C SOA Standalone installation
 
Core data optimization
Core data optimizationCore data optimization
Core data optimization
 
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
 
Glassfish JEE Server Administration - Clustering
Glassfish JEE Server Administration - ClusteringGlassfish JEE Server Administration - Clustering
Glassfish JEE Server Administration - Clustering
 
Sql saturday oc 2019
Sql saturday oc 2019Sql saturday oc 2019
Sql saturday oc 2019
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
 
Detect and fix the azure sql resources which uses tls version less than 1.2
Detect and fix the azure sql resources which uses tls version less than 1.2Detect and fix the azure sql resources which uses tls version less than 1.2
Detect and fix the azure sql resources which uses tls version less than 1.2
 
Audit Vault Database Firewall 12.2.0.1.0 installation
Audit Vault Database Firewall 12.2.0.1.0 installationAudit Vault Database Firewall 12.2.0.1.0 installation
Audit Vault Database Firewall 12.2.0.1.0 installation
 
TROOPERS 20 - SQL Server Hacking Tips for Active Directory Environments
TROOPERS 20 - SQL Server Hacking Tips for Active Directory EnvironmentsTROOPERS 20 - SQL Server Hacking Tips for Active Directory Environments
TROOPERS 20 - SQL Server Hacking Tips for Active Directory Environments
 
PuppetConf 2016: Puppet on Windows – Nicolas Corrarello, Puppet
PuppetConf 2016: Puppet on Windows – Nicolas Corrarello, PuppetPuppetConf 2016: Puppet on Windows – Nicolas Corrarello, Puppet
PuppetConf 2016: Puppet on Windows – Nicolas Corrarello, Puppet
 

Similaire à PowerShell-2

Windows PowerShell - Billings .NET User Group - August 2009
Windows PowerShell - Billings .NET User Group - August 2009Windows PowerShell - Billings .NET User Group - August 2009
Windows PowerShell - Billings .NET User Group - August 2009
John Clayton
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
Concentrated Technology
 

Similaire à PowerShell-2 (20)

Windows PowerShell - Billings .NET User Group - August 2009
Windows PowerShell - Billings .NET User Group - August 2009Windows PowerShell - Billings .NET User Group - August 2009
Windows PowerShell - Billings .NET User Group - August 2009
 
Power shell
Power shellPower shell
Power shell
 
Automating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShellAutomating Active Directory mgmt in PowerShell
Automating Active Directory mgmt in PowerShell
 
PowerShell-1
PowerShell-1PowerShell-1
PowerShell-1
 
Opscode Webinar: Cooking with Chef on Microsoft Windows
Opscode Webinar: Cooking with Chef on Microsoft WindowsOpscode Webinar: Cooking with Chef on Microsoft Windows
Opscode Webinar: Cooking with Chef on Microsoft Windows
 
Drupal, Memcache and Solr on Windows
Drupal, Memcache and Solr on WindowsDrupal, Memcache and Solr on Windows
Drupal, Memcache and Solr on Windows
 
CCI2019 - I've got the Power! I've got the Shell!
CCI2019 - I've got the Power! I've got the Shell!CCI2019 - I've got the Power! I've got the Shell!
CCI2019 - I've got the Power! I've got the Shell!
 
Post exploitation using powershell
Post exploitation using powershellPost exploitation using powershell
Post exploitation using powershell
 
Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...Basic commands for powershell : Configuring Windows PowerShell and working wi...
Basic commands for powershell : Configuring Windows PowerShell and working wi...
 
Intro to PowerShell
Intro to PowerShellIntro to PowerShell
Intro to PowerShell
 
Power shell examples_v4
Power shell examples_v4Power shell examples_v4
Power shell examples_v4
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
instaling
instalinginstaling
instaling
 
Power shell training
Power shell trainingPower shell training
Power shell training
 
PowerShell for SharePoint Developers
PowerShell for SharePoint DevelopersPowerShell for SharePoint Developers
PowerShell for SharePoint Developers
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Introduction to Powershell Version 5
Introduction to Powershell Version 5Introduction to Powershell Version 5
Introduction to Powershell Version 5
 
PowerShell Remoting
PowerShell RemotingPowerShell Remoting
PowerShell Remoting
 

Plus de Saravanan G

ServiceFabric-Arch
ServiceFabric-ArchServiceFabric-Arch
ServiceFabric-Arch
Saravanan G
 
Windows Azure Marketplace
Windows Azure MarketplaceWindows Azure Marketplace
Windows Azure Marketplace
Saravanan G
 
WindowsAzureIAAS
WindowsAzureIAASWindowsAzureIAAS
WindowsAzureIAAS
Saravanan G
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
Saravanan G
 

Plus de Saravanan G (6)

Wcat
WcatWcat
Wcat
 
ServiceFabric-Arch
ServiceFabric-ArchServiceFabric-Arch
ServiceFabric-Arch
 
Windows Azure Marketplace
Windows Azure MarketplaceWindows Azure Marketplace
Windows Azure Marketplace
 
WindowsAzureIAAS
WindowsAzureIAASWindowsAzureIAAS
WindowsAzureIAAS
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
 
AzureDocumentDB
AzureDocumentDBAzureDocumentDB
AzureDocumentDB
 

PowerShell-2

  • 1. Windows PowerShell for Windows Azure G. SARAVANAN Duration : 60 Minutes
  • 2. Agenda 2 • Writing Custom CmdLets • Installing Custom CmdLets • UnInstalling Custom CmdLets • PowerShell for .Net 4.0 • PowerShell CmdLets for Windows Azure
  • 3. Writing Customized CmdLets Modules A module is a package of commands and other items that you can use in Windows PowerShell. After you run the setup program or save the module to disk, you can import the module into your Windows PowerShell session and use the commands and items. You can also use modules to organize the cmdlets, providers, functions, aliases, and other commands that you create, and share them with others. SnapIn A Windows PowerShell snap-in (PSSnapin) is a dynamic link library (.dll) that implements cmdlets and providers. When you receive a snap-in, you need to install it, and then you can add the cmdlets and providers in the snap-in to your Windows PowerShell session. 3 Windows PowerShell is a fully extensible environment. Anyone can write commands for PowerShell. You can use commands that others write and share the commands that you write with others. Commands are shared by using modules and snap-ins. Windows PowerShell modules and snap-ins are packages that contain Windows PowerShell commands and other items.
  • 4. Step 1: Load new Visual studio project and select PowerShellCmdLet template. 4 PowerShellCmdLet template and be downloaded from http://psvs2008.codeplex.com/ This template is in VS2008, However you can use the same template in VS2010 also.
  • 5. Step 2: Add NewItem, Select PowerShell PSCmdLet template. Name it as “Get-Process” 5
  • 6. Step 3: Replace the GetProcess.cs file with the below code 6 using System; Using System.Management.Automation; namespace DemoSnapIn { [Cmdlet(VerbsCommon.Get, "Proc")] public class GetProcess : PSCmdlet { protected override void ProcessRecord() { try { WriteObject(System.Diagnostics.Process.GetProcesses(), true); } catch (Exception) { } } } } System.Management.Automation is the root namespace for Windows PowerShell. It contains classes, enumerations, and interfaces
  • 7. Step 4: Add another PowerShell PSCmdLet template and name it as “CustomProcess.cs” 7
  • 8. Step 5: Replace the CustomProcess.cs file with the below code and build the source. 8 using System.ComponentModel; using System.Management.Automation; namespace DemoSnapIn { [RunInstaller(true)] public class CustomProcess : PSSnapIn { public override string Description { get { return "Custom Command Lets"; } } public override string Name { get { return "DemoSnapIn"; } } public override string Vendor { get { return "Aditi Technology"; } } } } Specifies whether the Visual Studio Custom Action Installer or the Installutil.exe (Installer Tool) should be invoked when the assembly is installed
  • 9. Installing Custom CmdLets • Execute the below commands in Powershell window Start  All Programs  Accessories  Windows PowerShell  Windows PowerShell.exe 1. set-alias installutil $env:windirMicrosoft.NETFramework64v4.0.30319installutil 2. installutil "D:SaravananSample SRCMyDemoPowerShellDemoSnapInDemoSnapInbinDebugDemoSnapIn.dll" 3. Get-PSSnapIn –registered 4. Add-PSSnapIn DemoSnapIn 5. Get-Command -pssnapin DemoSnapIn 6. Get-Proc  This will list all the process running in the current system. 9
  • 10. UnInstalling Custom CmdLets • Execute the below commands in Powershell window Start  All Programs  Accessories  Windows PowerShell  Windows PowerShell.exe 1. set-alias installutil $env:windirMicrosoft.NETFramework64v4.0.30319installutil 2. $path = "D:SaravananSample SRCMyDemoPowerShellDemoSnapInDemoSnapInbinDebugDemoSnapIn.dll" 3. installutil -u $path. 4. Get-PSSnapIn –registered DemoSnapIn has been uninstalled 10
  • 11. Configure PowerShell to use DotNet 4.0 You might get following error when you load a snap-in that is written by DotNet 4.0. This is because by default, PowerShell uses DotNet version 2.0 CLR. To use powershell load DotNet 4.0 assemblies, the following settings need to be added in PowerShell.exe.config under C:WINDOWSsystem32WindowsPowerShellv1.0. • <configuration> • <startup useLegacyV2RuntimeActivationPolicy="true"> • <supportedRuntime version="v4.0.30319"/> • <supportedRuntime version="v2.0.50727"/> • </startup> • </configuration> Note: Create PowerShell.exe.config if this file not found. 11
  • 12. PowerShell Cmdlets for Windows Azure Windows azure cmdlets can be downloaded from the below link http://wappowershell.codeplex.com/ A few Windows azure cmdlets 12
  • 13. Executing Windows Azure PowerShell Cmdlets Get-HostedServices -subscriptionId %SubscriptionId% -certificate (get-item cert:CurrentUserMY%thumbprintInUpperCase%) | where {$_.ServiceName -eq "%serviceName%"} | Get-Deployment staging 13
  • 14. Sample Windows Azure CmdLets 14 Description Commands Create New Hosted Service New-HostedService -ServiceName DemoPack -Label "DemoPack" -Location "North Central US" -SubscriptionId "1e6830f6-90c1- 479a-9956-02b3674a07e4" -Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) Create New Storage New-StorageAccount -ServiceName powershelldemo -Label "powershelldemo" -Location "North Central US" -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) Add files to blob Add-Blob -BlobType Block -FilePath "D:SaravananSample SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishDeployDemo.cspkg" -StorageAccountKey "o0b++/hhFldi2uue0Cb8FKM6f4HUFOK3noA7fA1W9uVg1LK/+X2/m9S5j8OSdd91SoEMsiujRC+ftKsAqzVFsA==" - StorageAccountName "adititraining" -ContainerName "powershell" Get Hosted service details Get-HostedService -subscriptionId 1e6830f6-90c1-479a-9956-02b3674a07e4 -certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) | where {$_.ServiceName -eq "fileuploaddownload"} | Get-Deployment staging Create New Deployment New-Deployment -subscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) -serviceName adititraininghost -slot staging -package "D:SaravananSample SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishDeployDemo.cspkg" - configuration "D:SaravananSample SRCMyDemoPowerShellDeployDemoDeployDemobinReleaseapp.publishServiceConfiguration.Cloud.cscfg" -name DeployDemo -label DeployDemo -storageservicename adititraining Remove Hosted Service Remove-HostedService -ServiceName DemoPack -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" -Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) Remove Storage Account Remove-StorageAccount -StorageAccountName "powershelldemo" -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" - Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6) Remove Deployment Remove-Deployment -Slot staging -ServiceName adititraininghost -SubscriptionId "1e6830f6-90c1-479a-9956-02b3674a07e4" - Certificate (get-item cert:CurrentUserMYDA6BBE12F81C987449A6FF5E4BB638BF55DB53D6)
  • 15. 15 References Windows PowerShell Web site PowerShell Features TechNet Script Center Repository for PowerShell PowerShell Tips A-Z PowerShell 2.0 Commands Windows PowerShell Cmdlet Help Topics Windows PowerShell Quick reference PowerShell Owner's Manual PowerShell Tutorial PowerShell.com http://msdn.microsoft.com/en-us/library/ms714658.aspx http://blogs.technet.com/b/heyscriptingguy/ http://en.wikipedia.org/wiki/Windows_PowerShell#Examples