A
A
Amarg02015-05-08 14:12:32
PowerShell
Amarg0, 2015-05-08 14:12:32

Is it fast to learn basic powershell scripting?

Good afternoon.
How quickly can you learn to write simple powershell scripts, devoting 6-8 hours a day to this?
Thank you.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Puma Thailand, 2015-05-08
@opium

in about one day

M
MrDywar Pichugin, 2015-05-08
@Dywar

Googled something from which he quickly delved into.
1) https://www.youtube.com/watch?v=kJB6IF3p9vE&list=P...
2) https://www.youtube.com/watch?v=hVzXH0DfvWI
This is enough to master the principle of PowerShell in 1 day .
Further practice and specific tasks.
There are features that not everyone knows about, you need to google, for example, you can write a class in pure C # and use it in a script as an additional type.
For example:

Add-Type @'
    public class Employee
    {
        public string LoginName { get; set; }
        ...
        public string Name { get; set; }
        public System.Collections.ArrayList blablabla = new System.Collections.ArrayList();

        public override int GetHashCode()
        {
            return LoginName.GetHashCode();
        }

        public override bool Equals( object obj )
        {
            if ( obj == null )
            {
                return false;
            }

            Employee p = obj as Employee;
            if ( ( System.Object ) p == null )
            {
                return false;
            }

            return ( this.LoginName == p.LoginName );
        }

        public override string ToString()
        {
            return this.LoginName;
        }
    }
'@

D
Denis Kolmykov, 2015-05-08
@dinizzzo

Powershell is not a difficult language, you can learn very quickly. The built-in help is more than enough (do not forget to update it first: Update-Help).

M
Mikhail Potanin, 2015-05-14
@potan

It took me more than a week of reading a book for half an hour on the bus (with not too good knowledge of English) and no more than an hour of experimentation at work. Now I use it for debugging web services.
I would not be able to master something continuously for 6 hours. If you are able, then it turns out a day or two.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question