Tag: Delete

Last updated by at .

Remove a VPN connection in Windows 7

In Windows 7 you an create VPN connections for PPTP, L2TP or SSTP. To delete a connection you can not just right click and press delete. But it’s still very simple, but a lot of people can’t find where you can remove VPN connections, because it is a kind of hidden ;-).

  1. First open Network and Sharing Center
  2. Click Change Adpater Settings on the left side
    networkandsharingcenter
  3. Now you can see all connections and you can remove the VPN connection


Powershell: How to export Windows Eventlogs with Powershell

Powershell Header

This is a little dirty Windows Powershell script which exports or backups Windows Eventlogs. The script creates a .evt file which can be used with the Windows Eventlog Viewer.

And with the next code it cleans up older exported Eventlogs.

UPDATE: If you wanna clean the Eventlog after the export you can do that by using the Clear-Eventlog cmdlet. (Thanks to Michel from server-talk.eu)

And here the whole “script”



Powershell: Delete Files older than

Powershell Header

This is a simple Powershell script which deletes Files older than some days. You can use it to cleanup old logfiles or other things. If you run the script the first time you can add the “-WhatIf” parameter after Remove-Item command.

If you need to delete files in subfolders too, you can use this script. This is the same script with the Get-Childitem parameter “-Recurse”.