Alan's Blog

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

Menu
  • About My Blog
Menu

Still Plagued by Bot User Registrations

Posted on August 8, 2013August 23, 2013 by Alan

I now must approve new user registrations.  I am sorry for the delay this may cause you in posting — but the truth is that I get few posts from users despite some respectable traffic numbers.  I added a captcha and a contact form

Read more

Manage Nework Recycle Bin Size

Posted on August 8, 2013August 27, 2013 by Alan

If you redirect the Documents folder (or My Documents on XP) to a network drive, an instance of the Recycle Bin is created on the user’s home directory.  And, because the default size for the Recycle Bin is 10% of available space, you can end up with a huge amount of space chewed up by…

Read more

Windows 8 and 10: Change Network Connection Profile From Public To Private

Posted on August 8, 2013May 22, 2016 by Alan

Did you accidentally set you home network connection profile to “Public”?  Windows 8 and 10 have an easy way to change it to “Private” using PowerShell.  First, you must open PowerShell as an administrator. If you’ve never run PowerShell before, you need to permit the running of commands on your system. The command for this…

Read more

Convert data from Get-ADUser and Get-ADComputer for Export-CSV

Posted on July 27, 2013April 16, 2017 by Alan

If you have been following my blog, you know that I am an experienced vbscripter, but am relatively new to PowerShell.  I was excited that my long vbscripts to export data from Active Directory would be now one liners which I could send to a CSV file with the Export-CSV cmdlet.   Unfortunately, I found that…

Read more

List Inactive Computers with PowerShell

Posted on July 27, 2013 by Alan

This script, InactiveComputers.ps1, creates a list of inactive computers using Get-ADComputer.  It uses Output-GridView (PowerShell 3)  to navigate AD to select an OU to search, and will prompt you for the number of days since the computer last changed its password, recorded in passwordlastset.

Read more

Batch File to Prestage a Computer Account

Posted on July 27, 2013March 9, 2015 by Alan

Batch files are not dead.  Microsoft has said that batch files, and vbscript will be supported into the indefinite future.  And I still write an occasional batch file because the really are quick and easy.  I use the .CMD extension, instead of .BAT, but it does not really matter in execution. Recently I was asked…

Read more

Upgrade to PowerShell 3 (or 4)

Posted on July 27, 2013September 12, 2020 by Alan

If you are running Windows 7 and have not yet upgraded to PowerShell 3, do it now. The installation files are here.  I use Output-GridView all the time, and PS3 cuts the DCOM strings. Here is an article that explains the changes from PS2 for both versions, and another that describes the version 3 changes.. …

Read more

BotNet Users Dumped

Posted on June 30, 2013 by Alan

I have deleted a large number of users that apparently have been added by botnets.  I apologize, gentle reader, if your account was inadvertently deleted during this process.  I have created a new logon link — you will find it on the right side in the links panel.

Read more

OU AD Path to Clipboard Using Out-Gridview

Posted on June 10, 2013August 11, 2019 by Alan

OUADSPath2Clip.ps1 is the PowerShell version of OUADSPath2Clip.vbs.  What I found difficult about this script was coming up with a fast way to navigate a large Active Directory structure.  The AD navigation bit uses Output-GridView for selecting a domain.  This requires RSAT (see previous post for more).  It is a clumsier interface than treeview, but it is…

Read more

PowerShell GPO Reporter

Posted on June 10, 2013September 9, 2023 by Alan

Over the past few months I have been spending more and more time working with PowerShell.  I have gone to Windows 8 on my personal laptop, and am impressed by PowerShell 3.0.  I have joined the Charlotte PowerShell User’s Group which meets monthly at the Charlotte Microsoft Campus.  The Scripting Guy, Ed Wilson, together with his…

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