Quantcast
Channel: The PowerShell Guy : hey!
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy!, How Can I Retrieve Time Zone Information for a Computer?

As you can see in former posts also I picked up my Hey PowerShell guy series again, I did stop when the ScriptCenter started to provide PowerShell examples also see : Hey, PowerShell Guy ! How Can I .....

View Article



Image may be NSFW.
Clik here to view.

Hey PowerShell Guy!,How Can I Map Drives Based on Membership in an Active...

In this translation of a Hey Scripting guy article to PowerShell based on : How Can I Map Drives Based on Membership in an Active Directory Group When the User Belongs to Multiple Groups? I tuned the...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell guy !, The Games Are Afoot! Oh, and Some XML, Too

In TechNet Magazine you can find the Scripting Guy article  The Games Are Afoot! Oh, and Some XML, Too I translated the scripts given for this article into PowerShell   # Create $xml = New-Object xml...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy!, How Can I Create an Windows Form For Displaying Log Files?

In the Hey Scripting guy ! article : How Can I Create an HTA For Displaying Log Files? , I made this example in PowerShell Using Windows Forms using the PSEventing CodePlex project PowerShell Eventing...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !, How Can I Remove Extraneous Spaces From Fields in a...

A little one before the, 2008 Winter Scripting Games The PowerShell version of the Hey Scripting guy VBScript version  :  How Can I Remove Extraneous Spaces From Fields in a Text File? (gc...

View Article


Image may be NSFW.
Clik here to view.

Hey PowerShell Guy! How Can I Replace Incorrect Dates in My File Names?

No solutions to post today , so time for a small Hey scripting guy ! translation : How Can I Replace Incorrect Dates in My File Names?  dir *.jpg | ren -new {$_.name -replace...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShellGuy !, How Can I Determine the Currency Symbol in Use on a...

From the Scripting Son article  : How Can I Determine the Currency Symbol in Use on a Computer?  3 ways to do the same in PowerShell :  (gp 'hkcu:\Control panel\International').sCurrency...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !,How Can I Separate The Month From the Year in a Date...

How Can I Separate The Month From the Year in a Date String Like 122007? [datetime]::ParseExact(122007,'Myyyy',$null) | ft Month,Year You can see you can use ParseExact to convert a custom format to d...

View Article


Image may be NSFW.
Clik here to view.

Hey PowerShellGuy!,How Can I Check to See if Two Lines of Text are in a File...

How Can I Check to See if Two Lines of Text are in a File and, If They Are Not, Append Those Lines to the File? Translation to PowerShell of a  Hey, Scripting Guy! column that shows you how to check a...

View Article


Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !, How Can I Retrieve All the Values in a Registry Key?

Today's Hey Scripting Guy ! column , How Can I Retrieve All the Values in a Registry Key? , Shows a 38 line VbScript to get the Values in a registry key. In a PowerShell console it just takes this...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !,How Can I Delete All the Files in a Folder Except for...

Another Hit-in-one(liner) translation from a ca 30 lines VbScript example : How Can I Delete All the Files in a Folder Except for the Most-Recently Created File? del *.* -Exclude (dir | sort...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !, How Can I Copy Files Based on Multiple Criteria?

A Translation of the Scripting Guys post : How Can I Copy Files Based on Multiple Criteria? VbScript example, As mostly in this series I point to the original Article for more information. dir...

View Article

Image may be NSFW.
Clik here to view.

Hey PowerShell Guy !, how can I use get-content to analyze sql server logfile ?

I got a nice question the the comments, how can I use get-content to analyze sql server logfile ? Ran has a SQL logfile like this :  2008-10-21 09:51:51.40 spid3 "ERROR:"  2008-10-22 09:51:52.04 spid3...

View Article

Browsing all 13 articles
Browse latest View live




Latest Images