Alan's Blog

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

Menu
  • About My Blog
Menu

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

What is in your home directories?

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

I use WinDirStat, http://windirstat.info/, to see what file users have accumulated in their home drives.  “WinDirStat reads the whole directory tree once and then presents it in three useful views: The directory list, which resembles the tree view of the Windows Explorer but is sorted by file/subtree size, The treemap, which shows the whole contents…

Read more

Count Active Directory Objects

Posted on October 28, 2009March 24, 2010 by Alan

ADCounts.vbs will count and report the number of computer and user accounts in your OU breaking down for active and inactive accounts.  Version 2 (3/24/2009) adds navigation to select a starting OU.

Read more

Dreamspark.com Free Server OS and Development tools for students

Posted on October 26, 2009October 14, 2017 by Alan

“DreamSpark is simple; it’s all about giving students Microsoft professional-level developer and designer tools at no charge so you can chase your dreams and create the next big breakthrough in technology – or just get a head start on your career. “  www.dreamspark.com  

Read more

Batch file List all servers in an NT domain

Posted on October 22, 2009March 9, 2015 by Alan

Sometimes I need a quick list of all my servers.  This batch file does that for me REM ====computerlist.cmd begins ===== @echo offclscd /d %TEMP%IF EXIST serverlist.txt DEL serverlist.txtREM all on one line until FOR commanddsquery * domainroot -filter “(&(objectCategory=Computer)(objectClass=Computer)(operatingSystem=*Server*))” -limit 0  -attr cn >> serverlist.txtFOR /F “skip=1” %%s in (serverlist.txt) do echo %%s >> “%USERPROFILE%\DESKTOP\serverlist.txtif…

Read more

Open the CDROM tray

Posted on October 19, 2009March 9, 2015 by Alan

Neither of these  subroutines are mine.  I use this script typically when I am in an unfamiliar server room, or when I am remotely working on a server with local assistance.  I open the CD/DVD tray to make sure that I am on the right hardware.  There is a funny story about me powering off…

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