Tag Archives: Windows 8

Using wevtutil command under Windows – part 001.

This command let you to retrieve information about event logs and publishers, to install and uninstall event manifests,run queries, and to export, archive, and clear logs.
I will start with simple examples to see how is working.
First you need to know the events can be see also with windows tool named Event Viewer.
This tool can be found with Control Panel – search Event.
Take a look at Windows Logs – Application. You can see that some logs are created to show how it works.
For today I will deal with this part. The sintax of this command:
wevtutil [{el | enum-logs}] [{gl | get-log} [/f:]]
[{sl | set-log} [/e:] [/i:] [/lfn:] [/rt:] [/ab:] [/ms:] [/l:] [/k:] [/ca:] [/c:]]
[{ep | enum-publishers}]
[{gp | get-publisher} [/ge:] [/gm:] [/f:]] [{im | install-manifest} ]
[{um | uninstall-manifest} ] [{qe | query-events} [/lf:] [/sq:] [/q:] [/bm:] [/sbm:] [/rd:] [/f:] [/l:] [/c:] [/e:]]
[{gli | get-loginfo} [/lf:]]
[{epl | export-log} [/lf:] [/sq:] [/q:] [/ow:]]
[{al | archive-log} [/l:]]
[{cl | clear-log} [/bu:]] [/r:] [/u:] [/p:] [/a:] [/uni:]

Let’s start:
– show us the four most recent events from the Application log in textual format:
wevtutil qe Application /c:4 /rd:true /f:text
– display the status of the Application log:
wevtutil gli Application
– save logs to C:\backups\today.evtx and clear all of the events from the Application log:
wevtutil cl Application /bu:C:\backups\today.evtx
– show the configuration information about the Application log on the local computer in XML format:
wevtutil gl Application /f:xml
I will come with many example of this command. Thank you.

Posted in All, Commands, Windows 8. Tagged with , , , , .

Managing your bookmarks with xmarks.

This tool works by cloud-storing your bookmark files and synchronizing them between computers.
I used this tool from at least 7 years.
The tool synchronization allowing for full merges or overwrites from the server or any linked workstation.
Come with addons for Firefox and works well with Chrome,Internet Explorer and Safari.
The next image show you how data bookmarks from server will restore your bookmarks:
xmarks free tutorials

Posted in All, web, Windows 10, Windows 7, Windows 8, Windows XP. Tagged with , , , , , , .

Using python to make authentication into GMail API.

Is simple to do with python. The script I make is simple without classes.
Let’s start with first steps:
You need to create your project and then one credential with json file.
See the next image to see how is your json file. My json file is renamed to client_secret.json and is used by python script.
The json file is into same folder with my python script.
After first run the script will make one json file named: gmail-python-quickstart.json.
Is simple way to get and put credentials to solve authentification to google.
Another step is to add GMail API library to your project. This allow you to use the functions from the GMail API.
The python script is very simple to do. Follow the part of this script.
Is need to use some python modules. One reason is to deal with email format, see email python module.
Some python modules are used to make authentication to google: oauth2client and apiclient.
I used argparse python module , but is no need to add arguments to the script.
The result of this script will send a email to: your@yahoo.com.
The email is created by CreateMessage function.
About the special value “me” that come from Google API and is for user.

Posted in All, Google API, Programming, Python. Tagged with , , , , , , , .

Windows 10 – replace cmd with powershell.

1. Why PowerShell?
– since Windows 7 we have a new command-line environment in Windows named PowerShell;
– is a much more powerful command-line shell;
– the scripting language is more good than the Command Prompt;
– is more complicated than the traditional Command Prompt;
– uses different commands, known as cmdlets in PowerShell;
– allows you to create your own commands and scripts using the C# programming language;
2. How to replace cmd with powershell.
Right click with the mouse on taskbar from bottom of your Windows screen.
Then select the tab named Navigation and select option with: “Replace the …”. Press then Ok button.
Right click with the mouse on the Start icon and will see the replacement of Command Prompt.

Posted in All, Commands, PowerShell, Windows 10, Windows 7, Windows 8. Tagged with , , , , , , .

Windows 10 – using DISM – part 001 .

The Deployment Image Servicing and Management named DISM.exe is a command-line tool that can be used to service a Windows. DISM can be used to mount and service a Windows image from a .wim file, .vhd file, or a .vhdx file or, in some cases, to update a running operating system. It’s working for Windows 10, Windows 8.1, Windows 8, Windows Server 2012 R2 or Windows Server 2012. Also may help you to fix some Windows corruption errors – and this will be the subject of this tutorial.
So you need to start the Command Prompt (Admin) by right clik with the mouse on Start button.
Then select the Command Prompt (Admin) and press Yes to User Acces Control modal dialog.
You will see the Command Prompt (Admin) and use this commands:

– it’s gonna take some time.

– use if you encountered an error at the scan.
The DISM tool creates a log file: %windir%/Logs/DISM/dism.log
You can read more about this tool from here.

Posted in All, Windows 10, Windows 8. Tagged with , , , , , .