Alan's Blog

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

Menu
  • About My Blog
Menu

Laptop Return Reminder

Posted on February 3, 2013 by Alan

We love our users, yes we do!  Especially the ones who walk out the door with a laptop that they refuse to return.  Having a computer off the corporate network for an extended period of time can create problems with Active Directory,  some management software and some encryption software.  MakeLaptopWarning.vbs is a script which the…

Read more

SaveAs Excel Fails in Scheduled Task

Posted on February 3, 2013March 16, 2013 by Alan

I wrote a script which outputs a text file as a log.  I added a routine which allowed the log to be saved as Excel, when  installed.  The function worked fine when I ran it interactively, but crashed on the .SAVEAS routine on a 2008 R2 server as a scheduled task.  I did some research…

Read more

User Notice – Survey Reminder

Posted on February 3, 2013 by Alan

Occasionally you may hear a request to remind the users of a survey, or some other even where they want to present information with a URL for the user to click. There are may ways to do this sort of Windows based MOTD, and I will give you one more, SurveyReminder.vbs.This is designed to be…

Read more

Back to Blogging — Thoughts about Windows 8

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

I changed jobs at VA, had surgery (getting better, thanks), went on vacation, and didn’t take the time to work on the blog.  But, Gentle Reader, I am back with a number of posts today of things that accumulated during the hiatus. First, some thoughts about Windows 8.  I installed Win8 on the test machine…

Read more

Abort SCCM Restart

Posted on September 7, 2012September 7, 2012 by Alan

Sometimes you get a panicked call saying, “I got a message saying my computer will reboot in 5 minutes”. StopSCCMRestart.cmd allows you to abort the reboot on a local or remote machine. It works by killing the SMSCliUI.exe task. The task will be eventually restarted, but this should give your user a chance to reboot…

Read more

ShareEnum Alternative

Posted on September 7, 2012March 9, 2015 by Alan

The SysInternals ShareEnum.exe program relies on the NETBIOS browser list and chokes in very large domains.  I wanted a program which let me to audit share permissions with greater flexiblity. ShareEnum.wsf is an alternative to ShareEnum.exe.  It relies on WMI to enumerate share permissions.  The WMI share security decoding was written by Chris Wolf and found in a 2006 article at redmondmag.com….

Read more

Beep! Beep! Using the Bell to Locate a Server

Posted on June 21, 2012March 9, 2015 by Alan

I got a message from a datacenter recently.  They were looking for a server.  Apparently the location information was mis-recorded (or forgotten).  They asked me whether I could make the computer beep so it could be located.  The DOS bell is CTRL-G.  Typing CTRL-G (ASCII 7) was easy in DOS days, but is a little…

Read more

PortableApps and HFS, the HTTP File Server

Posted on June 9, 2012March 9, 2015 by Alan

If you carry around a USB drive, or any device with USB storage (for example, your phone), you should be running PortableApps.  PortableApps is a menu of applications you like to take with you.  Visit www.portableapps.com if you have not already loaded up your USB drive. Today, however, I wanted to take a moment to sing…

Read more

Enumerate SQL Servers for a Windows Domain

Posted on March 30, 2012March 30, 2012 by Alan

In a very large environment, getting a list and keeping track of SQL installs may be come problematic.  I wanted a way to track down all SQL installs, for licensing, management and security.  When you install SQL, it creates a Service Principal Name (SPN) in Active Directory. I took a script which created a list of…

Read more

Recursively Enumerate Local Administrator Group

Posted on March 30, 2012January 3, 2021 by Alan

Getting a list of the local administrators is a routine security task. A popular way to do this is with EnumLocalGroup.vbs, a script written by Richard Mueller.  I found that this has some error handling issues, especially where you have the problem of a nested group which creates a recursion loop. EnumAdmins.vbs is my version of…

Read more
  • Previous
  • 1
  • …
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • …
  • 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