Showing results for August 2014 - Scripting Blog [archived]

Aug 31, 2014
1
0

PowerTip: Using PowerShell to Determine if Path Is to File or Folder

Doctor Scripto
Doctor Scripto

Summary: Learn how to use Windows PowerShell to determine if a path is to a file or a folder.  How can I use Windows PowerShell to determine if a path is to a file or a folder?  Use the Get-Item cmdlet to get the object represented by the path. Then use the –Is operator to see if the         &...

Scripting Guy!Windows PowerShellPowerTip
Aug 31, 2014
0
0

Weekend Scripter: Parse Folder of Data with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to parse a folder that contains data dumps. Microsoft Scripting Guy, Ed Wilson, is here. This morning I got up, and headed to the Farmers Market in town. I picked up a fresh melon for breakfast and some locally made cheese. Melon and cheese with a nice up of English Breakfast tea…not a bad meal. I am sitting ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 30, 2014
3
0

PowerTip: Use PowerShell to Set Primary and Secondary DNS Server Addresses

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to set the primary and secondary DNS server addresses for a client.  I recently changed the IP address scheme for an entire subnet. How can I use Windows PowerShell to set the            primary and secondary DNS server addresses for the client workstations?  Use the Set-...

Scripting Guy!Windows PowerShellPowerTip
Aug 30, 2014
0
0

Weekend Scripter: A Function to Clean Up Data Import

Doctor Scripto
Doctor Scripto

Summary: Learn about a Windows PowerShell function you can use to clean up data prior to import. Microsoft Scripting Guy, Ed Wilson, is here. We are entering the Labor Day weekend in the United States today. Labor Day is a sad holiday, but it is also a happy time. It is sad because it traditionally marks the end of summer. It is happy because if ...

Scripting Guy!Windows PowerShellscripting techniques
Aug 29, 2014
0
0

PowerTip: Hide Common Code in PowerShell ISE

Doctor Scripto
Doctor Scripto

Summary: Learn how to hide common code in the Windows PowerShell ISE. How can I hide related code in the Windows PowerShell ISE to make it easier to troubleshoot and to read? Open the ISE, and in the script pane, begin a section with the #Region tag and a name.            Then end the section with ...

Scripting Guy!Windows PowerShellPowerTip

Feedback