Browse by Tags

Tagged Content List
  • Blog Post: How Can I Retrieve the Path to the %windir% Folder on a Computer?

    Hey, Scripting Guy! How can I retrieve the path to the %windir% folder on a computer? -- DS Hey, DS. Interesting that you should ask this question. This same question happened to be asked on an internal Microsoft mailing list just the other day, and the answer given (not by one of the Scripting Guys...
  • Blog Post: Use PowerShell to Find User Profiles on a Computer

    Summary: Learn how to use Windows PowerShell to find all user profiles on a computer, and to display the date when each profile was last used. Hey, Scripting Guy! I would like to find a good way to see which profiles exist on my laptop. I found a Hey, Scripting Guy! post to do this, but it uses...
  • Blog Post: How Can I List All the Files on a User’s Desktop?

    Hey, Scripting Guy! How can I list all the files on a user’s desktop? -- BT Hey, BT. So you thought you could fool the Scripting Guys, did you? Well, you did, at least for awhile. As is so often the case with the Scripting Guys we took one look at your question and thought, “Let’s answer this one;...
  • Blog Post: Hey, Scripting Guy! The Scripting Wife Works with Special Folders

    This week we are following the Scripting Wife as she pushes ahead with her preparations for the 2010 Scripting Games . You can catch up with her progress by reviewing the articles in the archive . Microsoft Scripting Guy Ed Wilson here. It is a quiet day; the calm before the storm so to speak. The...
  • Blog Post: How Can I Get a List of All My Internet Cookies?

    Hey, Scripting Guy! How can I get a list of all my Internet cookies? -- ZO Hey, ZO. OK, we have to admit it: you tricked the Scripting Guys, and we fell for it, hook, line, and sinker. As soon as we saw your email - and the word “cookies” - there was a mad scramble to see who would get to answer this...
  • Blog Post: How Can I Add a Shortcut to the Quick Launch Tray?

    Hey, Scripting Guy! How can I add a shortcut to the Quick Launch tray? -- ZR Hey, ZR. Before we answer this question we need to first answer a different question. And here’s the answer: Frank “Home Run” Baker, who led the major league in homers four times, even though he never hit more than a dozen...
  • Blog Post: Weekend Scripter: Use PowerShell to Manage Windows Network Locations

    Summary : Guest blogger, Microsoft PFE, Chris Wu, shows how to use Windows PowerShell to manage Windows network locations. Microsoft Scripting Guy, Ed Wilson, is here. Today we have another guest blog by my good friend Microsoft premier field engineer (PFE), Chris Wu . Chris started his career...
  • Blog Post: How Can I Retrieve the Path to the Program Files Folder on a Computer?

    Hey, Scripting Guy! How can I retrieve the path to the Program Files folder on a computer? -- CC Hey, CC. How can you retrieve the path to the Program Files folder on a computer? Well, to be honest, not as easily as we thought you could. If you’re trying to retrieve the Program Files path on the local...
  • Blog Post: How Can I Return the URLs Associated with My Internet Explorer Favorites?

    Hey, Scripting Guy! How can I return the URLs associated with my Internet Explorer Favorites? -- DW Hey, DW. It’s time for annual performance reviews here at Microsoft, which means we Scripting Guys are supposed to be looking back and detailing all the many things we’ve done in the past year. Unfortunately...
  • Blog Post: How Can I Change the Target of a Desktop Shortcut?

    Hey, Scripting Guy! How can I change the target that a desktop shortcut points to? For example, if I move a file from one server to another, I’d like be able to use a script to change the shortcut that points to that file. -- AK Hey, AK. This is an example of a scripting problem that’s actually pretty...
  • Blog Post: Weekend Scripter: Create a SendTo Notepad Shortcut

    Summary: Microsoft Scripting Guy, Ed Wilson, talks about using Windows PowerShell to create a SendTo Notepad shortcut. Microsoft Scripting Guy, Ed Wilson, is here. I absolutely love using Windows 8. To me, it is the best operating system we have ever released at Microsoft. I am especially proud that...
  • Blog Post: Weekend Scripter: Use PowerShell to Change Computer Icon Caption to Computer Name

    Summary : Microsoft Scripting Guy, Ed Wilson, shows how to use Windows PowerShell to change the caption of the computer icon to local computer name. Changing desktop icon captions Microsoft Scripting Guy, Ed Wilson, is here. The Charlotte Windows PowerShell User Group this past Thursday was a lot...
  • Blog Post: The Easy Way to Use PowerShell to Work with Special Folders

    Summary : Microsoft Scripting Guy Ed Wilson shows the easy way to use Windows PowerShell to work with the paths to special folders. Hey, Scripting Guy! I notice that in lots of your sample scripts, you often use a folder named FSO, and it appears off of your C: drive. Why do you do this? Is creating...
  • Blog Post: How Can I Auto-Delete Specific File Types from the My Pictures Folder?

    Hey, Scripting Guy! How can I auto-delete specific file types from the My Pictures folder? If an error occurs with my fax machine, .drg and .txt files get added to My Pictures. I then have to delete these files before the fax machine will work again. -- WW Hey, WW. You know, this was a case where...
  • Blog Post: Hey, Scripting Guy! How to Query the Contents of a Special Folder on a Windows 7 Computer?

    Hey, Scripting Guy! I need to query for the contents of a special folder on my Windows 7 computer. I would like to use Windows PowerShell to do this. I know I can use the Get-ChildItem cmdlet to return the contents of a folder, but I am not sure how to do this with a special folder, other than typing...
  • Blog Post: How Can I Use a Script to Automatically Queue Up Files That I Want to Burn to a CD?

    Hey, Scripting Guy! In Windows XP, how can I use a script to automatically queue up files that I want to burn to a CD? -- BD Hey, BD. Well, unfortunately, we have some bad news for you: there’s currently no way to burn a CD using a script. You see, the problem is that - oh, wait a second: you just...