Author: jbmurphy
-
PowerShell to assign permission to a folder (not copy inherited permissions)
In my previous post, I used PowerShell to change the permissions of a top level folder. In that script, I took the folder in question and copied the inherited permissions to it, and then I tinkered it to be what I wanted. I wanted to do something similar, but I wanted a set of permission…
-
CentOS 6 in a VM – Console resolution
I can NEVER remember this, and every time I re-install CentOS in a VM I have to go searching. If you want the console size to be larger in a vm add vga=791 (for 1024×768) to the end of the kernel line in /etc/grub.conf. The VESA values (for linux) are here
-
How to add Gnome to a CentOS 6 minimal install
I have been using the minimal iso (CentOS-6.0-x86_64-minimal.iso) to install CentOS 6. I wanted to add a GUI to my vm, but I could not find easy documentation showing how to add a GUI, or Gnome in this case, to a CentOS 6 minimal install. I was not looking for the smallest X windows install,…
-
Back to 2000 visitors a month!
September and October we light. Backup up at 2000 for November! I better get busy if I ever want to hit 3000!
-
PowerShell: Return, ForEach,ForEach-Object and a pipe
I just figured this out late last night. I was pulling my hair out. If you look at the following PowerShell code You get a result of: 1 2 3 4 5 Next, if you look at this code (the only real difference being the lack of a pipe.) You get: 1 2 3 That…
-
PowerShell code to split a space delimited string – with double spaces
I am working on a PowerShell wrapper script to run multiple commands on multiple machines. The first thing I wanted to do was to chop up a space or comma delimited argument. (If you make an argument mandatory, and the user does not provide it, PowerShell will prompt you for it – and when prompted…
-
PowerShell wrapper scripts to find locked accounts and prompt to unlock
I wanted a quick way to find if an account is locked out (you get the call “I can’t log in”) and unlock it. I had a wrapper script that just called “Search-ADAccount –LockedOut” but I took it a bit further. The first of these two wrapper scripts/functions gets all the accounts that are locked…
-
Start Visual Studio form PowerShell
I am moving on to a new project – our migration from SharePoint 2007 to 2010. First thing I wanted to do was to upgrade my Solutions/Features from 2007 to 2010. I installed Visual Studio and started looking at how to recreate my Delegate JQuery Control (more on that later). The first thing I found annoying…
-
Deploy Visual Studio 2010 vai SCCM (silently)
I wanted to have Visual Studio 2010 on my machine. My motto is that if I have to install it, I should package it up in SCCM, so when I re-image, I can just press a button. Here were my steps. Nothing ground breaking in this post, but I wanted to document it for my…
-
Photos.app on my iPhone crashes, and Mac does not see any photos on my iPhone (iOS5)
Crap!!!! I had close to 400 pictures on my iPhone. I back it up all the time, but I had not “processed them” (my workflow is to use Image Capture.app to pull photos off of the iPhone, and into a folder, that I then import into iPhoto. I zip up (compress) the original folder containing…
