background preloader

PowerShell Pro!

Related:  Powershell | Windows PowerShell Dmitry’s PowerBlog PowerShell and beyond PowerShell Cmdlets for Active Directory Active Directory and PowerShell together offer a powerful set of cmdlets to manage and automate standard domain related tasks. Here are the most useful cmdlets for AD in PowerShell v5. Administering Active Directory is one of the most critical roles in any Windows network, and it doesn't take long before the number of servers, client computers, and users gets very large. In that kind of environment you're going to rely on automation to get your job done efficiently. PowerShell has the tools you need to get the job done, but you need to understand the basics of how to use them first. In this article we'll look at some of the basics of working with Active Directory groups and accounts using PowerShell. But first, let's start with how to create a test domain to play around with using PowerShell 5 and its default access to the PowerShell Gallery and Desired State Configuration (DSC) resources. How To Create A Test Domain Exploring A Domain With PowerShell Uh oh. Creating And Working With Users

A Taste Of PowerShell Windows Server 2008, Exchange advice. Help solving computer problems. VBScript PowerShell Remoting over HTTPS with a self-signed SSL certificate <span class="big">Please enable Javascript, because you won't see all of the content.</span> In this guide, you will learn how to use Enter-PSSession and Invoke-Command to securely manage remote Windows machines with PowerShell over HTTPS using a self-signed SSL certificate that we create with PowerShell. Back to the PowerShell tutorial Allowing unencrypted PowerShell Remoting ^ First, it is possible to allow unencrypted WS-Management communication. winrm set winrm/config/service '@{AllowUnencrypted="true"}' Allowing unencrypted WSMan traffic on the server And this one does the same on the client side: winrm set winrm/config/client '@{AllowUnencrypted="true"}' Even though WS-Management encrypts all traffic by default, it is possible that someone (unknowingly) transmits unencrypted data because the default configuration has been changed. Allowing unencrypted WSMan traffic on the client To check how your machines are configured, you can run this command: Checking WinRM configuration Conclusion ^

Start-Automating Windows PowerShell Updated: July 8, 2013 Windows PowerShell® is a task-based command-line shell and scripting language designed especially for system administration. Built on the .NET Framework, Windows PowerShell® helps IT professionals and power users control and automate the administration of the Windows operating system and applications that run on Windows. The documents published here are written primarily for cmdlet, provider, and host application developers who require reference information about the APIs provided by Windows PowerShell. For the basic information needed to start using Windows PowerShell, see Getting Started with Windows PowerShell . Provides information about how to install the Windows PowerShell SDK. Provides information for administrators, script developers, and cmdlet developers who need to package and distribute their Windows PowerShell solutions. Provides information for designing and implementing cmdlets.

PowerShell Data Basics: XML To master PowerShell, you must know how to use XML. XML is an essential data interchange format because it remains the most reliable way of ensuring that an object's data is preserved. Fortunately, PowerShell makes it all easy, as Michael Sorens demonstrates. Introduction As with any high-level language, the data is at the heart of PowerShell. Accessing XML data in PowerShell There are two built-in techniques for working with XML data in PowerShell; the XPath approach and the object dot-notation approach. Figure 1 Schema for Microsoft’s sample XML fileo:p> To load this sample XML file, you can use any of these: if you would prefer to experiment with immediate XML data rather than load an XML file into an XmlDocument, it is simple to do. $mydoc= [xml] @" <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <price>44.95</price> <publish_date>2000-10-01</publish_date> <description>An in-depth look at creating applications with XML. <genre>Fantasy</genre>