![]() In yesterday blog, I talked about initializing a variable to avoid continuously incrementing a variable each time the script runs. What if I want my script to continue to increment? Last night I received an email on that asked the following question. On Tuesday, I wrote Use Strict Mode for PowerShell to Help You Write Good Code, and yesterday I posted Avoid PowerShell Errors by Initializing Variables. The past several days I have talked about using the Set-StrictMode cmdlet to avoid certain types of Windows PowerShell errors. It will be a great occasion, and I hope to see you there. The Scripting Wife will be helping with registration, so you will have a chance to meet her, and I will be making two presentations about Windows PowerShell. Luckily, you do not have to preregister for this event, so if your day looks slack tomorrow, come on out and join the nearly 1000 other people who are expected to turn out. So if you are in the Charlotte, North Carolina area, hopefully you will be able to attend this event. Tomorrow, the long awaited Charlotte IT Pro Appreciation Day commences at 9:00 Eastern Time. In fact, this year I am proud to announce that the Scripting Manager has caught the excitement from all my weekly status reports, and he has volunteered to be a judge for the games this year! Check out Dave Bishop’s biography on the Announcing the PowerShell Judges for the 2012 Scripting Games page. The excitement of the 2012 Scripting Games is really growing. (I knew that, but I tend to forget at times.) Note Thanks to Windows PowerShell MVP, Richard Siddaway, for recently pointing out that typing a date in the fashion, 4/2/12 can lead to problems in international locations. New-TimeSpan -Start (get-date) -End “april 2, 2012” Here is how I found out that salient piece of information. It is exactly 11 days until the 2012 Scripting Games commence. Microsoft Scripting Guy, Ed Wilson, is here. Summary: Use the Windows PowerShell environmental drive to store temporary information, and still use the Set-StrictMode cmdlet. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |