AWS EC2 powerShell tips

Ever find yourself looking for ways to use powerShell? maybe that’s just me. Hahaha Recently I was supporting some EC2 in the cloud testing some new AWS features and services and I found my self locked out and released this machine was not domain joined but I couldn’t login. With the windows PowerShell cmdlets swirlingContinue reading “AWS EC2 powerShell tips”

Using Object properties

A lot of people see PowerShell as conversion tool, but it can do so much more. It can uninstall apps, inventory your applications. Rename files to a standard. Create shares, modify files and sessions and give an Administrator access to a computer without interrupting a session. It is built on .net/c# so it can doContinue reading “Using Object properties”

PowerShell Importing Data from Excel

If you want to import Excel data I recommend giving the people who toke the time to develop this module Import-Excel. It can be Read about on the PSGallery here: https://www.powershellgallery.com/packages/ImportExcel/ After reading we will try to find the module using built im module package for powershell : “find-module importexcel” we can pipe this intoContinue reading “PowerShell Importing Data from Excel”

Formatting dates from text or objects

Ever imported data just to have a non readable date stamp? Get-date can take your text that is a date and turn it into something more readable. Take “15-FEB-20” for example. It’s not really a wildly used format. Pipe that to get-date like so: Then you can format your date to remove time and whatContinue reading “Formatting dates from text or objects”

Google cloud and the absence of PowerShell.

I was looking into google cloud to explore some options for a client to leverage some automation elements and was very interested until I learned of the lack of PowerShell support. For the life of me I cannot understand Google’s purpose to neglect populations of individual platforms and still want professionals to take their platformContinue reading “Google cloud and the absence of PowerShell.”

Mobile PowerShell Needed?

I have always wanted to get my mittens on a mobile iteration of the prized management tool. I made sure I got a mobile sized tablet that would allow for me to use this on the go. Remote Desktop, Team viewer, Screen connect, VNC just dont respond like a native client. Wouldn’t it be somethingContinue reading “Mobile PowerShell Needed?”

VS code ready to replace PowerShell ISE?

There is a push to go to Visual Studio Code, which is a plug-in rather than the PowerShell.exe having its own dedicated ISE application. It can be seen as smart, others see this as allowing for distractions. I do not like the syntax in the responses of commands, I don’t like the lack of theContinue reading “VS code ready to replace PowerShell ISE?”

Add-Member if you want to effectively “object” all things and possess their property.

I thought I would clarify this as most articles don’t simplify this to easily wrap you head around. Add-member is what I would use to add a new member to a group of properties on an object I create the object  Add a noteproperty that translate to text create a scriptmethod that can do thingsContinue reading “Add-Member if you want to effectively “object” all things and possess their property.”

Try & Catching Errors so you can relax Finally.

Sometimes you gotta Try…. okay enough pep talk. using the Try Command will allow you to catch any terminating errors. unless you specify for some commands you will not catch the errors and may not want to actually. example:  Try{ get-childitem c:\incorrectlyspelledfolder\  -erroraction Stop -recurse -errorvariable ErrorCity} #for every Try there must be a catchContinue reading “Try & Catching Errors so you can relax Finally.”

Robocopy and PowerShell working in harmony.

  So lets create a scenario,  and say that they were having difficulty using Robocopy commands within or with PowerShell. Here’s a demonstration of how to use PowerShell to be able to deliver seamless and accurate commands that will ensure that you will have your data copied and have your PowerShell script. The best partContinue reading “Robocopy and PowerShell working in harmony.”