background preloader

Powershell Blog

Powershell Blog
Related:  Powershell

Channel 9 Powershell 133 Entries Language(s) 36 minutes, 5 seconds 36 minutes, 39 seconds 16 minutes, 54 seconds 26 minutes, 42 seconds 53 minutes, 20 seconds 19 minutes, 35 seconds 18 minutes, 40 seconds 30 minutes, 39 seconds 8 minutes, 13 seconds

PowerShell-Scripting.com Can I Get a Little PowerShell Help? -- Microsoft Certified Professional Magazine Online Prof. Powershell Can I Get a Little PowerShell Help? When looking for cmdlet help, PowerShell 3 goes beyond version 2 with an Update-Help cmdlet. Because Windows PowerShell is part of the operating system, updating help and documentation is difficult. PS C:\> help Get-WmiObject -online You would have to run this every time and for every command if you wanted to get the most up to date documentation. PS C:\> help About_Updatable_Help From a machine connected to the Internet, all you need to do is run the Update-Help cmdlet: PS C:\> Update-Help To avoid excessive network traffic, you can only use the cmdlet once every 24 hours. PS C:\> Update-Help -force Naturally you would need to do this on all your computers running PowerShell 3.0 which is a lot of Internet traffic. PS C:\> Save-Help \\file02\pshelp PowerShell will download a number of CAB files. PS C:\> Update-Help -sourcepath \\file02\pshelp Or you can take advantage of remoting: if ((get-date).DayOfWeek -eq "Monday") {Update-Help}

PowerShell Magazine Windows PowerShell Tutorial - Introduction Microsoft's new scripting language My mission is to two fold. Firstly, to encourage a new generation of script writers to learn PowerShell; secondly I want to provide experienced scripters with a bank of example scripts so that they can convert to PowerShell. To newbies I want to say: 'It really will be easy to get started. Windows PowerShell Tutorial Sections To help you discover the benefits of PowerShell, I will not only provide real life tasks, but also I will add learning points. In 2013 Microsoft released PowerShell 4.0. Alternatively, try $PSVersionTable. Individual PowerShell Tutorials Guy Recommends: Free WMI Monitor for PowerShell Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft's operating systems. Take the guess work out of which WMI counters to use when scripting the operating system, Active Directory, or Exchange Server. Download your free copy of WMI Monitor Getting Started with Windows PowerShell Four Reasons to Learn Windows PowerShell PowerShell Tutorial Samples

Windows PowerShell for Windows Server 2012 and Windows 8 Windows Server 2012 and Windows 8 Updated: March 25, 2014 Applies To: Windows 8, Windows Server 2012 This topic lists the Windows PowerShell® modules included with Windows Server® 2012 and Windows® 8. For information about the core features common to all versions of Windows PowerShell, see Windows PowerShell Core. PowerShell Tutorial - Windows PowerShell Console | PowerShell Pro! PowerShell Tutorial 1: Configuring the PowerShell Console PowerShell is required for tutorials on this site. If PowerShell is not installed on the system, please do so before moving on. A page on this site has been provided to assist in installing PowerShell. It can be found at Categories -> PowerShell Downloads -> Download PowerShell 1.0. This tutorial is an introduction to PowerShell, PowerShell concepts, and exercises in customizing the PowerShell Console. PowerShell Intro… PowerShell is a new… ok how many times have you read that already? It has become a daunting task to manage resources in large domains, GUI just won't DUI anymore. I've read and been asked the following, "VBScript is still a viable tool… so why should I learn PowerShell?" PowerShell was designed for .NET objects; VBScript does not support a method for communicating or interacting with .NET. This Introduction was not based on what PowerShell is but what PowerShell, as a Shell and a Scripting Language, can do for you.

10 cool things you can do with Windows PowerShell If PowerShell's learning curve has kept you from embracing it for daily use, "cool" might not be a word you'd associate with it. But PowerShell is here to stay. It's a core part of Exchange 2007, Windows Server 2008, and SQL Server 2008, and it has immense power worth tapping into. Here are some examples of how to put PowerShell to work. If PowerShell's learning curve has kept you from embracing it for daily use, "cool" might not be a word you'd associate with it. I'm going to put some fun into the PowerShell arena and show you a few tricks that will definitely come in handy. Note: Be careful, very careful Yes, this is a tool worthy of the name. This information is also available as a PDF download. #1: Report all of the USB devices installed PowerShell is Windows Management Instrumentation (WMI) aware. gwmi Win32_USBControllerDevice -computername SERVER1 |fl Antecedent,Dependent This will apply a filter to bring back the antecedent and dependent fields from the SERVER1 computer. Figure A

PowerShell Tip: How to pass multiple values from a comma-separated file as inputs I was recently working on some System Center-related PowerShell scripting and needed to pass multiple values from comma-separated list as inputs for a PowerShell script in which I needed to pass values into a couple of PowerShell functions. There is an example or two on the net with the beginnings of what I needed (HERE). I wanted to post this example for my own reference and for anyone else who might benefit. In my case, I wanted to take a comma-separated file containing 3 values on each line (line 1 being the header). My intent in this case was to 1. 2. 3. Sample comma-separated list (with header and three values) Parent,Child,WQLQuery Value1,value2,value3 Value1,value2,value3 Value1,value2,value3 PowerShell Syntax (Sample) to Read Values as Inputs We have a growing collection of PowerShell samples for System Center and general administration.

Running Windows PowerShell Scripts Against Multiple Computers Here’s a quick tip on working with Windows PowerShell. These are published every week for as long as we can come up with new tips. If you have a tip you’d like us to share or a question about how to do something, let us know. Find more tips in the Windows PowerShell Tip of the Week archive. Running Windows PowerShell Scripts Against Multiple Computers If there’s a problem with the Script Center – wait a minute, who said there was a problem with the Script Center? Um, as we were saying, if there’s a problem with the Script Center it’s the fact that our scripts are almost all designed to be run against one computer at a time. Yes, just like the Scripting Guys. Of course, in real life things aren’t so simple; system administrators (that is, people who actually use scripts, as opposed to simply writing about them) need to manage multiple machines. Well, to be honest, they don’t. But first things first. Using Command-Line Arguments bios.ps1 atl-fs-01 atl-fs-02 That’s pretty cool, isn’t it?

Blogs Q: When querying SS2005 Partitioned Tables, what kind of parallelism should I expect to see and how will that affect performance? A: First, a brief background on partitioning. SQL Server 2005 table partitioning provides many improvements in terms of manageability and availability. The manageability improvements allow metadata only switch-in and switch-out of a partition of data (supporting sliding window requirements). Now let’s look at how performance is impacted by partitioned tables. When a query uses a single partition e.g. all but a single partition is eliminated, SQL Server 2005 Intra-Partition parallelism can parallelize row retrieval using multiple threads up to the sp_configure’d value of Maximum Degree of Parallelism (MAXDOP). If your number of partitions is equal to MAXDOP or less, data skewing may cause some parallel threads to complete before others resulting in CXPACKET waits. Table 1: Retrieve 2 weeks of data Table 2: Set Statistics Profile: MAXDOP = 12 Best Practices:

QAD cmdlets reference - PowerGUI Wiki QAD cmdlets reference From PowerGUI Wiki Jump to: navigation, search The ActiveRoles Management Shell for Active Directory is an Active Directory specific automation and scripting shell that provides a command-line management interface for administering directory data either via Quest ActiveRoles Server or by directly accessing Active Directory domain controllers. This reference is for AD cmdlets version 1.4. You can download AD cmdlets here. The following cmdlets are currently in the package: Connecting to AD, domain controllers, ADAM Generic object management User management Group management Computer accounts AD security Email address management Windows 2008 fine-grained password policies Certificate and Public Key Infrastructure (PKI) management Auxiliary cmdlets Convert-QADAttributeValue ActiveRoles Server cmdlets These cmdlets - although available in the free setup will only work with full commercial Quest ActiveRoles Server product. Deprovision-QADUser Get-QARSLastOperation Views Personal tools Home

Related: