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.
Tag: PowerShell
PowerShell and .Nessus File Revisited
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…
PowerShell and .Nessus files
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…
Batch file to Run PowerShell Scripts
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…
Win32_ReliablityRecords, PowerShell and ScriptoMatic
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…
Convert-ADValues updated
I’ve updated one of my favorite and most used PowerShell Scripts, Convert-ADValues. Read the revised post, here.
Count Paired Items with PowerShell
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…
Windows 8 and 10: Change Network Connection Profile From Public To Private
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…
Upgrade to PowerShell 3 (or 4)
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.. …
PowerShell:Start RDP After Reboot
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…