Alan's Blog

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

Menu
  • About My Blog
Menu

Test Whether Organizational Unit or Account Exists

Posted on September 7, 2015 by Alan

Here are two quick functions which I have recently found useful. The first tests whether a user account exists. It takes the Domain and Identity as arguments. Using the “Stop” error action with Try/Catch keeps it from showing any errors. You can do this with any of the AD cmdlets, such as Get-ADOrganizationalUnit, Get-ADComputer and…

Read more

Outlook 2013 Contacts Don’t have People App Entries

Posted on June 27, 2015 by Alan

Like most people, I find the Windows 8.x Apps to be mostly useless.  But when I installed Office 365 / Outlook 2013 I did expect to see the data from the app appear in the address book.  I was wrong.  There is not way to use the information there as an address book. Some time…

Read more

Microsoft Updates on Windows 8.x

Posted on June 27, 2015June 27, 2015 by Alan

I sold my iPad and my laptop, using the proceeds to help me get a Surface Pro 3. I bought a subscription for our household to Office 365, because of my familiarity with the Microsoft Office suite of products. After the most recent suite of updates, I noticed that I have never gotten updates for…

Read more

Get IE Zone Information

Posted on June 27, 2015 by Alan

Like most large enterprises, we use a group policies to manage Internet Explorer settings.  We manage the security settings, and we enforce which sites are in Trusted Sites and the other internet zones.  The user cannot change the list, or even view the list.  This creates a problem for troubleshooting when a  user has opened…

Read more

Skype and PowerShell – Toggle Mute, Export Participants

Posted on April 19, 2015September 15, 2018 by Alan

Updated September 2018. Note that this code works with Lync 2010 and Skype for Business, and that some of the scripts have been updated. I spend a lot of time in Skype (formerly Lync) conferences. There are two things about the Lync 2010 client which drove me nuts.  The first is that there was no…

Read more

A Really Recursive Group Enumeration

Posted on April 9, 2015August 3, 2019 by Alan

Get-GroupHierarchy.ps1 gets a fully recursive listing of group membership.  The script is based on a script by the same name posted at https://powershell.com/cs/forums/t/9588.aspx.  I made a large number of changes to the original code.  This script takes the SamAccountName of a group, such as Domain\MyGroupName, and then gives you all the members of the group. …

Read more

Reviewed Broken Links

Posted on March 9, 2015 by Alan

I have reviewed my broken links. I updated them when I could, deleted some old posts, and removed the hyperlink for others. My oldest posts used Technorati for tagging, so you will see some Tag remarks at the bottom of some posts. I hope this leaves you with a lot less 404’s, but drop me…

Read more

Create Import file for Remote Desktop Connection Manager 2.7

Posted on March 9, 2015March 15, 2020 by Alan

Remote Desktop Connection Manager 2.7, “manages multiple remote desktop connections. It is useful for managing server labs or large server farms where you need regular access to each machine such as automated check-in systems and data centers. It is similar to the built-in MMC Remote Desktops snap-in, but more flexible.”  If you have been disappointed…

Read more

Export PowerShell script output to Text with Out-Notepad

Posted on March 8, 2015March 8, 2015 by Alan

Out-Notepad.ps1 lets you redirect the output of a PowerShell command or script into Notepad. There are a couple of interesting things here. In Line 23, I use [System.IO.Path] to get a random file name. In line 34 I use [Microsoft.VisualBasic.Interaction] to shell out to Notepad and wait for it to close before deleting the file….

Read more

Export DNS Server Records with PowerShell

Posted on March 8, 2015March 8, 2015 by Alan

I am frequently asked to export DNS records, such as, “Give me the list of A, MX and CName records in DNSZone1 and DNSZZone2”. Server 2012 has got some nice cmdlets, but I wanted something more universal with a GUI. Export-DNSEntries.ps1 uses a combination of Out-GridView and a custom from to allow you to pick…

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