CSI Windows News
DevOps Skillset: "Borderline Developer" Print E-mail
General
Written by Darwin Sanoy   
Thursday, August 20, 2015 9:27am

When I create cover letters and resumes, it is always a challenge to convey that although I don't code in a compiled language like C#, I understand and enjoy applying serious structured coding and testing techniques to the PowerShell code I write.

I believe this is not a small distinction when looking for DevOps professionals.  Many of us from the Infrastructure side of the house cut our teeth on coding by hacking together useful scripts in languages whose capabilities were Neanderthal.  A good portion of time was spent working around the limitations of the language, rather than being empowered by it's capabilities.

 
Learning About Systems by Stepping On the Cat's Tail Print E-mail
General
Written by Darwin Sanoy   
Saturday, August 15, 2015 5:59pm

When I was a toddler my dad caught me repeatedly stepping on the cat's tail.  Rather than react to my childishness with a reprimand, he simply asked "What are you doing?"  I proceeded to explain to him what is now commonly called a "four square" matrix.  

 
Avoid The Panic: Company Start Menu Folder Changed and I have Hundreds Of Packages to Update Print E-mail
PowerShell
Written by Darwin Sanoy   
Wednesday, June 17, 2015 6:49pm

I was teaching a great team of Packaging Automation Engineers our course "Windows Application Internals for Packaging, Virtualization, Automation and Troubleshooting" and their company had recently gone through a re-branding which included a company name change.  They were looking at a lot of work to comply with the request to change the start menu folder their company uses from the old company name to the new one.  Hundreds of packages to rebuild and reinstall ?  There has to be a better way!  There is...

 

 
Getting PowerShell 5 April Preview (5.0.10105) Running Windows 7 and Server 2008 R2 (some assembly required) Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, April 30, 2015 9:48pm

I am very excited that the PowerShell team has just delivered the April Preview that allows version 5 to run on Windows 7 SP1 and Server 2008 R2 (PowerShell Version 5.0.10105).  For this preview version there are a few foibles to getting it running on Windows 7.  The PowerShell team hopes to sort these out, but in the mean time I have put together a quick config that steps you though everything with one command line.

 

 
Oneliner: Enumerate Local Drives, but NOT App-V 4 Virtual Drive Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, April 23, 2015 8:37am

I had a need to list all local drives and went for the old fall back win32_logicaldisk, but I noticed it listed the App-V 4.6 virtual drive when scanning for type "3".

 
UPDATED: Getting VMWare Networking on Hyper-V for Windows 8 via the Fewest Possible Steps Print E-mail
General
Written by Darwin Sanoy   
Friday, April 10, 2015 10:41am

Wow - sometimes you don't know how easy you've got it until you step off the cliff!  That cliff for me was attempting to replace VMware Workstation with Windows 8 Hyper-V.  Hey Microsoft, you really should do something about this since I see it cited ad nauseam as a primary reason many IT Pros retreat from their attempt to adopt Win 8 Hyper-V and go back to VMware.  But in the meantime, I have some steps to make this as easy as possible.

 

 
Oneline of Code to Setup WMF 5, PowerShell 5 and the DSCResourcekit Print E-mail
PowerShell
Written by Darwin Sanoy   
Saturday, March 28, 2015 1:27pm

It's true that you can download and install the WMF / PowerShell 5 preview, install it and then with PowerShell-Get, install whatever DSCResourcekit modules you want - or use a command to install them all.  But that takes too long for my ADD - especially when I need a multi-machine setup to try out the walk throughs in either of the excellent Microsoft Virtual Academy classes Getting Started With PowerShell Desired State Configuration DSC or Advanced PowerShell Desired State Configuration (DSC) and Custom Resources!

 
Simple Settings / Data Storage and Retrieval In the Registry Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, February 5, 2015 9:16pm

Many times I've wanted a simple settings store for storing state data or settings for a script.  I thought there must be a built-in way to store and retrieve a hashtable in the registry - that would be leanest and most natural way to do it!  I was wrong... er, actually, now I am right - because like a good PowerSheller I went off and built it  :)

 
Paradigm Shift: The Power of Functions that Take Pipelined Input Print E-mail
PowerShell
Written by Darwin Sanoy   
Tuesday, December 16, 2014 1:00am

I wanted to build a simple function that merges all the registry files in a folder as a simple way to configure systems.  It quickly got complex when I realized it would be nice if it could also merge a single file or a bunch of reg files from a entire folder structure.  Then it hit me!

 
PSH Oneliner: Detect If Running On Virtual Machine Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, December 11, 2014 9:35pm

had to create a script that was only supposed to run on a virtual machine.  It needed to detect at least Hyper-V and VMWare, but I was about to get VirtualBox for free...

 
KB2984972 May Cause Problems with 32-bit App-V 4.6 Applications Using splwow64.exe to Print on 64-bit Windows 7 Print E-mail
Windows 64-bit
Written by Darwin Sanoy   
Wednesday, October 29, 2014 7:24pm
On 64-Bit Windows splwow64.exe is automatically used to interface 32-bit applications with 64-bit print drivers as part of the overall WOW64 subsystem.  Recently we applied KB2984972 and printing stopped working on most 32-bit App-V packages.
 
Idera PowerShellPlus Version 5.0 Released Print E-mail
PowerShell
Written by Darwin Sanoy   
Friday, October 24, 2014 6:59am

The free Idera PowerShellPlus remains my go to PowerShell editor for the unique combination of features it has...

 
PSH Oneliner: Find Last Logged On User(s) / Owner Print E-mail
PowerShell
Written by Darwin Sanoy   
Saturday, August 9, 2014 8:01am

Desktop management systems frequently add or update software using a user profile other than the actual user of the system.  This creates a classic problem in discerning which user profile(s) represent the active user(s) of the machine.  Several variants of this oneliner show a couple methods for identifying one or more "active", "recent" or "owning" users of the machine locally or remotely.  This article layer's up useful code that also demonstrates: selecting files by age, sorting one array with another, showing hidden files, selecting the most recent file and other techniques.

 
Enumerating Click To Run Installed Products for Office 365 ProPlus (2013) Print E-mail
Office 365
Written by Darwin Sanoy   
Wednesday, July 23, 2014 5:23pm

With the May 2014 release of the Office 365 Pro Plus Click To Run, Microsoft introduced the ability to install less than the entire Office suite.  Prior to this, enterprises installing Office 365 Pro Plus using *Click To Run* (NOT Windows Installer / MSI) could only install the entire suite - just like when 365 Click To Run is pull installed from the Microsoft Office 365 portal.  Awesome move Microsoft!  Many companies are planning to push only Lync 2013 Click To Run and follow up with the full Office Suite later or perhaps will need to add OneDrive at some point.  This raises an interesting question... How do you tell what 365 sub-products are already installed?

 

 
Server 2003 Migration Gotcha: 32-bit Desktop Applications on Citrix / RDS Print E-mail
Windows 64-bit
Written by Darwin Sanoy   
Wednesday, July 16, 2014 4:28pm

It is never ceases to amaze me how many application compatibility issues I diagnose that come down to challenges running 32-bit software on 64-bit Windows!  Flexera is sounding the same drum beat as the primary application compatibility concern when migrating off of Server 2003 and I have to say I agree.

 
PSH Oneliner: Fix Up App-V Shortcuts When Migrating from SCCM 2007 to 2012 (Can be used for global fixup of shortcuts of any type) Print E-mail
PowerShell
Written by Darwin Sanoy   
Friday, July 11, 2014 8:23am

Even if you followed the Microsoft playbook exactly when doing App-V 4.6 on SCCM 2007, when you migrate to SCCM 2012 you may be in for some pain.  The App-V shortcuts installed by SCCM link to a special launcher that is part of the SCCM clinet.  In the case of 2007, this is probably linked to "c:\windows\syswow64\ccm\vapplauncher.exe".  These links end up breaking when the SCCM 2007 client is removed while upgrading to the 2012 client.  The following PowerShell Oneliner screams through (yes it is quick) the Win32_Shortcut WMI name space to find all shortcuts to this file and updates them very quickly!

 
May Release of Office 365/2013 Click To Run (Desktop Apps) Allows Install of Individual Applications Print E-mail
General
Written by Darwin Sanoy   
Saturday, May 24, 2014 8:19am

With Office 2013 Microsoft created a new deployment and installation mechanism known as "Click To Run (CTR)".  This is the method used to deploy office from the web in a near instant fashion and it includes a type of "Runtime App-V" under the covers.  The same mechanism is used to deploy the Click To Run edition in corporations. Up until now you could only install the entire suite of Office applications when using Click To Run (MSI based installs have always retained full selective product install capabilities).

 
PowerShell Array Filter - Filter One PowerShell Array With Another Array Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, May 15, 2014 6:55am

In many languages combining or unisecting arrays is part of the standard operators or they have special operators to do this.  PowerShell does not have special operators and it has taken me a very long time to figure out how to make it do this!

 
PowerShell OneLiner To Almost Fill Up Your Hard Drive Print E-mail
PowerShell
Written by Darwin Sanoy   
Thursday, May 8, 2014 3:49pm
What possible use could you have for almost filling up your hard drive?  Read on to find out...
 
PowerShell: Detecting Network and VPN Connections Print E-mail
PowerShell
Written by Darwin Sanoy   
Saturday, May 3, 2014 7:29am
If a machine is connected to the network via a VPN connection, you may want to think twice about sending them that 1.2 GB software install :)  But how do you detect a VPN or other type of connection?
 
<< Start < Prev 1 2 3 4 5 6 7 8 Next > End >>

JPAGE_CURRENT_OF_TOTAL