Showing results for July 2015 - Page 2 of 14 - Scripting Blog [archived]

Jul 29, 2015
0
0

Use Function to Determine Elevation of PowerShell Console

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about using a function to determine if a Windows PowerShell console is elevated. Microsoft Scripting Guy, Ed Wilson, is here. I had a friend tell me that nearly half of all the cmdlets, functions, and whatever’s in Windows PowerShell 4.0 on Windows Server 2012 R2 required eleva...

Scripting Guy!Windows PowerShellscripting techniques
Jul 28, 2015
0
0

PowerTip: Read File with Backtick in Name

Doctor Scripto
Doctor Scripto

Summary: Read the content of a text file with a backtick ( ` ) in the name.  How can I use Windows PowerShell to read the content of a file that has a backtick ( ` ) in the file name?  Use single quotation marks around the name when you supply the path to Get-Content, for example: Get-Content 'c:\fso\a file with a `in ...

Scripting Guy!Windows PowerShellPowerTip
Jul 28, 2015
0
0

One of My Favorite PowerShell Functions

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, discusses one of his favorite functions: Get-EnumValues. Microsoft Scripting Guy, Ed Wilson, is here. Today I am working on my presentation for Atlanta TechStravaganza 2015, which will happen on August 21. It will be a really cool event, and the Scripting Wife and I are looking forward to attending ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 27, 2015
0
0

PowerTip: Find PowerShell Variables Defined for AllScope

Doctor Scripto
Doctor Scripto

Summary: Find Windows PowerShell variables that are defined for all scopes.  How can I find  what variables are defined as AllScope in my Windows PowerShell environment?  Get a list of all your variables, and filter for options that include AllScope, for example: (dir variable:).where({$_.options -match 'allscope'})

Scripting Guy!Windows PowerShellscripting techniques
Jul 27, 2015
0
0

Describe Your PowerShell Variables

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about adding a description to variables. Microsoft Scripting Guy, Ed Wilson, is here. There is a “water feature” outside that keeps running and running and running. It is a bit strange, and to be honest, it makes me think that it is raining all the time. In central Florida in the summer...

Scripting Guy!Windows PowerShellscripting techniques