Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Powershell   (RSS)
Sorry, but there are no more tags available to filter with.

Powershell script that can schedule itself to run later

From time to time I find it useful to schedule tasks to run on my machine. I often realize that many people are unaware that windows 2003 has a built in task scheduler; and even more of a rarity for them to be aware it can be managed via the command line.
Posted by mwilbur | 1 Comments
Filed under:

Powershell 1 liner: Key Value pairs from text file to hashtable

Example Problem: You have a text file that contains key value pair and you want to use them as a hash table in powershell. Values.txt: key1=value1 key2=value2 key3=value42 One way to do it: PS C:\temp> gc values.txt | %{$h = @{}} {if ($_ -match "(.*)=(.*)")
Posted by mwilbur | 0 Comments
Filed under:
 
Page view tracker