Showing posts with label command line. Show all posts
Showing posts with label command line. Show all posts

Saturday, May 15, 2021

Microsoft Edge–Uninstall from command-line

Need to uninstall Microsoft Edge using a command-line or remotely?

Here’s how:

  1. Open an elevated command-prompt
  2. Navigate to “C:\Program Files (x86)\Microsoft\Edge\Application\[version number]\Installer”
  3. Run the following command-line: setup.exe --uninstall --system-level --verbose-logging --force-uninstall

And it’s all done!

Sunday, May 13, 2018

Deployment Tips – Extracting All Microsoft Office Updates in a Folder

image

Because you may need to create a new source installation of your Microsoft Office and gather all the necessary security updates, here’s a quick tip extract all *.exe Office updates to the Updates sources folder.

This is particularly useful because most of the time you’ll download the updates on *.exe format and has you may know, the automated install will look for *.msp files inside the Updates folder instead.

So, here are the necessary steps to do it:

For this example we’ll use the folder D:\Temp\10\Office where you’ll put all your downloaded *.exe files and you should create also D:\Temp\10\Office\Updates where the files will be extracted.

  1. Download all your *.exe files and move them to D:\Temp\10\Office

  2. Open a command-line as Administrator

  3. On the command-line, navigate to D:\Temp\10\Office

  4. Know just execute the following command:
    for %g in (D:\Temp\10\Office\*.exe) do %g /extract:D:\Temp\10\Office\Updates /quiet

  5. All *.msp files will be extracted to D:\Temp\10\Office\Updates and now you just need to copy them to your “OfficeSource\updates”.


And you’re done!

Tuesday, August 8, 2017

Tips and Tricks – Activating Windows 10 in 2 Different Ways

control-panel-enter-product-key

If for some reason you’re having trouble to activate Windows 10 (it also works for previous versions) here’s 2 different ways to do it:

Launch Activation GUI

  • Click Start
  • Type slui 3 and press Enter
  • On the Windows Activation window type your product key and you’re done

Command Line Activation

  • Launch command-line (cmd) as Administrator
  • Type slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx (where xxxxxx it’s your product key)
  • Press Enter and wait for the confirmation dialog box
  • Done

Wednesday, November 25, 2015

Scripting - Merging multiple txt files in one



Here's a nice, quick and simple tip if you need to merge multiple text files (*.txt) in just one:

  1. First put all your txt files in a folder (for example D:\Temp)
  2. Now open command line and navigate to D:\Temp
  3. Next, type the following command:
    for %f in (*.txt) do type "%f"  >> output.txt
  4. And...it's done!

Sunday, October 19, 2014

Windows 10 - Command line console improvements



Aside of the new Task View, Virtual Desktop and of course, the revamp of Start Menu, Microsoft didn't forget about those who uses for most of it's work time the command line console.

Simple things like...stretching the console window or copy+paste it's now available!

For a complete list of command line console improvements, read this article!
Windows Blogs - Command Line Console Improvements