PowerShell At The Israeli SBS Users Group (Hebrew)

April 27, 2011

מה זה בכלל PowerShell? למה אני צריך את זה? בנות אוהבות את זה? מה אם אף פעם לא כתבתי אפילו שורת פקודה אחת? אני בכלל לא מפתח – זה נוגע אלי? המון שאלות אה? על כל זאת ועוד נדבר במפגש הבא של קבוצת הדיון שייערך ב- 25/05/2011 בשעה 15:45 במשרדי מיקרוסופט, רעננה. את יתר הפרטים תוכלו למצוא בהזמנה כאן: http://sbu.co.il/forum_posts.asp?TID=420&PID=1905   אין צורך בידע מוקדם, הביאו רק את עצמכם, ראש פתוח ומצב רוח טוב,...
no comments

Learn Windows PowerShell in a Month of Lunches

April 20, 2011

Learn Windows PowerShell in a Month of Lunches is a newly designed tutorial for system administrators. Just set aside one hour a day -- lunchtime would be perfect -- for a month, and you'll be automating administrative tasks in a hurry. Author Don Jones combines his in-the-trenches experience with a unique teaching style to help you master the effective parts of PowerShell quickly and painlessly. Who Should Read It The book is written for administrators, not developers.   What's Inside Learn PowerShell 2 from the beginning-no experience required! ...
one comment

Converting date strings in PowerShell

April 14, 2011

The Get-Date cmdlet lets us create, convert, and format date strings to DateTime .NET objects. However, there’s one thing it cannot do, convert a date string which is not a format it expects (defines by your system locale). For example, if your current culture is en-US you can pass a date string in the format of MM/dd/yyyy to the –Date parameter and Get-date will convert it to a DateTime object: PS > Get-Date -Date 4/13/2011 Wednesday, April 13, 2011 12:00:00 AM   On the other hand, if we pass a string in the format of...
13 comments

Tied Variables in PowerShell

April 12, 2011

When PowerShell starts it creates a bunch of Automatic Variables. One of them is $PWD. $PWD contains a path object that represents the full path of the current directory (provider sensitive). Typically, when you assign a value to a variable, the value is evaluated once and from then on it's "static", each time you call the variable the returned value is always the same. The beauty of $PWD is that its value is calculated each time you call it. PS> $PWD Path ---- D:\scripts PS >...
5 comments