Alan's Blog

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

Menu
  • About My Blog
Menu

Month: November 2009

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

Ghosts in the Machine (getting rid of unused drivers)

Posted on November 13, 2009August 12, 2023 by Alan

There is a good article on howtogeek.com about how to “Remove Old Drivers After Upgrading to New Hardware”.  The tip works for Vista and XP.  Recommended. http://www.howtogeek.com/howto/windows-vista/remove-old-drivers-after-upgrading-to-new-hardware/

Read more

View Files on Remote USB drive

Posted on November 12, 2009August 11, 2019 by Alan

The USB Monitor can be configured to silently notify you when a USB drive is inserted in a user’s computer.  If you suspect wrongdoing, you can use USBDriveFiles.vbs to connect to the remote system, map a drive to the device and browse the files on the USB drive.  Some interesting coding problems, if you want to take a look at the…

Read more

Is it a terminal server?

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

If you are running logon scripts you may want to bail, or do something special if the server the user is logging onto is a terminal server.  isTermServer.vbs will allow you to test/determine whether a local or remote server is a terminal server, and returns an errorlevel for batch handling.  Run without arguments for syntax.  …

Read more

When was a GPO last applied to a system?

Posted on November 10, 2009March 11, 2016 by Alan

When troubleshooting group policy objects, you want to know whether they are applying.  Inspired by an article by Chris Stauffer at myITForum.com, I decided to write GPOLastApplied.vbs to get this data on the fly.  You can query a system locally or remotely to see when a GPO was last applied.  Tags: GPO

Read more

The Machine SID Duplication Myth

Posted on November 6, 2009May 3, 2020 by Alan

Mark Russinovich, the founder of SysInternals, and now a Microsoft employee has debunked what we all learned about duplicate SIDS. http://blogs.technet.com/markrussinovich/archive/2009/11/03/3291024.aspx Note that the advise does not apply to systems that have been joined to a domain and then cloned.  Still a really bad idea.  Also, SysPrep is still recommended.  A worthwhile read. Tags: SIDS

Read more
  • 1
  • 2
  • 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