I’m trying out a new Live Write plugin for Amazon. Here is a list of books I have currently authored or co-authored. This list will continue to grow as I’m working on a new book now about managing Active Directory with PowerShell. WSH and VBScript Core: TFM by Jeffery Hicks Read more about this book……
Search Results for: html
Wayne’s World of IT
One of my more popular blog entries is the one I did about CMD one-liners. These are little tidbits of commands that can get a lot done. The list came from a reader and I was happy to share. Wayne has now started a blog Wayne’s World of IT which will carry on this theme…
Get Latest File
I was helping out in the MSN Groups scripting forum recently. The admin needed to find the latest file or most recently modified file in a folder. That sounded reasonable to me so I put together a function and short script that uses it. I thought I’d share it here: ‘GetLatestFile.vbsstrDir=”S:”WScript.Echo “The newest file is…
More with Process and Service uptime
Like most things scripting, there’s usually more than one way to do things. I thought I had a nice solution for getting service uptime via WMI. But alas, there is an even easier way. PowerShell has a ConvertToDateTime method which will convert a WMI time to a standard date time format. $p=ps winlogon$p=get-wmiobject -query “Select…
More with Service Uptime
I knew I wasn’t totally satisfied with my recent attempt at listing service uptime. I knew there was a more elegant solution and here it is: $s=Get-WmiObject -query “Select name,processId,state from Win32_service where state=’running'”foreach ($item in $s) {$p=(Get-Process | Where {$_.id -eq $item.ProcessID}).StartTime$u=(get-date).Subtract($p)Write-Host $item.Name `t $u.Days day $u.hours hours $u.minutes minutes and $u.seconds seconds} It…
PowerShell DBA
There is a very nice review of the new Powershell book at : http://weblog.infoworld.com/dbunderground/archives/2007/01/rtfm.html. I’m glad he likes the book, even though he doesn’t know who I am. But I’m working on it!! Anyway, the interesting point in his review is that he is looking at PowerShell from the perspective of a SQL DBA. In…
Revisit an old friend
I have a new blog at the SAPIEN blog that is a visit to an old friend, DosKey. Now, before you dismiss this as old-fashioned, take a moment to read the article and try it out. If you spend a lot of time at a command prompt, DosKey can make you more efficient. You can…
Batch File Logs
I’ve always liked creating audit logs in my VBScript work, but could never figure out how to create a nicely formatted log from a batch file. Now I have. See http://sapien.eponym.com/blog/_archives/2006/11/20/2513469.html for the details. Technorati Tags:Batch Scripting
PrimalScript 4.1 Release
SAPIEN Technologies has officially released PrimalScript 4.1. The latest version has a wealth of new features, but biggest (in my opinion), being support for Windows PowerShell which has also been released today. New Features: New Output pane Live Syntax Checking Community Browser New Look and Feel Keyword and Function PrimalSense Tool Browser Scanner File History…
Script Development Best Practice
When creating new scripts follow this best practice advice before you write a single line of code and you will be ahead of the game. Technorati Tags:Scripting
Win PrimalScript stuff and the new PowerShell Book
There is a blog on the SAPIEN site about the new Microsoft PowerShell Sweepstakes where you can win some pretty fantabulous prizes. Technorati Tags:PowerShell Scripting
PowerShell TFM is coming
It’s taken a lot of work, and some patience with Microsoft to get RC2 out of the door, but the new PowerShell book is in post-production. I don’t have a definite publishing date but it is coming! You can help us figure out how many to print by pre-ordering at Amazon. You can also check…
It’s Official
It must be official now. I’ll be working for SAPIEN Technologies as a Scripting Guru. I’m definitely exicted about it. SAPIEN Technologies – The Official Blog :: New Scripting Guru Joins SAPIEN Family
Writing the Registry in PowerShell
Last month I showed you how to read the registry in PowerShell. I went through a script that would read the registered owner and organization. Now I’ll show you how to change those properties in PowerShell. Here’s the script, which is also available for download from my script library. Here’s the script, then we’ll go…
Mourning Maynard
I’m taking a brief departure from the normal techie nature of the blog to note the passing of jazz trumpeter Maynard Ferguson. I played trumpet through my college years and have fond memories as a high schoold student seeing Maynard play in person. I can still recall seeing him at a high school jazz concert….