Alan's Blog

"Yeah. I wrote a script that will do that."

Menu
  • About My Blog
Menu

Who logs onto this computer?

Posted on February 3, 2012March 9, 2015 by Alan

One of the questions that is frequently asked in a large organization is, “Who uses computer XYZ123?”. Many tools will report the current user, but the current user may or may not be the the person who usually works on a given computer.  The current user for the computer you are logged on logged onto to fix is probably…

Read more

Why I am not monetizing my blog

Posted on January 24, 2012January 24, 2012 by Alan

I am still resisting the call from my friends to monetize my blog. This means that there is no advertising here, now or later. I see this primarily as an ethical issue.  You, as taxpayers, have already paid for this work.  I, as a federal employee, have already been compensated for the work.

Read more

Uninstall All But the Most Recent Version of Java

Posted on January 10, 2012February 11, 2022 by Alan

UninstallJava.vbs creates a list of programs with “Java” in the name.  It then uninstalls all but the most recent version.  You can run it locally or against a remote computer.  Update 1/18/14: This has been updated to manage post XP OS, where InstallDate2 from Win32_Product is empty.  If you look at the code, I now read the…

Read more

Finding Name Resolution Problems

Posted on December 12, 2011December 12, 2011 by Alan

Name resolution problems are a plague for system administrators. If you think you are working on ComputerA but instead are working on ComputerB much gnashing of teeth may result.  In our environment we have NetBIOS and FQDNs to resolve.  The correct name, of course, is the one in the registry. NameResolution.wsf checks the registry, FQDN and…

Read more

Can’t find %HOMESHARE%\Favorites\.

Posted on December 12, 2011December 12, 2011 by Alan

I tried to update Adobe Reader using my domain based admin account for elevation, and got this installer error “Can’t Find %HOMESHARE%\Favorites\.”  To fix it I opened RegEdit, navigated to HKCU\Environment, and added a new expandable string value named HOMESHARE, and pointed it to the proper location.

Read more

Scriptomatic on Windows 7 Solved

Posted on November 20, 2011February 13, 2016 by Alan

I have been writing HTA files for a years as a way to improve the appearance of some of my scripts.  MSDN has a good article from May of 2011 about the power and utility of HTA files.  After moving to Windows 7 x64, I was disappointed to find that one of my favorite HTA…

Read more

Floppy Drive Settings for Virtual PC

Posted on November 16, 2011September 12, 2020 by Alan

Earlier I wrote about using WinImage to preserve floppy disk data.  In my continuing adventure with Windows 7 x64, I found that DOS programs will not run under x64.  What DOS program do I like to use?  The WordPerfect Editor from the WordPefect Shell.  (Curious?  You can get it here).  Why?  Because it allows you…

Read more

RunAs context menu item for scripts and HTAs

Posted on November 16, 2011November 16, 2011 by Alan

I have consolidated a couple of registry files that enable a RunAs context menu item for VbScript, JScript, and HTA files.  Scripts_HTA_Runas_reg.txt

Read more

Fixing Windows Update problems on multiple computers

Posted on November 10, 2011March 9, 2015 by Alan

I have my WSUS Repair HTA for working on single systems, but how about multiple computers?  For that I run WindowsUpdateFix.cmd.  You can execute this many ways.  I use SCCM or PSExec.

Read more

Upgrading to Windows 7

Posted on November 9, 2011May 10, 2023 by Alan

We have been slow at work in our adoption of Windows 7.  I use my laptop as my primary workstation, and I had “cheated” when I upgraded from XP to Vista and then Window 7 32 bit.  My new OS was to be Windows 7 64 bit, and there is no upgrade path.  Before I kicked…

Read more
  • Previous
  • 1
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • …
  • 42
  • Next

Search

Please Note

All the scripts are saved as .txt files. Newer files have a “View Script” button which will let you save or open a script in notepad. For earlier posts, the easiest way to download with IE is to right click on the link and use “Save Target As”. Rename file from Name_ext.txt to Name.ext.

To see a full post after searching, please click on the title.

PowerShell Scripts were written with version 3 or later.

https connections are supported.

All new users accounts must be approved, as are comments. Please be patient.  If you find a post error or a script which doesn’t work as expected, I appreciate being notified.  My email is my first name at the domain name, and you are welcome to contact me that way.

Tags

1E ACLS Active Directory ActiveDirectory ADSI Advanced Functions Audit Change Administrator Password COMObject Computer Groups DateTime Desktop DNS Excel FileScriptingObject Forms General GPO GPS Group Policy Hacks ISE Lockout logons NAV740 Nessus OU OU permissions Outlook Pick Folder Power PowerShell Powershell Scriptlets RDP SCCM schedule reboot Scripting Security Shell.Application user information VBA Windows Update WMI WordPress WPF

Categories

akaplan.com

  • Back to Home Page

Archives

Scripting Sites

  • A Big Pile of Small Things
  • Adam, the Automator
  • Art of the DBA
  • Ashley McGlone
  • Boe Prox
  • Carlo Mancini
  • DexterPOSH
  • Doug Finke
  • Jaap Brasser's Blog
  • JeffOps The Scripting Dutchman
  • Jonathan Medd's Blog
  • Keith Hill's Blog
  • LazyWinAdmin
  • Nana Lakshmanan
  • PowerShell Magazine
  • PowerShell Team Blog
  • PowerShell.org
  • PwrShell.net
  • Richard Siddaway's Blog
  • Ryan Yates' Blog
  • Skatterbrainz
  • The Lonely Administrator

SQL Site

  • Art of the DBA

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
©2025 Alan's Blog | Theme by SuperbThemes

Terms and Conditions - Privacy Policy