Alan's Blog

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

Menu
  • About My Blog
Menu

Force Local Logoff

Posted on May 21, 2009May 21, 2009 by Alan

This script, ForceLocalLogoff.vbs I use with SMS/SCCM for force local logoff prior to running other scripts.  Rename to .vbs.    

Read more

Kindle? Not for me

Posted on May 11, 2009March 9, 2015 by Alan

I have been looking at eBook readers, and have decided that now is not the time to buy.  The new Kindle DX (link purposefully omitted) does not change my mind.  In my view, eBooks are not a value added item.  Why?  Because in my home they are competing against the public library, where books, and many audiobooks are…

Read more

Logged on User

Posted on May 11, 2009September 12, 2020 by Alan

There are many ways to get the current logged on user.  This one is does not rely on any third party tools.  It has some things that I like to uses but do not see frequently.  You will see the setlocal command, which limits the environment change to the batch file.  I have prompted input…

Read more

LogParser

Posted on May 3, 2009September 12, 2020 by Alan

Microsoft’s brief description of LogParser is this: “Log parser is a powerful, versatile tool that provides universal query access to text-based data such as log files, XML files and CSV files, as well as key data sources on the Windows® operating system such as the Event Log, the Registry, the file system, and Active Directory®.”   …

Read more

PSExec, an admins best friend

Posted on May 2, 2009March 9, 2015 by Alan

Some programs are indispensable for an admin’s tool kit.  PSexec is one of those tools.  It allows you to execute command on a remote computer (similar to RConsole).  Originally a SysInternals tool, it is now available from Microsoft at http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx. This batch file will use PSExec to run netstat on a remote system and return the open…

Read more

Alan’s Favorites

Posted on April 26, 2009March 8, 2015 by Alan

I added categories called “Alan’s Favorites” , vbscript and HTA to help navigate through my site.    I have gone back to edit some of the scripts to recategoirize them and to clean up some of the older posts.

Read more

Nt Security Event Log Properties

Posted on April 24, 2009March 9, 2015 by Alan

As a security guy, I am often asked to find the logons or access based on the NT Security event log.  The size and settings of these are critical.  This script, Security Log properties.vbs gives you a quick report on the Security event log settings.   Rename from .txt  to .vbs Tags: Security+Log, Event+Log

Read more

Using DNS servers with DHCP

Posted on April 24, 2009March 9, 2015 by Alan

There is a good TechNet article about how to permit your DHCP servers to update DNS.  One of the things recommended is that the list of DHCP servers be placed in the DNSUpdateProxy builtin group.   In a prior post I referred to  a script that got a list of DHCP servers.  I found that one  to be inadequate…

Read more

What User or Computer accounts were created after…

Posted on April 17, 2009March 9, 2015 by Alan

I was recently asked if I had a script to list all User accounts created after a certain date.  I don’t.  But I do have one that will list either user or computer accounts for any OU with their full path and creation dates.  It is Computer and User Create Dates.vbs.  Rename from .txt to…

Read more

Remove “Open File” security warning for files downloaded from the internet

Posted on April 16, 2009March 11, 2016 by Alan

I needed a list of my DHCP servers, so I went looking for my DHCPServers.vbs script, which I wrote for that purpose.  Gone.  I remembered that I posted it on www.myITForm.com, and so I downloaded the script from there http://www.myitforum.com/inc/upload/11431DHCPServers.vbs.txt (right click, then save target as).  I went to run my script and I got this:  …

Read more
  • Previous
  • 1
  • …
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • …
  • 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