PowerShell
PowerShell: Detecting Network and VPN Connections Print E-mail
PowerShell
Written by Darwin Sanoy   
Saturday, May 3, 2014 6: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?
 
How to Create Elegant PowerShell Custom Objects In Code Print E-mail
PowerShell
Written by Darwin Sanoy   
Tuesday, November 12, 2013 8:20pm
PowerShell custom objects are really the way to go for handling complex data in a script.  Recently I had a need to create a set of custom objects in script code, but all the samples Google offered were convoluted.  Clearly it was time to evolve the existing solutions into something more elegant.  The result is code that is easy to understand for the beginner and a breath of fresh air for the veteran. 
 
PowerShell Editor Is Slow Starting Up When You Are Browsing Code? Speed It Up to Instant! Print E-mail
PowerShell
Written by Darwin Sanoy   
Wednesday, October 16, 2013 12:14pm
Dedicated PowerShell ISEs and IDEs all seem to be slow starting up.  Some are worse than others, but they are all painfully slow compared to good old notepad.  For code peeking we've got somethat is even faster than notepad! 
 
PowerShell Oneliner: Load All Non-Cached App-V 4 Packages Into the Cache Print E-mail
PowerShell
Written by Darwin Sanoy   
Wednesday, October 9, 2013 6:31am
During an SCCM 2007 to SCCM 2012 migration my team had an unsavory discovery about the App-V 4.6 packages that had been deployed under SCCM 2007.  After the migration, if a user launched an App-V application that hadn't been launched *at least once before* the migration - App-V would attempt to load the App-V cache by looking in the old SCCM 2007 cache location - which was now gone.  Citrix was where this really hurt.  This article contains PowerShell Oneliner you might want to run *before migration* to avoid this problem.
 
Admin Script Editor 4.0 Is Now FREE! Print E-mail
PowerShell
Written by Darwin Sanoy   
Friday, October 4, 2013 3:13am
Just heard from Bob Kelly that the latest release of the primary competitor to Primal Script is now free.
 
PowerShell Oneliner to Check for Elevated Admin Rights (not Administrator Group Membership) Or System Account Print E-mail
PowerShell
Written by Darwin Sanoy   
Friday, August 16, 2013 5:45pm

There are 1000 scripts out there to tell you if a user is *in the local administrators group*.  However, what you usually want to know is "is the current process running as an elevated administrator".  The difference between these is not small.  I can be in the local administrators group, but be running under UAC and my process does not have full administrator rights.  Or I can be in a group that is in a group that is in the local administrators group and elevated - but a script looking directly for my name won't find my user id directly in the administrators group.  Or my script can be running under the System account which has local administrators rights, but is not in the local administrators group.

 
<< Start < Prev 1 2 Next > End >>

JPAGE_CURRENT_OF_TOTAL