Saturday, 10 June 2017

Static classes in Powershell

Static in PowerShell is calling a method without creating instance of the object.
In Powershell it not always mandatory to create new function, there are many existing .Net build function can be used.

Eg. [Math] class

PS C:\> [math]::Sqrt(4)

To see all the static method associated with the class

PS C:\> [math] | gm -Static

Happy Learning

Sunday, 19 March 2017

Powershell Script Security.

Sometime the script will not pass through the Compliance as you have hard coded the password information of account in the script and any one who have the access to the server can use it with GOD mode access, Many times to come out of the situation converted my scripts to exe and deployed it in Production, However there is a drawback know one cannot debug the scripts and about the functionality.What if you not there in the company anymore,It will be a nightmare to team who is managing it.

There is one way I am writing it here without converting the script to exe, however it is not a full proof security ,but to some extent you can hide the password information from the user.

Thanks ..

Saturday, 4 March 2017

.. Year 2017

# I do not have my resolution yet this year, may be I am in comfort Zone
   I have to kick my ass and start working.

This year we are going to see a lot of transformation, It's good for all IT guys start embracing cloud technology.

I set my Goals today.

Azure AD connect.
Learn C# Programming
Office 365


Born as Mathematician, Found love in Scripting and want to have an affair with C#

Total Pageviews