Showing results for getting started - Scripting Blog [archived]

Jul 31, 2015
Post comments count0
Post likes count0

What’s My PID?

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, creates a function to capture the process ID of a Windows PowerShell host. Microsoft Scripting Guy, Ed Wilson, is here. One of the things I like to know is the process ID (PID) of specific processes. Often this is trivial. I can use the Get-Process cmdlet and, for example, look to see what the process ID...

Scripting Guy!Windows PowerShellscripting techniques
Jul 30, 2015
Post comments count0
Post likes count0

Launch Elevated PowerShell Shell

Doctor Scripto
Doctor Scripto

Summary: Ed Wilson, Microsoft Scripting Guy, talks about launching an elevated Windows PowerShell shell. Microsoft Scripting Guy, Ed Wilson, is here. Today I had a great talk with Steve, the Scripting Manager. One of the things we talked about was the importance of community, and how the Windows PowerShell community seems to be really engaged with ...

Scripting Guy!Windows PowerShellscripting techniques
Jul 29, 2015
Post comments count0
Post likes count0

PowerTip: Use PowerShell to Check Logon Server for Client

Doctor Scripto
Doctor Scripto

Summary: Use Windows PowerShell to check the logon server of your clients.  How can I use Windows PowerShell to verify if my users are trying to sign in to their computers with a Windows account            instead of using their domain credentials?  Check the value of the environmental LOGONSERVER&n...

Scripting Guy!Windows PowerShellscripting techniques
Jul 29, 2015
Post comments count0
Post likes count0

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
Post comments count0
Post likes count0

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