Skip to main content

Posts

Showing posts from July, 2015

Custom Active Directory Class – Morganton, NC – July 2015

I did not realize how much I missed the Appalachian Mountains and southern hospitality. This week I was asked to go to North Carolina to help those that keep IT in the public schools running smoothly. This was fun for me since my first job after college was the job these IT Pros were performing. We hit Active Directory hard. On day 1, everybody found about one of my favorite domain vulnerabilities ( See my blog post on this issue here ). We also did a lot of PowerShell activity with regards to Active Directory. We did a 1 hour, “How do I” and “Can you do this” with PowerShell. Looking forward to my next class here in NC.  

The Code for My Countdown Timer

OK, my good friend June said that I needed to post the code for my Arizona Coyotes countdown timer. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16   $formArizonaCoyotes_Load = {          $timer1 . Interval = 1000        $timer1 . Start () }   $timer1_Tick = {          $Date = Get-date -Year 2015 -Month 10 -Day 10 -Hour 19 -Minute 0 -Second 0               $Time = $Date . Subtract (( Get-Date ))               $Data =   " $( $Time . Days ) : $( $Time . Hours ) : $( $Time . Minutes ) : $( $Time . Seconds ) "        $LabelTime . Text = $Data }     That is it!.  SAPIEN PowerShell Studio 2015 writes the rest of the code for you.  Let’s take a look at a couple of key objects on the form.   Not visible on this form is another object called Timer1 .  The Load event for the form runs on lines 2 – 6.  We set Timer1 to tick every 1000 milliseconds (1 second).  We then call the Start method of Timer1 .  The Tick event for the timer

Another Fun Use for SAPIEN PowerShell Studio

OK, I am just having a little fun.  I am still in Japan and let me tell you what, sumo wrestling is not my thing.  Yes, I am in the barracks tonight totally bored out of my mind.  I just finished a proposal and needed something to do since I am getting tired of the sport with the big dudes in diapers throwing each other around. I decided to play around a little bit and created a countdown to the first home game for the Arizona Coyotes.  Like I said, I am not a sumo kind of guy.   This is going on my desktop.

Update to my Navy Date Time Group Generator using SAPIEN PowerShell Studio

Good morning from Japan.  I’ve been in Japan for the last week and a half doing my duty as a Navy Reservist.  I am very much looking forward to heading home very soon.  Today I found a chance to introduce another fellow IT here in the Navy to PowerShell.  You could see the hamster wheel in his head turning fast. During some training, I discovered that I am not the only one who mixes up the numbers for a Navy Date Time Group (DTG).  Well, I decided to make an update to my original code . I decided to pull out Sapien PowerShell Studio.  I needed to make this easy to use and since not all potential users are PowerShell experts, I put the code into a GUI.  Looking at the code below, I did nothing to the original code except to add 2 spaces in the output to make the string correct by Navy standards.  Here is what the finished product looks like. The concept is the same.  This is just a live updating version.  If you need the current DTG on the clipboard, just click Send to Clipboard . N