Showing posts with label powershell. Show all posts
Showing posts with label powershell. Show all posts

Monday, 19 October 2015

Get-Scripting Podcast Episode 43 - (Richard Siddaway talks PowerShell in Action 3rd Edition and more)

This is Episode 43 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:



Jonathan M:





Richard S:


  • European PowerShell Summit

https://twitter.com/RSiddaway

http://blogs.msmvps.com/richardsiddaway/




PowerShell News:

SolidFire PowerShell Tools now generally available

http://www.solidfire.com/blog/solidfire-powershell-tools-now-generally-available/


ANNOUNCING THE NEW PURE STORAGE POWERSHELL SDK

http://www.purepowershellguy.com/?p=7421

PowerShell in Action 3rd edition

https://manning.com/books/windows-powershell-in-action-third-edition

Use code mlwpiamvp for 50% off early access, not sure how long it's valid for


Desired State Configuration + Puppet

http://blogs.msdn.com/b/powershell/archive/2015/10/06/desired-state-configuration-puppet.aspx




PowerShell Resources:


PowerShell Summit YouTube Channel

https://www.youtube.com/user/powershellorg

Implementing a .NET Class in PowerShell v5

http://trevorsullivan.net/2014/10/25/implementing-a-net-class-in-powershell-v5/




Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/jonoble


Get-Scripting Facebook Group

Friday, 24 July 2015

Get-Scripting Podcast Episode 42 - (The Shell Awakens)

This is Episode 42 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:



Jonathan M:




Jonathan N:






PowerShell News:



Windows Management Framework 5.0 Preview April 2015 is now available

http://blogs.msdn.com/b/powershell/archive/2015/04/29/windows-management-framework-5-0-preview-april-2015-is-now-available.aspx

PowerShell DSC for Linux is now available!

http://blogs.msdn.com/b/powershell/archive/2015/05/06/powershell-dsc-for-linux-is-now-available.aspx

Microsoft Support for Secure Shell

http://blogs.msdn.com/b/powershell/archive/2015/06/03/looking-forward-microsoft-support-for-secure-shell-ssh.aspx

PoSh Cruise
June 18th - 25th 2016
poshcruise.org

PowerCLI 6.0

http://blogs.vmware.com/PowerCLI/2015/03/powercli-6-0-r1-now-generally-available.html

PowerActions 1.5

http://blogs.vmware.com/PowerCLI/2015/06/good-news-poweractions-now-available-vsphere-6-0-web-client.html

Onyx for the Web Client

https://labs.vmware.com/flings/onyx-for-the-web-client
http://www.jonathanmedd.net/2015/07/onyx-for-the-vsphere-web-client.html


#PowerShell Tools for @VisualStudio is now a feature you can enable at install time!

https://twitter.com/adamdriscoll/status/623173087404560384




PowerShell Resources:


Jeffrey Hicks new DSC courses:

Windows PowerShell Desired State Configuration Fundamentals
http://www.pluralsight.com/courses/powershell-desired-state-configuration-fundamentals

Advanced Windows PowerShell Desired State Configuration

http://www.pluralsight.com/courses/advanced-powershell-dsc

Day 100: Series Wrap-up for the “100 Days of DevOps”

http://www.systemcentercentral.com/day-100-series-wrap-up-for-the-100-days-of-devops/?utm_medium=twitter&utm_source=twitterfeed

Automating Microsoft Azure Infrastructure Services: From the Data Center to the Cloud with PowerShell

http://www.amazon.com/Automating-Microsoft-Azure-Infrastructure-Services/dp/1491944897/ref=sr_1_1?s=books&ie=UTF8&qid=1415478515

Scripting: Automating NetScaler configurations using NITRO REST API and PowerShell – Part 1

http://blogs.citrix.com/2014/09/19/scripting-automating-netscaler-configurations-using-nitro-rest-api-and-powershell-part-1/




Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf
http://twitter.com/jonoble


Get-Scripting Facebook Group

Wednesday, 24 December 2014

Get-Scripting Podcast Episode 41 - (Christmas Special and Quiz)

This is Episode 41 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Alan:





Jonathan M:



Jonathan N:



Music from

https://archive.org/details/SVFGC_LivingChristmasTree2004


PowerShell News:



PowerShell in Depth, second edition in print

http://richardspowershellblog.wordpress.com/2014/11/12/powershell-in-depth-second-edition-in-print/


http://www.manning.com/jones6/




PowerShell Resources:


First look at ConvertFrom-String in Powershell v5

http://www.happysysadm.com/2014/11/first-look-at-convertfrom-string-in.html?spref=tw


AR - PSReadline module -

http://www.hanselman.com/blog/TowardsABetterConsolePSReadLineForPowerShellCommandLineEditing.aspx


PowerShell Risk Assessment with ISESteroids 2.0

http://www.powertheshell.com/wp-content/uploads/RiskAssessment.pdf



AR - PowerActions

http://www.virtu-al.net/2014/09/16/powercli-vsphere-web-clientannouncing-poweractions/

https://labs.vmware.com/flings/poweractions-for-vsphere-web-client

Github resources


Working with Web Services, SOAP, PHP and all the REST with PowerShell

http://foxdeploy.com/2014/11/19/working-with-web-services-soap-php-and-all-the-rest-with-powershell/

Getting Started with PowerShell 3.0 Jump Start

http://www.microsoftvirtualacademy.com/training-courses/getting-started-with-powershell-3-0-jump-start






Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf
http://twitter.com/jonoble


Get-Scripting Facebook Group

Saturday, 29 November 2014

Get-Scripting Podcast Episode 40 - (Guest Co-Host Jonathan Noble)

This is Episode 40 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Jonathan M:

VMworld Europe
UKVMUG


Jonathan N:

Future Decoded
Presented on DSC in the DevOps track



PowerShell News:




News from TechEd Barcelona

PowerShell DSC is was demo'd using Dell Force10 switches (S4810 and S55)

https://twitter.com/jsnover/status/528178446078185472

https://twitter.com/jsnover/status/528171099033325568

https://twitter.com/jsnover/status/528168983623528449


https://twitter.com/jsnover/status/528168665682698240

Session here: Network Infrastructure Services in the Next Release of Windows Server for Datacenter Network Operations

http://channel9.msdn.com/Events/TechEd/Europe/2014/CDP-B330





.NET goes OpenSource

http://www.hanselman.com/blog/AnnouncingNET2015NETasOpenSourceNETonMacandLinuxandVisualStudioCommunity.aspx



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

Powershell DSC ResKit Wave 8: Now with 100+ Resources!

http://blogs.msdn.com/b/powershell/archive/2014/10/28/powershell-dsc-reskit-wave-8-now-with-100-resources.aspx




Call for Presentations for PowerShell Summit Europe 2015

http://powershell.org/wp/2014/11/24/call-for-presentations-for-powershell-summit-europe-2015/

14-16 September 2015, Stockholm, Sweden
Deadline: Sunday 11th Jan





PowerShell Resources:


Managing Exchange 2013 With DSC
http://blogs.technet.com/b/mhendric/archive/2014/10/17/managing-exchange-2013-with-dsc-part-1-introducing-xexchange.aspx


Ravi’s DSC book
http://www.amazon.com/Windows-PowerShell-Desired-Configuration-Revealed/dp/1484200179/ref=la_B00IODG4L4_1_1?s=books&ie=UTF8&qid=1412003029&sr=1-1

ISE Steroids 2

http://www.powertheshell.com/isesteroids2/

PowerShell Summit Europe 2014 – All videos available

https://www.youtube.com/playlist?list=PLfeA8kIs7Coehjg9cB6foPjBojLHYQGb_


PowerShell Tip


Great PowerShell Tip from Dr Tobias Weltner:  SystemInfo.exe /FO CSV | ConvertFrom-CSV.

https://twitter.com/jsnover/status/516579177395675136



Start-Transcript Now Available in the PowerShell ISE in PowerShell v5

http://www.jonathanmedd.net/2014/09/start-transcript-now-available-in-the-powershell-ise-in-powershell-v5.html



Getting Zippy with PowerShell v5

http://www.jonathanmedd.net/2014/09/getting-zippy-with-powershell-v5.html





Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf
http://twitter.com/jonoble


Get-Scripting Facebook Group

Monday, 15 September 2014

Get-Scripting Podcast Episode 39 - (Guest Co-Host Jonathan Noble)

This is Episode 39 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Jonathan M:

Presented a PowerShell session at the SouthWest VMUG - Doodle https://twitter.com/VirtualisedReal/status/473842487015256064/photo/1

Jonathan N:

Newcastle SQL Server User Group with some PowerShell

http://www.eventbrite.co.uk/e/sql-northeast-newcastle-sql-server-user-group-sqlnortheast-september-16th-2014-tickets-12625638625?aff=eorg


PowerShell News:



Updated PowerShell v5 preview

http://blogs.msdn.com/b/powershell/archive/2014/09/04/windows-management-framework-5-0-preview-september-2014-is-now-available.aspx


Chef with PowerShell DSC

http://blogs.msdn.com/b/powershell/archive/2014/07/29/chef-with-powershell-dsc-now-public.aspx

https://supermarket.getchef.com/cookbooks/dsc

European PowerShell Summit 2014

http://eventmgr.azurewebsites.net/event/home/PSEU14

DSC Summer Camp at Dons Place

http://donjones.com/2014/08/14/dsc-summer-camp-at-my-place/?utm_content=buffer948af&utm_medium=social&utm_source=twitter.com&utm_campaign=buffer





PowerShell Resources:


PowerShell v4 Quick Reference Guides

http://www.powershellmagazine.com/2014/04/24/windows-powershell-4-0-and-other-quick-reference-guides/

Using CredSSP with vCO PowerShell plugin

http://kaloferov.com/blog/using-credssp-with-the-vco-powershell-plugin/


100 days of Devops with PowerShell

http://www.systemcentercentral.com/announcing-the-100-days-of-devops-with-powershell-series/
http://www.systemcentercentral.com/day-1-intro-to-powershell-dsc-and-configuring-your-first-pull-server/


ISEREGEX – POWERSHELL ISE ADDON

http://nt-guys.com/iseregex-powershell-ise-addon/

Tintri PowerShell Toolkit

http://www.lucd.info/2014/08/14/tintri-automation-toolkit-basics-part-1/



PowerShell Tip



Watch Out With UNC Paths!

http://powershell.com/cs/blogs/tips/archive/2014/08/04/watch-out-with-unc-paths.aspx

Edit Network “hosts” File

http://powershell.com/cs/blogs/tips/archive/2014/08/05/edit-network-hosts-file.aspx


Disable IPv6

http://www.florisvanderploeg.com/configuring-windows-server-2012-core-powershell/





Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf
http://twitter.com/jonoble


Get-Scripting Facebook Group

Tuesday, 29 April 2014

Get-Scripting Podcast Episode 38 - (Happy New Year)

This is Episode 38 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Alan:





Jonathan:


PowerShell News:








PowerShell Resources:








PowerShell Tip








Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Thursday, 19 December 2013

Get-Scripting Podcast Episode 37 - (Jingle Bells)


This is Episode 37 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Alan:

Change in Role! - http://www.virtu-al.net/2013/10/20/goodbye-vmware-technical-marketing/
VMworld Barcelona - http://www.virtu-al.net/2013/10/22/vmworld-powercli-group-discussionpart-1getting-started/ http://www.virtu-al.net/2013/10/30/vmworld-powercli-group-discussionpart-2resources/ http://www.virtu-al.net/2013/11/05/vmworld-powercli-group-discussionpart-3launching-using/ http://www.virtu-al.net/2013/11/13/vmworld-powercli-group-discussionpart-4advanced-tools-scripting/




Jonathan:

PowerShell session at UKVMUG - Function templates http://www.jonathanmedd.net/2013/11/powercli-in-the-enterprise-breaking-the-magicians-code-function-templates.html
ISE Code Snippets http://www.jonathanmedd.net/2013/11/creating-powershell-ise-v3-and-later-code-snippets.html




PowerShell News:


HP Scripting Tools for Windows PowerShell http://www8.hp.com/us/en/products/server-software/product-detail.html?oid=5440657#!tab=features

http://thatcouldbeaproblem.com/?p=685

DSC Blog posts and PowerScripting Podcast

Steve M new Podcast (Ops All the things) http://stevenmurawski.com/powershell/2013/10/im-podcasting-again




PowerShell Resources:

PSReadline http://rkeithhill.wordpress.com/2013/10/18/psreadline-a-better-line-editing-experience-for-the-powershell-console/?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer39553&utm_medium=twitter

WebCommander - VMware Fling http://labs.vmware.com/flings/web-commander

PowerCLI Extensions - http://blogs.vmware.com/vipowershell/2013/11/vsan-and-vsphere-flash-read-cache-cmdlets.html

PowerShell Summit NA Agenda released http://powershell.org/wp/community-events/summit/powershell-summit-north-america/summit-agenda/


PowerShell Gotcha


WMF 4.0 does not check for .NET 4.5
http://www.jonathanmedd.net/2013/10/windows-management-framework-powershell-4-0-is-now-available-ensure-you-already-have-net-4-5.html

How to Install PowerShell v4 http://social.technet.microsoft.com/wiki/contents/articles/21016.how-to-install-windows-powershell-4-0.aspx


PowerShell Tip


When Sort-Object does not Sort

http://davotronic5000.co.uk/blog/when-sort-object-does-not-sort/

PowerShell V4 Tip from Jeff Hicks

#requires –runasadministrator

http://mcpmag.com/articles/2013/12/10/favorite-powershell-4-features.aspx




Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Wednesday, 9 October 2013

Get-Scripting Podcast Episode 36 - (The VMworld Expedition)


This is Episode 36 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Alan:

VMworld Sessions
Primalforms



Jonathan:

Using SSH to Access Linux Servers in PowerShell
Clone a VM from a Snapshot using PowerCLI
Automating the Pre-Requisites for vCAC 5.2




PowerShell News:


PowerCLI 5.5 released


Windows Server 2012 R2 with PowerShell v4 released


PowerShell Summit N.A. 2014 Public Registration Now Open (with Discounts)

http://powershell.org/wp/2013/09/15/powershell-summit-n-a-2014-public-registration-now-open-with-discounts/




PowerShell Resources:


Event-O-Matic - http://www.lucd.info/2013/09/02/event-o-matic/

Don Jones’ new PowerShell training videos - http://powershell.org/wp/2013/09/11/my-new-powershell-video-series-covering-v2v3v4-launches/

Learn PowerShell Toolmaking in a Month of Lunches - http://www.manning.com/jones4/




PowerShell Tip



#PSTip How to convert words to Title Case
http://www.powershellmagazine.com/2013/07/24/pstip-how-to-convert-words-to-title-case/




Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Monday, 22 July 2013

Get-Scripting Podcast Episode 35 - (Luc Dekens on becoming an MVP and his new book)


This is Episode 35 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:


Alan:


PowerShell summit

VMworld Sessions accepted

vSphere Replication

vCheck on GitHub

Off topic - Pebble watch

Jonathan:


PowerShell Deep Dive book nearly ready

Downloading Ranges of Lego Set Instructions with PowerShell


Interview:


Luc Dekens - Blog

vSphere Performance Reporting with PowerCLI: Automating vSphere Performance Reports

PowerShell News:


What's New in Windows PowerShell 4.0

http://technet.microsoft.com/en-us/hh857339.aspx



Desired State Configuration. Part of PowerShell v4 in 2012 R2

http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/MDC-B302#fbid=vx1qa_GV2YC

http://redmondmag.com/blogs/it-decision-maker/2013/06/desired-state-configuration.aspx



Scripting Games Winners

http://powershell.org/wp/2013/06/11/overall-winners-of-the-scripting-games/




PowerShell Resources:



Let’s Make New-VIProperty Easier
http://blogs.vmware.com/vipowershell/2013/01/lets-make-new-viproperty-easier.html

PowerShell Training Day with Jeffrey Snover
http://www.microsoftvirtualacademy.com/liveevents/PowerShell-JumpStart?CR_CC=200211917




PowerShell Tip



Show-Command and Get-Help -ShowWindow




Feedback


Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Saturday, 23 March 2013

Get-Scripting Podcast Episode 34


This is Episode 34 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:






Jonathan:





PowerShell News:




PowerShell has won one on InfoWorld’s Technology of the Year awards for 2013

http://www.infoworld.com/slideshow/80986/infoworlds-2013-technology-of-the-year-award-winners-210419#slide24


PowerCLI 5.1 R2 released



PowerShell Resources:



Automate your SDRS Anti-Affinity rules
http://www.lucd.info/2013/01/21/automate-your-sdrs-anti-affinity-rules/

Scheduling Update-Help for PowerShell v3
http://richardspowershellblog.wordpress.com/2013/01/15/updating-help-on-powershell-v3/



PowerShell Tip



Add a Parameter to Multiple Parameter Sets in PowerShell
http://www.jonathanmedd.net/2013/01/add-a-parameter-to-multiple-parameter-sets-in-powershell.html

Writing PowerShell Code on OS X using Sublime
 - Community Project to help fix PowerShell v3 Syntax https://bitbucket.org/Jaykul/sublimepowershell/

http://www.jonathanmedd.net/2013/03/writing-powershell-code-on-os-x-using-sublime.html



Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Friday, 21 December 2012

Get-Scripting Podcast Episode 33 - (Eric Williams - Cisco UCS PowerTool)




This is Episode 33 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:



Jonathan:

Finding Out Who You’re Not Following on vLaunchpad

http://www.jonathanmedd.net/2012/12/finding-out-who-youre-not-following-on-vlaunchpad.html


Using PowerShell to access the vExpert.me URL Shortener

http://www.jonathanmedd.net/2012/12/using-powershell-to-access-the-vexpert-me-url-shortener.html


Interview:

Eric Williams - Cisco UCS PowerTool



PowerShell News:



PowerShell Deep Dives - MEAP
http://www.manning.com/hicks/

Windows Management Framework 3.0 Compatibility Update
http://blogs.msdn.com/b/powershell/archive/2012/12/20/windows-management-framework-3-0-compatibility-update.aspx


Amazon Web Services continues Windows push with PowerShell addition

http://www.infoworld.com/d/cloud-computing/amazon-web-services-continues-windows-push-powershell-addition-208612


http://aws.amazon.com/powershell/




PowerShell Resources:



Work with E1000E NICs in PowerCLI

http://www.lucd.info/2012/11/16/work-with-e1000e-nics-in-powercli/



PowerShell Tip



SSH with Plink.exe

hostkey accept etc.
Echo Y | Plink.exe....



Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group


Saturday, 10 November 2012

Get-Scripting Podcast Episode 32



This is Episode 32 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:



Jonathan:

PowerShell Deep Dive Book



PowerShell News:


Windows 8 / Server 2012 released, i.e. PowerShell v3!

Available for downlevel OSs.

http://www.microsoft.com/en-us/download/details.aspx?id=34595



Scripting IDE showdown / slowdown?

PowerShell Plus is now free:

http://www.idera.com/Free-Tools/PowerShell-Plus/

PowerShell SE is no more?

http://powerwf.com/products/powerse.aspx

PowerGUI no longer in development?

PowerShell ISE the way ahead?




PowerShell Summit - Session Announced


http://poshoholic.com/2012/11/02/powershell-summit-community-sessions-list/


UKVMUG

http://www.vmug.com/p/cm/ld/fid=212




PowerShell Resources:



Get Regular Expression matches (DNS)


http://enterpriseadmins.org/blog/scripting/get-regular-expression-matches/


PowerScripting - the wives special

http://powerscripting.wordpress.com/2012/05/28/episode-187-teresa-scriptingwife-wilson-and-staci-halswife-rottenberg/



PowerShell Tip


Insert String Every N Characters


http://blog.expressionsoftware.com/2010/03/insert-string-every-n-characters.html

This PowerShell v2 script inserts a string every N characters. The interval is specified using the regex repetition operator, {min,max}.
$a = 'abcdefghijklmnopqrstuvwxyz'
([regex]::matches($a, '.{1,3}') | %{$_.value}) -join ' '
([regex]::matches($a, '.{1,8}') | %{$_.value}) -join '..'
([regex]::matches($a, '.{1}') | %{$_.value}) -join '-'

#output
abc def ghi jkl mno pqr stu vwx yz
abcdefgh..ijklmnop..qrstuvwx..yz
a-b-c-d-e-f-g-h-i-j-k-l-m-n-o-p-q-r-s-t-u-v-w-x-y-z

Removal of $_ and also $PSItem in PS v3

In PowerShell, the variable "$_" has special importance. It works like a placeholder in scenarios like this one:
PS> Get-ChildItem $env:windir | Where-Object { $_.Length -gt 1MB }
In PowerShell v3, there is an alias for the cryptic "$_": $PSItem. So now code can become more descriptive:
PS> Get-ChildItem $env:windir | Where-Object { $PSItem.Length -gt 1MB }
Then again, in PowerShell v3, "$_" isn't necessary in many scenarios anymore at all. You could also write:
Get-ChildItem $env:windir | Where-Object Length -gt 1MB






Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers

Tuesday, 24 July 2012

Get-Scripting Podcast Episode 31 - (Jonathan Noble talks PowerShell v3)


This is Episode 31 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:

Easily creating PowerShell Quick References

Jonathan:

PowerShell and XenDesktop at the UK PowerShell User Group

Automating MSI Installations with PowerShell

Checking 32bit PowerShell Snapins from 64bit PowerShell


Interview:




Jonathan Noble - Blog

http://www.jonoble.com/blog/2012/1/19/whats-new-in-powershell-v3-the-slides.html

http://www.virtu-al.net/2012/06/05/installing-powershell-web-access-on-windows-2012-rc-core/

http://blogs.msdn.com/b/powershell/archive/2012/06/14/new-v3-language-features.aspx




PowerShell News:

Windows Server 2012 Release Preview is out. Full release to ship in August. Then we will be in v3!

PowerShell Resources:


PowerShell for Network Pen Testing series over on Hey Scripting Guy


http://blogs.technet.com/b/heyscriptingguy/archive/tags/niklas+goude/


Be efficient – Virtualize & automate your test environment


http://blogs.vmware.com/vipowershell/2012/06/be-efficient-virtualize-automate-your-test-environment.html


PowerShell Gotcha



Numeric values as the first character in parameter names:


function foo {
[cmdletbinding()]
param (
[parameter()]
[switch]$32bit
)
if ($32bit){
"32bit"
}
}
PS c:\> foo -32bit
foo : A positional parameter cannot be found that accepts argument '-32bit'.


Workaround! - $x86
From the language specification document:


http://www.microsoft.com/en-us/download/details.aspx?id=9706

(no Nd)
first-parameter-char:
A Unicode character of classes Lu, Ll, Lt, Lm, or Lo
_ (The underscore characterU+005F)
?


https://connect.microsoft.com/PowerShell/feedback/details/753467/using-a-numeric-character-as-the-first-character-of-a-parameter-name-should-produce-a-clearer-error-message-and-be-permitted-if-it-also-contains-non-numeric-characters


Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers

Wednesday, 30 May 2012

Get-Scripting Podcast Episode 30 - (Jan Ring talks SCVMM)

This is Episode 30 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:
Alan:



Jonathan:

Working a contract for Citrix via Start-Automating


Interview:



Jan Ring

Blog

PowerShell News:

Scripting Games have taken place

PowerShell and WMI book from Richard Siddaway published

PowerShell Resources:


PoshChat


Convert Images to Text Ascii Art



Unofficial vCD Cmdlets





Don Jones - PowerShellbooks.com

PowerShell Tips:


Escaping a Regex when using -match

PS V:\> $TestError = "This is a (test)"

____________________________________________________________________________________________________________________________________
PS V:\> $RealError = "This is a (test)"

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match $RealError
False

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match [regex]::Escape($RealError)
True

____________________________________________________________________________________________________________________________________
PS V:\> $RealError = "This is a \(test\)"

____________________________________________________________________________________________________________________________________
PS V:\> $TestError -match $RealError
True


http://www.vistax64.com/powershell/199639-comparing-string-contains-parenthesis.html

Get Index of Item in an Array

Multiple Variable Assignment

PS C:\> $a,$b = 'apple','pear'

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $a
apple

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $b
pear



or


PS C:\> $a,$b = 'apple','pear','banana'

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $a
apple

________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________
PS C:\> $b
pear
banana

PowerShell Gotcha


Chat with Hal - ValidationSet not working with tab completion, enumeration.
Function a {

Param

(

[parameter(Mandatory=$true)]

[ValidateSet("Low", "Average", "High")]

[String[]]

$Detail

)

Process {

Write-Host $Detail

}

}

Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers

Sunday, 11 March 2012

Get-Scripting Podcast Episode 29 - (Pete Rossi talks Datacentre Automation)

This is Episode 29 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:


vCheck 6.15

PowerCLI for vCD: Basic Usage and Stopping and Starting vApps

Top Virtualisation Blogs


Jonathan:

Manage vCenter Plugins with PowerCLI

Interview:

Pete Rossi

Blog

SSH Component from WeOnlyDo

PowerShell News:

Scripting Games 2012


PowerShell Resources:

Create HMTL Graphs from PowerShell

Creating graphical charts with PowerCLI and PowerShell

What's New in PowerShell V3 - Jonathan Noble

Balloon Tips function


Powershell Tips:

Encrypt Password in a file for use in a script


Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers

Saturday, 11 February 2012

Get-Scripting Podcast Episode 28 - (Paul Iddon talks PowerShell and MDT)

This is Episode 28 of the Get-Scripting podcast. Tune in to listen to us talk and interview people about PowerShell.

Download it here, subscribe in iTunes or via a different feed reader.

Intro:

Alan:


vShield PowerShell Module

Using Console 2

PowerCLI 5.0.1 Release and vCD Cmdlets

vCheck6


Jonathan:

Testing Port Response

Checking Automatic services have started

Configuring HP EVA recommended vSphere settings with PowerCLI

Basic VMware Cluster Capacity Check

2nd place in the London VMUG vBaftas for community presentations in 2011


Interview:

Paul Iddon

Blog

PowerShell News:



PowerShell Deep Dive

Don Jones, Jeffrey Hicks and Richard Siddaway new book

PowerShell Resources:

Using PowerShell to list shared folders and permissions.

ByValue and ByProperty Parameter Binding

Using PowerShell with Internet Explorer

Powershell Tips:

Invoke-Sqlcmd

Alias attribute for advanced function parameters


PowerShell Gotcha


Text file with $false in it, read this into a variable and you have $false

Use it in an If Statement and what do you get (True)

You need to invoke-expression because it has a $ infront of it, so call it with powershell to actually run the powershell code so you can get the results.

[Boolean]$Var = $False
$Var = [System.Convert]::ToBoolean("$True")


Feedback

Send us feedback at

get [dash] scripting [at] hotmail [dot] co [dot] uk

or leave a comment here on the blog


Follow us on Twitter and join our Facebook Group

http://twitter.com/getscripting
http://twitter.com/jonathanmedd
http://twitter.com/alanrenouf

Get-Scripting Facebook Group

Extensive list of Powershell Twitterers