Alan's Blog

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

Menu
  • About My Blog
Menu

That VbScript worked in XP, Why Not Now?

Posted on January 30, 2014 by Alan

Do you have a script that worked with your x32 XP computer, but no longer works in Windows 7 or 8 x64?  I am finding that some of the scripts I wrote have this problem.  Somethings may rely on an ActiveX control that was native to XP but not a later version.  What I am…

Read more

ISE Handling of Variables and Functions Can Fool You

Posted on January 30, 2014February 15, 2014 by Alan

I have had to fix a couple of recent posts because the PowerShell scripts failed to work as I thought they would.  Which is weird, because I test them before releasing them.  What I had not noticed is that you can set a variable in ISE that will be remembered through the session.  An example…

Read more

Delete a List of Computer Accounts from Active Directory

Posted on January 18, 2014 by Alan

Although I have spent most of my time recently writing PowerShell code, I still get requests from the field for vbscripts.  The security model differences make it more time consuming to explain how to run a PowerShell script than vbscript’s “double click this”.  DisablePCsFromList.vbs is an updated version of a 2006 vbscript which reads a…

Read more

Win32_ReliablityRecords, PowerShell and ScriptoMatic

Posted on January 3, 2014March 9, 2015 by Alan

I was reviewing my blog stats today and found a link from a site in UK to my version of ScriptoMatic.hta.  I have upgraded my home laptop to 8.1, and decided to see whether it still works (it does).  If you launch the “fixed” ScriptoMatic as an ordinary user, it takes a very long time…

Read more

Suggesting a default filename

Posted on January 3, 2014 by Alan

I like to leave log files where people can find them.  Typically this is on their desktop, or in the same folder where the script ran from.  I wrote the following bit of code which creates a date based report file and offers it as a default.  It is pretty straightforward, but I did not…

Read more

PowerShell Saturday in Charlotte, NC

Posted on January 3, 2014March 15, 2020 by Alan

Do you want to know more about PowerShell?  The Charlotte PowerShell Users group (home to the Scripting Guy Ed Wilson, and the Scripting Wife, Teresa), will be hosting the seventh annual PowerShell Saturday at the Charlotte NC Microsoft Campus.  The cost is modest, and the event speakers are first rate.

Read more

Delete a list of Computer Accounts from the Clipboard

Posted on January 2, 2014 by Alan

I frequently get a request to delete a list of computers in my AD domain.  Often the list is in an email.  Delete-PCListFromClip.ps1 is a short script which reads the content of the clipboard, then sends the list to Out-Gridview for review.  You may then select the computer names for deletions.  PowerShell 3.0 and the…

Read more

Convert-ADValues updated

Posted on January 1, 2014May 12, 2016 by Alan

I’ve updated one of my favorite and most used PowerShell Scripts, Convert-ADValues.  Read the revised post, here.

Read more

The Windows Experience Index and PowerShell

Posted on January 1, 2014 by Alan

I thought that the Windows Experience Index was pretty useless until I wanted to compare the speed of systems that I was preparing to donate.  One had Windows 7, the other was a lab PC running Windows 8.1.  I was surprised to find that I could not find the Windows Experience Index (WEI) on the…

Read more

Get a Close Global Catalog Server with PowerShell

Posted on November 30, 2013December 30, 2013 by Alan

I have been writing a script which does a lot of AD queries to find computer OUs.  I wanted to do this on a close Global Catalog Server.  Here is the function I wrote to get this: Function Get-CloseGC{ #Requires -version 3 #requires -module ActiveDirectory #it doesn’t really require version 3 if you have AD…

Read more
  • Previous
  • 1
  • …
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • …
  • 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