0

Tips & Tricks : Remove Event Log Source

-

To remove Event Log Source use this:

Remove-EventLog -Source "Desktop Window Manager"
Replace Desktop Window Manager with Event Log Source you want to remove.
0

Tips & Tricks : Fixing TMG 2010 and IE 9 issue

-

When you install TMG 2010 on Windows Server with IE9 you might find that TMG console will not work.

That is caused by IE 9. In order to fix it follow steps:

  1. Open “C:\Program Files\Microsoft Forefront Threat Management Gateway\UI_HTMLs\TabsHandler\TabsHandler.htc”
  2. Search for the 3 lines which contain “paddingTop“, and remark-out each of them by adding “//” in the begining.
  3. Save the file, and re-open TMG management console.

 

Example: Change the line:

m_aPages [niPage].m_tdMain.style.paddingTop = ((m_nBoostUp < 0) ? -m_nBoostUp : 0) ;

into:

// m_aPages [niPage].m_tdMain.style.paddingTop = ((m_nBoostUp < 0) ? -m_nBoostUp : 0) ;

 

0

Apple iOS 6 Released

-

Finally Apple released iOS 6. After months of spreading news how great new iOS will be we can install it. So, was it really worth waiting and is it really that great as Apple tried to tell us past few months?

(more…)

1

Code snippets : Windows : Clear Event Logs

-

From script repository I did use in the past, VBscript which allows to clear EvenLog on Windows machine. I did use that on computers with Windows XP and Windows Server 2003. however, this script will work also on Windows 7 and Windows server 2008.

By default script clears EventLog on computer where script is executed. To clear logs on remote machine just modify variable strComputer and replace dot with name of the target machine.

Script will read all EvenLog files from machine and will go through them removing all events.

And here is script itself :

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate, (Backup, Security)}!\\" _
& strComputer & "\root\cimv2")
Set colLogFiles = objWMIService.ExecQuery _
("Select * from Win32_NTEventLogFile")
For each objLogfile in colLogFiles
objLogFile.ClearEventLog()
Next
0

Tips & Tricks : Cleanup disk after updating Windows 10 to 1607

-

When you upgraded WIndows 10 to recent Anniversary Update (1607), you might want to reclaim some disk space consumed by old files:

Seems like 35GB or more can be reclaimed.

6

Config snippets : ADLDS : Reset password without SSL

-

By default ADLDS does not allow to reset password on users created in ADLDS repository over connection without SSL. As sometimes there is a need to build test environment with ADLDS quick, SSL is the last thing which anyone would care about, especially if main thing to test is script automating password resets.

So, for convenience of the developers ADLDS allows to disable requirements for SSL connection to reset passwords. How to disable that reuqirement? See below how it was done on server where ADLDS was installed on port 50389:

(more…)

0

Code snippets : Downloading file from URL in PowerShell

-

To download file from URL I used following piece of code:

$fileURL = "http://server/file.zip"
$fileName = "C:\Downloads\file.zip"
$webclient = New-Object System.Net.WebClient
$webclient.DownloadFile($fileURL,$fileName)
0

Tips & Tricks : Migrating Mozilla Thunderbird settings between computers

-

If you have to move Mozilla Thunderbird data from one computer to another, you can do it by simply copying files between computer.

Folder with Thunderbird profiles is located here:

%APPDATA%\Thunderbird\Profiles\

There will be at least one or more sub-folders with profile data.

What you need to copy is content of Thunderbird profile you want to migrate to new computer.

On destination computer install Thunderbird and in same folder there will be sub-folder with default profile.

Copy all file from source profile to destination and that’s it.

In case you want to create Thunderbird profile in different folder start Thunderbird with following command:

thunderbird -p

That will allow you to define location of the new profile.

How that helps with migrating Thunderbird between folders/drives or computers.

0

Tips & Tricks : Windows 10 & Windows Server 2016 reset on VMware ESX 6

-

Here is one from friend of mine, very skilled Senior IT Engineer, Tomasz Jagiello. Some bugs he identified while working with VMware ESX 6.

Symptoms

VM running Windows 10 (x64) as the Guest OS is automatically reset after some hours (roughly a day). Reoccurs daily.

The thread said it also applied to Windows Server 2016 VMs.

There is an unrecoverable error that cause the VMkernel to shut down / restart / crash the virtual machine.

VMware ESX unrecoverable error: (vcpu-0) NOT_REACHED bora/devices/ahci/ahci_user.c:1530

Check if you’re using a para-virtual SATA adapter in the settings of the VM.

 

Cause

There is a VMware bug where if the SATA adapter receives SMART communications on a non-SMART device the CPU bus locks up and ESX reboots the VM.

I was using SCSI for the VM disks and SATA for the VM CD-ROM.

 

Workaround

  1. Edit VM Hardware settings
    • Remove CD/ROM
    • OK
  2. Edit VM Hardware settings
    • Remove SATA Controller
    • OK
  3. Edit VM Hardware settings
    • Add CD/ROM
    • Change to IDE
    • Remove SATA Controller
    • OK
0

Tips & Tricks : Windows 8.1 as wireless hotspot

-

When you need to use your computer as wireless hotspot, you can easily enable that functionality with PowerShell:

Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.

PS C:\windows\system32&amp;gt; netsh wlan set hostednetwork mode=allow ssid=Windows-Wireless-Hotspot key=password123
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.

PS C:\windows\system32&amp;gt; netsh wlan start hostednetwork
The hosted network started.

PS C:\windows\system32&amp;gt;