Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Category: Scripting

Script Development Best Practice

Posted on November 13, 2006August 5, 2009

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

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Techmentor Las Vegas 2006 Demo CD

Posted on October 17, 2006July 2, 2013

I’ve posted the ISO for my demo CD from Techmentor Las Vegas 2006. This 160MB CD has all of my demos (including video demos), updated slides, web links. Be sure to install the VMWare Video codec (included) before you try to view any of the AVI files. For right now, or until bandwidth becomes an…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Logon Script Generator 1.1

Posted on October 10, 2006July 2, 2013

While testing some Techmentor demos with the Logon Script Generator, I found a few bugs. The tool allows you to use %username% in a file UNC (like \\file03\%username% and it substitutes the appropriate VBScript to get the username. What I didn’t take into account is if you wanted to have that be a hidden share…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

New Opportunities

Posted on October 5, 2006August 5, 2009

Beginning in November, I will be working for SAPIEN Technologies as a Scripting Guru. I’ll be spending a lot of time writing. There are plans for several new books through SAPIEN Press that I’ll be responsible for. I’ll also be much more active in the forums at ScriptingAnswers.com and other places around the Net. I’ll…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Writing the Registry in PowerShell

Posted on September 22, 2006August 5, 2009

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…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Background jobs in PowerShell

Posted on August 31, 2006August 5, 2009

The *nix world has always had the ability to run jobs in the background. Now it’s possible to do that in PowerShell. There is a terrific post on this at: http://jtruher.spaces.live.com/Blog/cns!7143DA6E51A2628D!130.entry You’ll need to copy some scripts and functions from the entry and save them locally. You also might need to tweak things if you…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Reading the Registry in PowerShell

Posted on August 26, 2006August 5, 2009

One of the great PowerShell features is that it treats the registry like any other location or directory. In PowerShell you can connect directly to the registry and navigate the key hierarchy just as if it as a logical drive with folders. I have a very brief demonstration script you can run to find the…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

New Script Search Engine

Posted on August 25, 2006July 2, 2013

SAPIEN has rolled out a new search site devoted to administrative scripting. The search engine is tuned to find scripts and information related to scripting. Right now it’s hand tuned to known specific sites with script libraries and the like. Their official announcement can be found here:SAPIEN Technologies – The Official Blog :: New Search…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Advanced VBScript Text Stats

Posted on August 21, 2006July 2, 2013

Amazon is always coming up with new ways to look at books and buying habits. The latest I came across are text stats. For books where they have access to the content, Amazon will process the text and come up with stats for things like complexity and readability. Because Amazon has the entire Advanced VBScript…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

More free scripting tools

Posted on August 16, 2006August 5, 2009

SAPIEN Technologies has released some free tools for scripters at http://www.primalscript.com/freetools/. One of them is the PowerShell help viewer I discussed a few posts back. This is great when you’re in PowerShell and can’t remember a cmdlet’s syntax. They also have a nifty WMI explorer. This tool lets you browse all WMI namespaces on your…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Printing from PowerShell

Posted on June 6, 2006October 16, 2009

PowerShell has a slick feature that allows you to send the output from a cmdlet or expression directly to a printer. Pipe the output to the Out-Printer cmdlet and it will print out on the default printer: get-process | out-printer If you have other printers installed you can use the printer name. For example, I…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Introduction to WMIC

Posted on June 2, 2006July 2, 2013

WMIC – An IntroductionWindows Management Instrumentation (WMI) is an extremely powerful technology that provides tremendous detail on how a computer system is configured and operating. What makes WMI so attractive to Windows administrators is that you don’t have to be a programmer to leverage it. WMI is available as a scripting option. There are many…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Use Internet Explorer in PowerShell

Posted on May 23, 2006August 5, 2009

Here’s a PowerShell Script that demonstates how to create COM objects in PowerShell, in this case an Internet Explorer instance. The script then takes the output of the Get-Service cmdlet and writes the results to the IE window. # IEServiceList.ps1# Jeffery Hicks# http://jdhitsolutions.blogspot.com# http://www.jdhitsolutions.com# May 2006#Display all running services in an Internet Explorer window new-variable…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Create Timestamp log in PowerShell

Posted on May 21, 2006August 5, 2009

Very often in administrative scripting you will want to create a log file where the filename is a timestamp like 200605201912.log. Since PowerShell is based on .NET Framework objects, we can take advantage of the DateTime object which is obtained by using the Get-Date cmdlet: PS C:\> get-dateSunday, May 21, 2006 6:47:03 PMIf we create…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More

Logon Script Generator

Posted on April 14, 2006July 2, 2013

I’ve developed a new and free HTA, in the “scriptomatic” philosophy, that generates logon scripts. You can pick your drive and print mapping combinations, including checking group membership, and create a working VBScript logon script without having to write a single line of code. The tool reads in lists of available drive and printer UNCs…

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email

Like this:

Like Loading…
Read More
  • Previous
  • 1
  • …
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • Next
reports

Powered by Buttondown.

Join me on Mastodon

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2026 The Lonely Administrator | Powered by SuperbThemes!
%d