Batch Rename Files and/or Folders in Windows Command Line

Batch rename files using Windows command line. for /d /r %x in ("*") do pushd "%x" && ren *.eml *.msg && popd Recently restored about 18k emails in various folders from a PST file which exports as an .MSG formatted file. I then reconverted those .MSG to .EML format. Now, the mail server I'm using requires .MSG extension but .EML format (go figure) so I had to rename all these suckers. Easiest way was with some command line kung-fu. Luckily the ren *.eml *.msg works otherwise this would have been Continue reading →

Wallpaper Location in Windows 7

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

This drove me nuts for a few minutes trying to find the location of the Windows 7 wallpaper as I was trying to migrate a profile to a new user and needed to copy the wallpaper as well.
The path, in Windows 7, is:

C:UsersUSERNAMEAppDataRoamingMicrosoftWindowsThemesTranscodedWallpaper.jpg

 

Transparent Command, Putty, Powershell and PuTTY Windows

I modified the code from NothinButNet's Glass project on CodePlex to run continuously and monitor for the following windows: PuTTY (putty.exe) Windows Command Prompt (cmd.exe) Powershell (powershell.exe) Telnet (telnet.exe) There isn't a way to stop it once started other than killing the task (taskkill /f /im glass.exe) or however you choose. You can pass the original parameters to it still if you want by either a shortcut or however you want and it will work so you can set transparency level, etc. Continue reading →

#powershell

Powershell Active Directory Searcher Boiler Plate

I'm sure I'll be using this more and more in the coming months as I familiarize myself with Powershell. Below is a template or boilerplate for Active Directory Searcher in Powershell. This was taken from a great video podcast from Youtube by David Hoelzer. Below is the video from Youtube. You can check out his channel for some other great videos. http://www.youtube.com/watch?v=8bOHK5HF5QQ&feature=plcp Here's the Powershell code. $Domain = [System.DirectoryServices.ActiveDirectory.Domain]::GetCurrentDomain() $ADSearch Continue reading →

#powershell

How to Extract User Objects from Active Directory in Powershell

This article was posted more than 1 year ago. Please keep in mind that the information on this page may be outdated, insecure, or just plain wrong today.

This is a podcast from David Hoezler’s YouTube channel that reviews User Object extraction via Powershell.

#powershell