Showing posts with label Powershell application. Show all posts
Showing posts with label Powershell application. Show all posts

Thursday, February 6, 2014

PowerShell Application : Numerology Application created using PowerShell

 

clip_image002

 

Don’t call me insane, and please don’t use the words “WTF!”, “Shit” etc. I knew, PowerShell and numerology sound very insane.

I know, I know, PowerShell is for IT guys, Admins , developers, but, it is scripting language, we can use is to easy and other life.

Download Link : https://dl.dropboxusercontent.com/u/17858935/Numerology.zip

 

Background

 

One of my friend is a numerologist, he was facing some problem and asked me if I am able to help him. The issue which he was facing was to convert the name of his clients to numbers, he has to do the manually . That’s what he use to do.

For example you name is Aman and you want to know about your ruling number and planet

Alphabet

Position of Alphabet in English Letter

A

1

M

4

A

1

N

5

 

So the Number for Aman is = 1+4+1+5 = 11 as we have only 9 planets, we have to add 11 to 1+1 again and we got the ruling number 2.

Now if you name is more complex than mine, he is going to spent a decent amount of time to add it.

Solution

 

I have created a simple PowerShell GUI for him, so that he just need to type the name of the user it to it and click on calculate button, and he got the ruling number of the user along with him ruling planet.

 

How to use it

Download the zip file from this link : https://dl.dropboxusercontent.com/u/17858935/Numerology.zip

This zip file contain, Images those are used in the GUI, a PowerShell source file and an executable file.

To open the numerology PowerShell application.

Double click on “Numerology.exe”

 

clip_image003

Type you name and click on calculate. That’s all.

clip_image005

 

 

I learned

Open the PowerShell file,  and you can see a good example of using arrays and the if logic.

 

Special thanks

To all “PowerShell MVPs” who helped me when I stuck at a small script logic.

 

I hope you will enjoy this.

 

Regards

Aman Dhally

 

clip_image017 clip_image018 clip_image019 clip_image020  clip_image021

 

 

Monday, September 23, 2013

Powershell Tools : Windows Login Screen Changer GUI application.

 

Hi,

In my previous post, i described about, how to change login screen using Powershell.

In weekend I thought about to create a small Powershell GUI application to set a Login screen for us.

How to use it.

Run the script as Administrator and in a –Sta mode.

0

 

Click on Change Login Screen to choose the picture which you wan to set as login screen, make sure that the picture should be less then 254 kb in size.

You can click on Test button to test the current set Login screen.

If you want to set your login screen to default then click on “set to default button”.

1

 

Set a Lon screen:

  1. Click on “Change Login screen”
  2. Then choose you image and click on Open.

 

2

This will show you which pic you has chose as a login screen. Click on Test to test the login screen pictures which we has just choose.

3 

and here is the result :) .

IMG-20130919-00495

Download Link : http://gallery.technet.microsoft.com/Powershell-Application-303a17cb

 

I hope that you find is useful.

Aman Dhally

clip_image001 clip_image002 clip_image003 clip_image005clip_image007

Tuesday, April 23, 2013

Powershell Script : Stopwatch

Hi,

Few days back I upload a script on “Powershell Digital Clock”, when i was writing that script at that time another script idea strike in to my mind, that ideas was to create a Stopwatch using Powershell.

I don’t know writing a script for stopwatch is a good idea or not, but i know one thing that i will learn a new thing and that may be helpful in the future.

After thinking i started writing an GUI based script to creating a stopwatch.

Powershell has open lots of possibilities for system administrators like me. We just need to imagine what we want and we able to achieve it easily using Powershell.

Last week when i take a session in Delhi User Group meeting, i told attendees that Powershell is the most easiest scripting language to be learn.

Anyway.

In this “Stopwatch” i used 4 buttons, one to start the clock, One to stop the clock , one to reset the stopwatch and another is for the lap.

I am not so good in designing GUI so ignore the colour of the buttons ;o).

In this script i learn few new things.

Lesson Learned:

  • System.Diagnostics.Stopwatch class
  • Few methods of System.Diagnostics.Stopwatch class
  • Make multiline textbox in powershell to auto scroll using
              • $textBox1.SelectionStart = $textBox1.Text.Length;
                $textBox1.ScrollToCaret()

  •  

23-04-2013 22-51-47 23-04-2013 22-55-52  

“Screenshot of the script”

Please run this script in –Sta mode

23-04-2013 22-54-51

Download Link : https://dl.dropboxusercontent.com/u/17858935/StopWatch-Community-Edition.zip

 

Thanks
Aman Dhally
 
 
clip_image001 clip_image002 clip_image003 clip_image005clip_image007

Monday, April 15, 2013

Samay : Powershell script based digital clock.

Hi,

Few days back i was writing an powershell GUI based script, in that script I need to add a clock.

First i thought how can i make a clock? I was thinking about an hour and then i got an idea. why not to use timer object and use it for creating an clock.

This is what i have done to create a GUI clock.
  1. Created a blank form on “Powershell Studio”
  2. Add a blank label to it
    1. 15-04-2013 23-12-48
  3. Added a time object to it.
    1. 15-04-2013 23-13-18
  4. In timer object property , i set Enabled to true, and interval to 1 {which is very low because the it is in milliseconds}
  5. Double click on “Timer” object and i added the below code.
  6. 15-04-2013 23-11-16
  7. In above code , i am just converting, Get-Date to string.
  8. and when you run scrip the outcome is running Powershell Digital clock.
Screenshot
15-04-2013 23-03-59

You can download the script from here: http://gallery.technet.microsoft.com/scriptcenter/Samay-Powershell-Digital-45acb9d2

Thanks
Aman Dhally
clip_image001 clip_image002 clip_image003 clip_image005clip_image007




Download Link : https://dl.dropboxusercontent.com/u/17858935/Samay-Digital_Clock.zip