Alan's Blog

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

Menu
  • About My Blog
Menu

Tag: PowerShell

Get List of Computers from Active Directory

Posted on November 22, 2014November 29, 2014 by Alan

Get-ADComputerList.ps1 is pretty simple.  It gets a list of all the computers in the domain you specify.  Reported are the DNS Name, IP v4 Address, Active Directory Path and OS.  A comma delimited log file is written to your desktop.

Read more

PowerShell and .Nessus File Revisited

Posted on October 11, 2014November 29, 2014 by Alan

I previously wrote about processing .Nessus files using Posh-NVS.  I found my needs to be a little different from what that project provides, so I decided to take a crack at my own script for reading .Nessus files.  Unlike Posh-NVS, it has no modules to install and my Convert-Nessus.ps1 adds the host information onto the…

Read more

PowerShell and .Nessus files

Posted on October 1, 2014March 9, 2015 by Alan

Tenable Nessus is a commonly used scanner in the enterprise.  The native (version 2) .nessus files which it creates are XML files which contain information about the scan settings, plus the data collected about the hosts.  Parsing these files is typically done with a Python script — a Google search yields over 140K results.  Looking…

Read more

Batch file to Run PowerShell Scripts

Posted on February 13, 2014March 1, 2014 by Alan

I have a couple of PowerShell scripts which I run daily, and the number keeps growing.  I wanted a quick way to run scripts which support alternate credentials.  Drag and drop a PowerShell script onto  the RunPS.cmd  batch and you are prompted to run with it with your current credentials, alternate credentials, using RunAs, or…

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

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

Count Paired Items with PowerShell

Posted on November 26, 2013November 26, 2013 by Alan

This is just a code fragment for something that took me some time to figure out.  What I wanted to do is to count a pair of items.  The data was coming from a CSV file, and one of the two values is calculated. The code is: #Make arrays the lazy way, splitting string $UserList…

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

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

PowerShell:Start RDP After Reboot

Posted on March 3, 2013February 4, 2023 by Alan

A lot of folks have been asking me why I haven’t written any PowerShell scripts.  The answer is that I am pretty good at vbscript, and I couldn’t find anything that I wanted to do that I couldn’t do with vbscript. Last week I spent some time waiting for a computer to reboot.  I used…

Read more
  • Previous
  • 1
  • …
  • 5
  • 6
  • 7
  • 8

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