Posts

Showing posts from March, 2015

Read a string using Powershell...Or maybe reverse it then read it

Image
Read a string using PowerShell...Or maybe reverse it then read it  -           I was roaming around the internet once, and I saw this page somehow : https://msdn.microsoft.com/en-us/library/ms723602%28v=vs.85%29.aspx -           This page contains something called “SPVoice Interface”, this is a COM object which brings the capabilities of TTS (Text-To-Speech) engine to our applications or scripts. -           I was just playing around with this, just reading a normal text in English, the code looked something like this : -           This was a normal thing to do, just reading a text, of course, there are many thing you could do with this COM object, such as changing voice from male to female and other stuff, you can refer the link mentioned above . -           Now this is where things got strange, I wanted to reverse the text then read it and see how it sounds…, the code looked something like this : -           Try it out and see how it sound

HP OneVeiw library for PowerShell

Image
HP OneVeiw library for PowerShell -           We are starting a new project with HP in our environment including some Enclosures and other HP hardware. -           As a scripting guy I was asking the HP engineer if they have some CMDLETS for their famous tool   called “OneView” -            He told me about this new library for   PowerShell : https://hponeview.codeplex.com/ -           It is obvious that it’s not their product, but HP guy recommended it for me personally. -           I will post an example later once I am free from this project on how you could configure your environment with just one click -           Gotta Go now, Happy Scripting everyone…Hasta luego todos….

Using Microsoft Baseline Security Analyzer 2.x (MBSA) With PowerShell

Image
Using Microsoft Baseline Security Analyzer 2.x (MBSA) With PowerShell : -  When you are in a new environment and you just had your bare metal servers setting there doing nothing or maybe some virtual servers, a first thing to do is starting your implementation plan (Assuming you had one already and it's Microsoft based thing),  - You will install windows server OS (Whatever version you decided in your plan), you end up doing some hardening, installing patches and applying other security policies. - I personally faced this scenario few times, where you do not have much automation tools to apply patches and applying the security policies on a bunch of servers and do the mandatory hardening, you really feel it is a waste of time. You want to do your real work, not this..!  The good thing is i know some stuff about PowerShell, and I decided to automate something here. - At first, i created a small piece of code, with the help of MBSACLI.exe (The CLI of MBSA) and PowerSh