Answer the question
In order to leave comments, you need to log in
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
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;
}
}
'@
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).
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 questionAsk a Question
731 491 924 answers to any question