PowerShell // Internet Explorer Automation – Part 4 : Handling multiple tabs

In this part we will look at how we can handle multiple tabs in Internet Explorer and manipulate elements on them. When using the Internet Explorer COM object, we can only get the document information of the latest tab we created. But sometimes we want to manipulate something on a tab we previously created. Unfortunately,Continue reading PowerShell // Internet Explorer Automation – Part 4 : Handling multiple tabs

PowerShell // Internet Explorer Automation – Part 3 : Automating logins

In this part we will be handling automated logins on web portals.I’ve setup a small web page with a login form at https://testzone.fl0re.com/loginportal/index.html so we can test our script. (Portal Code source: https://www.formget.com/javascript-login-form/ ) The credentials are Username standard_user Password SecretPassw0rd Once again, let’s start with setting up our base script. Setting up the baseContinue reading PowerShell // Internet Explorer Automation – Part 3 : Automating logins

PowerShell // Internet Explorer Automation – Part 2 : Handling SSL Certificate Errors

In this part we will be handling SSL certificate errors when opening a link. To get around these errors, we need to find a specific element and interact with it. Sometimes when accessing a mangement webpage of certain systems, we get a SSL certificate error. This usually happens when the default (self-signed) certificate is stillContinue reading PowerShell // Internet Explorer Automation – Part 2 : Handling SSL Certificate Errors

PowerShell // Simple screenshot function with Timestamps

Sometimes we just want to take some screenshots of particular areas from within a PowerShell script. As part of some automation script, I created a function that will grab a part of the screen and optionally add a timestamp to it. You can save this to either the clipboard and/or a file. To get aContinue reading PowerShell // Simple screenshot function with Timestamps

PowerShell // Internet Explorer Automation – Part 1 : The Basics

In some cases we need to login on multiple web based management portals. Of course we could do this all manually if it’s only a few systems we need to check this way. But when it’s over a dozen, it becomes a tedious task of opening a new tab, filling in the username and passwordContinue reading PowerShell // Internet Explorer Automation – Part 1 : The Basics

PowerShell // Automate AD Computer Object Cleanup

In this post we will be implementing two PowerShell scripts to automatically clean up our Active Directory of old, unused computer objects. The first script will scan the Active Directory for computer objects that are no longer used, disable them and put them in a seperate OU. It also modifies some extensionAttributes on the object,Continue reading PowerShell // Automate AD Computer Object Cleanup