Just come across an odd problem with Live Writer. Experimenting with the copy-script function from http://blogs.msdn.com/powershell/archive/2009/01/13/how-to-copy-colorized-script-from-powershell-ise.aspx I created a simple script and ran the copy script command and tried to paste into Live Writer. No go. Live Writer stops working!! I can paste the script into Word and then do another cut and paste but […]
Archive for January, 2009
Found an interesting challenge on the WinIT magazine forum. Take an XML file <recipe name="bread" prep_time="5 mins" cook_time="3 hours"> <title>Basic bread</title> <ingredient amount="8" unit="dL">Flour</ingredient> <ingredient amount="10" unit="grams">Yeast</ingredient> <ingredient amount="4" unit="dL" state="warm">Water</ingredient> <ingredient amount="1" unit="teaspoon">Salt</ingredient> <instructions> <step>Mix all ingredients together.</step> <step>Knead thoroughly.</step> <step>Cover with a cloth, and leave for one hour in warm room.</step> <step>Knead again.</step> […]
Eileen has posted about a fairly long life span for one of the certificates on her machine – http://blogs.technet.com/eileen_brown/archive/2009/01/29/a-very-trusted-certificate.aspx If you want to find the certificate that will last the longest on your machine – PowerShell is there for you Get-ChildItem -Path Cert: -Recurse | Sort Notafter -Descending | Select -First 1 | Format-List use […]
I realised after my post on advanced functions that I am getting ahead of myself. Part of what I wanted to do was take the functional code in the original script and wrap it up to make it moe production orientated. I suspect like many I tend to write scripts to do a job and […]
In this post – http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2006.entry – I mentioned the puzzle set by Jeffrey Hicks in his PowerShell column. If you want the answer it is available at – http://mcpmag.com/columns/article.asp?editorialsid=2977 Technorati Tags: PowerShell
I have been using Live Writer for a while now and it is pretty good. The latest version has some good improvements like a preview pane and the ability to see and work with the source. Major gripe is that I can’t set a default font. It keeps reverting to Verdana which I hate. One […]
Lesson number 1 – Read the Release Notes properly. Went to use the new Out-GridvView cmdlet in CTP 3 and discovered that I needed .NET 3.5 SP1. I knew from CTP 2 that I needed .NET 3.5 so didn’t really pick up on the SP1 Download and install it from here http://www.microsoft.com/downloads/details.aspx?FamilyId=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en You will also […]
I somehow ended up agreeing to do a session on Regular Expressions at an upcoming PowerShell UG meeting. Not sure how it happened as RegEx is not my favourite topic. I sort of started looking into it a while back but got distracted. I was browsing round some of my blog links and it seems […]
I was experimenting, OK I was playing around, with dates and decided to put in Christmas Day PS> $xmas = [datetime]"25/12/09"Cannot convert value "25/12/09" to type "System.DateTime". Error: "String was not recognized as a valid DateTime."At line:1 char:19+ $xmas = [datetime] <<<< "25/12/09" + CategoryInfo : NotSpecified: (:) [], RuntimeException + FullyQualifiedErrorId : RuntimeException Oops […]
If you are just learning PowerShell and want to see how you are doing or you know PowerShell and want a problem to solve have a look at Jeffrey Hick’s Prof. PowerShell latest column at http://mcpmag.com/columns/article.asp?editorialsid=2963 Technorati Tags: PowerShell,puzzle
Categories
- .NET
- Active Directory
- Architecture
- Azure
- Bash
- BITS
- Books
- CDXML
- CIM
- Cloud
- COM
- Containers
- Deep Dive
- Desired State Configuration
- DevOps
- DHCP
- DNS
- DSC
- European Summit
- Events
- Exchange
- File System
- Firewall
- General
- General IT Matters
- Hyper-V
- IIS
- Infrastructure
- IT Community
- IT Security
- Learning PowerShell
- Linux
- Math
- Microsoft
- Modules
- Nano Server
- Networking
- Office 2010
- Office 2013
- Open Source
- Opinion
- Outlook
- Philosophy
- PowerShell
- PowerShell 7
- PowerShell and .NET
- PowerShell and Active Directory
- PowerShell and CIM
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- PowerShell Basics
- PowerShell original
- PowerShell Summit
- PowerShell User Group
- PowerShell User Group 2
- PowerShell v2
- PowerShell V3
- PowerShell v4
- PowerShell v5
- PowerShell v6
- PowerShell.org
- PowerShellGet
- PowerShellV2
- PSAM
- Rant
- Registry
- Scripting
- Scripting Games
- Scripting Games 2104
- Security
- SQL Server
- Storage
- Strings
- Summit
- Technology
- Uncategorized
- Virtualization
- Windows 10
- Windows 2012 R2
- Windows 7
- Windows 8
- Windows 8 Server
- Windows 8.1
- Windows Server
- Windows server 1709
- Windows Server 2008
- Windows Server 2008 R2
- Windows Server 2012
- Windows Server 2012 R2
- Windows Server 2016
- Windows Server 2019
- WMFv5
- WPF
- WSUS