Alan's Blog

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

Menu
  • About My Blog
Menu

Author: Alan

See https://www.akaplan.com/about/

Free cleanup tools

Posted on December 14, 2009March 9, 2015 by Alan

Trend Micro has some nice free cleanup tools at http://free.antivirus.com/clean-up-tools/.  Rubotted will tell you if your PC has been hit by a botnet trojan.  I like using tools like this to second check my anti-virus software.  

Read more

403 error from Microsoft Update

Posted on December 14, 2009March 9, 2015 by Alan

Microsoft has updated Windows Update, and we saw problems with some systems failing to self-update the agent. The remedy is to do a manual installation of the new windows update client. You can find it here: http://support.microsoft.com/kb/949104 Tags: Windows+Update

Read more

User Account Information

Posted on December 10, 2009December 10, 2009 by Alan

When I wrote the original version of UserSummary.vbs in 2003, I remarked that the code was cut and paste.  I recently made some changes, but the code still is a mess, so please don’t look at it as the way things ought to be.  This creates a spreadsheet log containing the following information: name, samAccountName, description, account creation date, password age…

Read more

Enumerate Recent Documents

Posted on December 8, 2009March 9, 2015 by Alan

We are sometimes asked to say whether a user has accessed a particular document. File auditing for NT has a terrible amount of overhead, so it is usually turned off.  Recent Documents are stored on in %userprofile%\recent.  There is also the most recently used (MRU) list in the registry for each user stored in HKU\Software\Microsoft\Windows\CurrentVersion\Explorer\RecentDocs .  My effort to…

Read more

Get Email Address of Terminal Server Users

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

This script allows you to get the email addresses of terminal server users, so you may later paste them into the “To:“ line of an email. In the past I used NET SEND /Users to notify users that the terminal server they were logged onto was going down for maintenance.  Because of security concerns, the messenger service is…

Read more

Avoiding unwanted smileys in WordPress

Posted on November 30, 2009November 30, 2009 by Alan

I found when posting batch files in WordPress I sometimes got unwanted smiley faces. So a batch subroutine called output shows up like this: :output To avoid this use the code : to escape the colon.  The result is displayed: :output

Read more

Logged on User, part 2

Posted on November 30, 2009March 9, 2015 by Alan

In my post at https://www.akaplan.com/?p=248, I said there are many ways to get the logged on user.  That code is limited to console users.  I wanted a method that would show me both interactive users and RDP users.  I found some nice code by MVP Torgeir Bakken at http://www.ureader.com/message/1436360.asp, and made some changes to add error handling,…

Read more

A Low Privilege Internet Explorer Shortcut

Posted on November 28, 2009March 9, 2015 by Alan

Your users should never have administrative rights on their workstations.  But many Admins are administrators of their local system, and are obviously running with elevated permissions when they log onto servers.  You should never cruise the internet on a server.  But you may need to go to Windows Update, or to vendor sites for drivers. The…

Read more

Find User’s Last Logon

Posted on November 20, 2009March 9, 2015 by Alan

A user’s last logon authentication is recorded on the server where the logon (or unlock) occurred.  FindLastLogon.vbs queries all the Domain Controllers in your domain for this information.  You can send the results to your clipboard.  No elevated rights required. Updated on 9/8/10 to improve error handling and queries of other domains. Tags: logon

Read more

The Internet is Broken

Posted on November 16, 2009March 9, 2015 by Alan

When I first saw this, I told my ISOs that the “internet is broken.” This is just the first of what I expect to be a torrent of problems: “A Turkish grad student has devised a serious, real-world attack on Twitter that targeted a recently discovered vulnerability in the secure sockets layer protocol. The exploit by Anil…

Read more
  • Previous
  • 1
  • …
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • …
  • 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