Alan's Blog

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

Menu
  • About My Blog
Menu

Fast PowerShell Treeview OU Selection Form

Posted on April 28, 2016April 16, 2017 by Alan

A large number of my scripts involve picking an Active Directory Organizational Unit (OU). I have been using Out-Gridview for OU navigation. This is because I was unable to find a form based GUI OU picker that worked fast enough in my very large AD environment.  The scripts I have seen tended to collect all objects at…

Read more

Adding Code to Outlook Mail Messages

Posted on April 18, 2016 by Alan

I frequently send short PowerShell scripts in the body of Outlook messages.  The spell checker makes the text look lousy.  This tip will allow you to copy code from the PowerShell ISE (or other code editor) and insert it into an Outlook message with color intact and without spell checking: Create a new email.  Set…

Read more

How to Edit the Path for Shares and Printers inside a GPO

Posted on March 26, 2016 by Alan

Here is the unsupported method from Microsoft for editing the path for shares and printers inside a GPO. From a server — 1) Backup the problem GPO to your desktop 2) Edit the gpreport.xml and backup.xml files 3) Import the edited GPO The engineer said if you have to do both, update the path for…

Read more

Yes, I support HTTPS

Posted on March 26, 2016June 26, 2016 by Alan

It seems silly to add a certificate to my website, except for entry to the admin console.  But Google ranking is affected without it, and so I have added it.

Read more

Finding Rarely Used Computers On Your Network

Posted on February 13, 2016March 15, 2020 by Alan

I support a number of hospitals.  Many of these have very large facilities, where the placement of computers was originally done by a space planner or others trying to make an educated guess about how and where people would be working.  Frequently we find that there are computers which are unused or only rarely used. …

Read more

How to Create Single SCCM Bootable Media for both X32 and X64

Posted on February 13, 2016 by Alan

My friend, Nick Miller, has gone to work with another company, and is involved in a Windows 7 image standardization project.  He recently told me that he had figured out how to have a single bootable USB WinPE disk to create both 32 bit and 64 bit OS images.  Nick is a smart guy, and…

Read more

Get Oldest Windows Event

Posted on February 13, 2016 by Alan

Get-OldestEvent.ps1 is a PowerShell advanced function which returns the oldest event from a Windows computer event log, and will help you determine the rollover time for an event log by also returning the age of the record as a time span with the time created. Optionally you can return the entire oldest record with the…

Read more

Manage the Outlook Attachment Folder with PowerShell

Posted on December 30, 2015December 30, 2015 by Alan

If you are using Outlook, every attachment you have ever opened is still on your hard disk. To see these files, paste this into to the Windows “Run” command box: %UserProfile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\ What you will see is one or more sub-folders which contain the attachments from previously opened emails. These files take up unnecessary…

Read more

Passwords for Password Resets

Posted on September 7, 2015September 7, 2015 by Alan

I discovered that my script to generate passwords, RandomPW.vbs, isn’t popular with users because the passwords are random.  I have an even more complicated but unposted PowerShell version with the same issue. I wanted to create something that was easier for the help desk and users.  Get-TempPW.ps1 is my answer to those objections.  This script…

Read more

Get the Parent OU for an AD Object

Posted on September 7, 2015September 23, 2017 by Alan

I have mentioned before that the Charlotte PowerShell User group was frequented by Scripting Guy Ed Wilson, and his wife Teresa. I’m sad to say that they have moved away, but am happy that Brian Wilhite has been running the meetings since.  I mentioned to Brian that I had a cool way to get the…

Read more
  • Previous
  • 1
  • …
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • 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