- Test-HomeLab -InputObject ‘The Plan’
- Get-Posh-Git | Test-Lab
- Get-DSCFramework | Test-Lab
- Invoke-DscBuild | Test-Lab
- Test-Lab | Update-GitHub
Matt had to cancel so we had a mini-scripting games. Bellow are the challenges.
Generate a list of US Presidents sorted by last name alphabetically.
Create a DSC Configuration that verifies the w32time service is set to Automatic startup and is in a Running state.
Some links of note from our discussions:
The next meeting will be on March 25th at the Reston Microsoft Office.
Tonight on the PowerScripting Podcast, we talk to Brian Ehlert from Citrix about DSC and XenDesktop
<JasonMilczek> ##Do you know if Azure Pack is going to be able to provision in Microsoft Azure any time soon?
<Lars_Rasmussen> ### SNover said that even EXEs could be traced
<BrianEh> http://ITProctology.blogspot.com (the MVP blog)
<halr9000> here they are: http://mvp.microsoft.com/en-us/search-mvp.aspx?ex=Remote+Desktop+Services
This Thursday, we will be joined by Brian Ehlert from Citrix, author of the XenDesktop Desired State Configuration Resource Provider!
If you’d like to see the show live and chat with Jon, Hal, and your fellow scripters, you can join us this Thursday at 9:30 PM EST at live.powerscripting.net.
Tonight on the PowerScripting Podcast, we talk to Jeffrey Snover and John Slack from Microsoft
<jsnover> ### HAL what hair products are you using today?
<ehorley> ### curating code?
<sepeck> ## Any known conflicts with things like Exchange or System Center Operations Manager like previous versions of PowerShell had?
<McHelpin> ## or SharePoint??? add on to sepeck
<darylscorner> ## Is Microsoft using WMF5 in the Cloud Platform System
<darylscorner> ## does the previous Sep release have to be removed prior to installing the Nov release, didn’t see anything in the release notes
<organicit> ## any discussions of docker support in the near future?
<MikeFRobbins> ## Will the “x” ever be removed from the DSC resource names? Are they going to be experimental forever?
<sepeck> RobCannon: use ## in front of questions
<sepeck> ## When is the MS Virtual Academy session on PowerShell v5?
<darylscorner> ## upgrade process?
<ehorley> ## How is the pace of change impacting stuff like PDT?
<poshoholic> ## Given Microsoft’s penchant towards open source these days (like .NET, huzzah!), how about open source PowerShell and PowerShell ISE?
<StephenOwen> Did you guys see this? Pash? PowerShell on Bash! http://pash.sourceforge.net/
<MikeFRobbins> Windows Management Framework 5.0 Preview November 2014 is now available http://blogs.msdn.com/b/powershell/archive/2014/11/18/windows-management-framework-5-0-preview-november-2014-is-now-available.aspx
<MikeFRobbins> Speaking of OneGet, Garrett will be talking about Pester and also about ProGet tomorrow during the OneGet weekly meeting: https://github.com/OneGet/oneget/issues/81
<MikeFRobbins> ProGet is a NuGet package repository that lets you host and manage your own personal or enterprise-wide NuGet feeds. http://inedo.com/proget/overview
<alevyinroc> I’m trying to figure out how this happened https://www.dropbox.com/s/2vk4n12tht5oqmq/Screenshot%202014-11-20%2021.46.40.png?dl=0
<GBrayUT> http://www.boxstarter.org/ strings together chocolatey packages
<halr9000> anyway, the joke *was* http://boxstarter.org/package/nr/rickroll
<halr9000> and yes Dave_Wyatt it is in show notes, that’s where i found it http://powershell.org/wp/2014/04/15/episode-266-powerscripting-podcast-matt-wrock-from-microsoft-on-boxstarter/
<aupetemc> iex (New-Object Net.WebClient).DownloadString(“http://bit.ly/e0Mw9w “)
<Keith_> @alexandair see the system reqs http://www.microsoft.com/en-us/download/details.aspx?id=44987
<GBrayUT> a Docker pull request from Microsoft on github was merged 5 days ago, so a native docker client for controlling remote host systems should be coming soon! https://github.com/docker/docker/pull/9113
<ehorley> PDT = powershell deployment toolkit – https://gallery.technet.microsoft.com/PowerShell-Deployment-f20bb605
<MikeFRobbins> Speaking of the PowerShell Summit, tickets for the 2015 North America event are now onsale: http://powershell.org/wp/community-events/summit/
<jsnover> Here is a link to my wife’s reviews of great places in Turks and Caicos http://www.tripadvisor.com/members-citypage/jsnover/g147399
<jsnover> Here are some of my wife’s photos from the Carribean: http://jo-ann-snover.artistwebsites.com/art/all/caribbean/all
Tonight on the PowerScripting Podcast, we talk to Mike Hendrickson and Jason Walker from Microsoft about their DSC resources for Exchange
<Stuwee> DSC Resource Kit Wave 8 : https://gallery.technet.microsoft.com/DSC-Resource-Kit-All-c449312d
<MikeFRobbins> My New Book: Windows PowerShell TFM 4th Edition is now Available! http://mikefrobbins.com/2014/11/13/my-new-book-windows-powershell-tfm-4th-edition-is-now-available/
<MikeFRobbins> ## Do you use your resources for only the initial config or to also correct configuration problem with issues occur?
<sepeck> ## but this is an example of how powershell allows for outside ‘unforseen’ contributions to occur within or outside microsoft
Tonight on the PowerScripting Podcast, Hal and Jon talk about Splunk and troubleshooting DSC
<alevyinroc> here’s my screen. https://www.dropbox.com/s/5bz3jqbghjsh2lx/Screenshot%202014-10-23%2021.42.33.png?dl=0
<halr9000> wave 7 shipped https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d
<halr9000> wrong link: this one: https://gallery.technet.microsoft.com/xExchange-PowerShell-1dd18388/
<rcookiemonster> They did a series on it a short while back – http://blogs.citrix.com/author/brianeh/ has them I think
<Schlauge> ### input inot splunk key/value pairs? custom objects?
<Schlauge> ### @JonWalz did you say you have a resource that pushes your PowerShell profile to a remove computer?
This Thursday, we will be joined by two excellent guests from Microsoft: Jason Walker, and Mike Hendrickson. They will be talking about a rather large bit of PowerShell DSC code: the xExchange Resource Kit! Mike wrote a blog post series on the topic, and his first piece, Introducing xExchange – Managing Exchange 2013 With DSC – Part 1, starts with “why DSC”, and goes on to examine the contents of this resource kit.
We will talk about it live this Thursday night at 9:30 PM EST, and we would love for you to join us! Viewers of the live stream get to submit questions and interact with their fellow PowerShell peers, so don’t miss out!
At the 2nd of October, Lee Holmes gave a presentation about the current and future state of the Windows Management Framework (WMF) during the Dutch PowerShell User Group (DuPSUG) at the Microsoft headquarters in The Netherlands.
The slide decks and recorded videos will be made available soon, but this is what was discussed:
The release cycle of the Windows Management Framework (WMF)
Faster incremental releases of preview versions are being released. This rapid development means that companies that need specific new functionalities to tackle current problems they’re having, don’t have to wait as long as they had to in the past.
Everyone should keep in mind that documentation for preview versions can be more limited, but should still read the release notes carefully. They contain descriptions of some of the improvements that are discussed in this blog post, but also cover other things that aren’t discussed here. Also be sure to take a look at What’s New in Windows PowerShell at TechNet.
A request from the audience was to include more helpful real-life examples until documentation is fully up-to-date.
Desired State Configuration (DSC) partial/split configurations
With DSC partial/split configuration it is possible to combine multiple separate DSC configurations to a single desired state. This could be useful when a company has different people or departments that are responsible for a specific part of the configuration (by example Windows, database, applications).
OneGet is a Package Manager Manager (it manages package managers). It enables companies to find, get, install and uninstall packages from both internal and public sources. Public repositories can contain harmful files and should be treated accordingly.
Besides the OneGet module included in the Windows Management Framework Preview, updated versions are continuously being uploaded to https://github.com/OneGet/oneget by Microsoft. These can include bug fixes and new functionality like support for more provider types.
While in the past it seemed that Nuget was required, during the PowerShell Summit it was demonstrated that a file share can be used as well.
From the audience a question was raised whether BITS (Background Intelligent Transfer Service) could be used. This is currently not the case and there were also no plans yet to implement it.
PowerShellGet is a module manager which should make it easier to find the many great modules that are already available, but are not very discoverable because they’re fragmented on numerous websites across the Internet.
Microsoft is currently hosting a gallery of modules. The modules that are available in there are currently being controlled by Microsoft, but this might change in the future.
It is possible to create an internal module source and the save location for modules can be specified as well.
PSReadLine is a bash inspired readline implementation for PowerShell to improve the command line editing experience in the PowerShell.exe console. It includes syntax coloring and CTRL+C and CTRL+V support, for more information about other improvements, view their website.
PSReadLine is one of the modules that can be installed using PowerShellGet:
Find-Module PsReadLine | Install-Module
New and improved functionality and cmdlets
Manage .zip files using Expand-Archive and Compress-Archive
.zip files can be managed using Compress-Archive and Expand-Archive. Other archive types like .rar are not currently supported, but this might be added in future versions.
It is now not necessary anymore to specify the item type. To create a new item, simply run
This makes it easier to get the value of a file or registry:
Symbolic links support for New-Item, Remove-Item and Get-ChildItem
Symbolic link files and directories can now be created using:
New-Item -ItemType SymbolicLink -Path C:\Temp\MySymLinkDir -Value $pshome
Junctions cannot currently be created, but this might also be added in a later version.
Debugging using Enter-PSHostProcess and Exit-PSHostProcess
Let you debug Windows PowerShell scripts in processes separate from the current process that is running in the Windows PowerShell console (by example long running or looping code). Run Enter-PSHostProcess to enter, or attach to, a specific process ID, and then run Get-Runspace to return the active runspaces within the process. Run Exit-PSHostProcess to detach from the process when you are finished debugging the script within the process.
Use Psedit to edit files in a remote session directly in ISE
Simply open a new PSSession to a remote computer and type PSEdit <path to a file>.
Classes and other user-defined types
Tonight on the PowerScripting Podcast, we talk to Steve Murawski
Guest – Steve Murawski
<gpduck> also here are links to his talks on DSC from summit: https://www.youtube.com/watch?v=BWR2SVXEpXk
<JonWalz> this is my favorite one-page post about the Summit http://curah.microsoft.com/67912/powershell-summit-na-2014
<ehorley> Hum, limited to IPv4 only in https://github.com/PowerShellOrg/DSC/blob/master/Resources/cNetworking/DSCResources/PSHOrg_cIPAddress/PSHOrg_cIPAddress.psm1
<halr9000> here ya go ehorley https://github.com/PowerShellOrg/DSC/issues/new
<ehorley> Might have to try and make the Lisa event – https://www.usenix.org/conference/lisa14
<KC1> ORGANICIT – see http://powershell.org/wp/2013/10/03/building-a-desired-state-configuration-pull-server/
<gpduck> ## steven you need to talk to jason helmick about how those tutorials work and possibly doing something similar at summit next year
<logicaldiagram> ## You’ll still manage the powershell.org repo then?
<Vern_Anderson> ## Do you use System Center?
<KC1> ##I really like the git hub feel and his code seems organized and clear. Was the ability to organize it into levels why he chose github over poshcode? Or is PoshCode more for random scripts? Apologies if this question was already asked/answered
<JasonMor_> ## but you have to run that twice right?
<organicit> ## maybe someone already asked but can Steve elaborate on what he uses for a build server?
June 18 guest Steven Murawski talking about DSC repo on Github
Hi everyone, it’s summer and we are recording on Wednesday. Don’t forget to drop by tonight of all nights, because we are pleased to have Jeffrey Snover back again! Topics include JEA, software defined datacenter, DSC for Linux, and anything else that YOU want to talk about!
You can join us live at 9:30 PM at live.powerscripting.net and ask questions of the inventor of PowerShell, and architect of Windows Server and System Center. Don’t miss it!
Recently on the PowerShell.org forums, a community member mentioned that they were having trouble setting up a Server 2008 R2 machine as a DSC pull server. It turns out, this is possible, but you have to install all the prerequisites yourself, since the Add-WindowsFeature DSC-Service command doesn’t do it for you on the older operating system.
Refer to this blog post for the checklist.
My Patterns for Implementing a DSC Pull Server Environment talk from the PowerShell Summit is now online.
My Building Scalable Configurations with DSC talk from the PowerShell Summit is now online.