[En] Enable or disable IE proxy using Powershell

I’m currently working in a company where I have to set up a proxy to connect my laptop to the Internet. Because I’m fed up to enable it each morning and disable it each evening, I found two Powershell scripts to do these operations :

EnableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 1

DisableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 0

Et voilà !

Hope this helps Winking smile

Who restarted my server / troubleshoot unplanned events

Although the Windows Server 2012 “auto update” was configured to only check and download the updates, there was an unplanned server reboot.

An issue also arises when multiple administrators are administering servers..  trying to blame each other who restarted/shutdown/applied updates.

Well, from event logs its easier to identify who rebooted server and also can add custom view to event diagnosis to filter unplanned events.

To identify who restarted server:

Goto event viewer, Windows Logs, Systems and choose “Filter Current Log..”  from actions pane, search for event ID# 1074

Create custom event to troubleshoot unplanned server reboot events:

follow this link (Create a Custom View in Event Viewer to show Reboot Events)

Cannot logon to Windows XP without activation beyond 30 days

Well, guys this is the most common, issue faced with system administrators who forgot to activate XP within 30 days of its installation.

In my case, the issue was P2V of Windows XP physical machine and due to drastic hardware architecture changes, Windows XP loses its activation and requires re-activation.
See my previous blog post

With the instructions i was successfully able to first configure network settings and then activated the OS.
Here is the brief step by step instructions:

  • Turn on your computer and login to your account. You get a message telling you that you need to activate your product, Click Yes and the Activate Windows screen will load.
  • Now press the windows key + U and Microsoft Narrator should pop up. Click OK for the little disclaimer Narrator gives you and behind it will be the Narrator option screen. In the top left of the Narrator option screen, you’ll see a little computer icon, click it and a drop-down menu will appear.
  • Click on About Narrator. On the next pop-up, click the link Microsoft Web site. You now have access to Internet Explorer!!! Whether you have an internet connection at the time or not, it doesn’t matter, we aren’t actually trying to get online.

Now we are going to access your desktop and Start bar. In the address bar, type: C:\WINDOWS\explorer.exe and press enter.

VOILA! You have access to your entire computer just like you normally would! Don’t close Narrator though, because windows tends to realize what you’re doing and reset back to the Activation screen. It’s not bullet-proof, sometimes my computer will reset back to the activation screen, but you can just do the same thing again as many times as you want!

Thanks to this internet article

XVA won’t start after successful import

I converted a physical machine (Windows XP) successfully & imported to my XenServer with XenConvert. The import appears to be successful. However, when I start the machine, all I get is a black console screen with the following info:

Citrix XenServer
http://www.citrix.com
cirrus-compatible VGA is detected

Processor 1: Xen(R) Virtual CPU
XS Virtual IDE Controller Hard Drive (73GB)
XS Virtual ATAPI-4 CD-Rom/DVD-Rom

Boot device: Hard Drive – success.

Some licensed legacy application was running on this machine and we needed to eliminate any physical PC in Datacenter.
Else there was no need to import XP rather would have built new one.
Well after repeated reboot no success with the VM, searching the forum someone suggested to fix boot sector with Windows XP repair disk.
The iso of existing XP-SP3 didn’t offer repair screen since the original install didn’t match the iso file.

SystemRescueCd-x86-2.5.1 iso came handy, booted from this gentoo based linux distro and fixed the boot sector with “ntfsfix”.
Disconnected the iso and voila the VM booted successfully.

So far only the vm booted successfully, but any geek would guess that due to HAL changes between the physical and virtual, XP ends up in re-activation process.
Without network the VM cannot connect to internet.. how will i fix this.
look out for next blog post… 🙂

PDC system drive storage issue

Hi Active Directory System Administrators,

Offlate i faced a strange issue with storage space being eaten away on PDC system drive,
after posting the issue on activedir.org forum.
The issue with PDC system drive storage issue has been resolved.

I had formerly checked with windir, it shows 38gb unknown, as well shadow copies are disabled on both the servers.
The utility TREESIZE caught the culprit.

In fact the “C:\Windows\System32\winevt” had archived “Security” event logs of 300 mb each since 7th Jan 2012, as well other event log files (dns, DS, DFS, ADWS, system, setup, GP, blah blab blab…)
After backing them up those stale events logs i cleared them from the system.

phew!!! what a relief

and

found that some how in the “Security” event properties were set not to rewrite for some reason.
Although they were not required, i still backed up and cleared those logs and set the security events to overwrite them the oldest first.

Amazing product, technologies & things I use every day of my life.


Company

Purpose

Product

Apple

Communication

iPhone 3GS

Chevrolet

Transportation

SUV Blazer 1998

Citrix

Server Virtualization Home Lab

XenServer v6.2

Dropbox

Cloud Storage, Cross Platform Sync

Dropbox

EMC

Type2-Virtualization

VMware WorkStation v8.0

Essence

Wrist watch

Sapphire Tungsten

Evernote

Sync notes, capture anything, access anywhere

Evernote

Google

Search engine, personal email

Search, Gmail

HP

Personal Laptop

HP Pavilion DV6000

Microsoft

Virtual Machine OS

Windows 7 x64

Mobily

Cellular Provider

Alwaha: Prepaid Voice/Data 3G Sim

Mozilla

Browser

Firefox

Open Source

Personal Laptop OS

Ubuntu Desktop Linux  11.10

Others

Social Interaction

Facebook, Twitter, Linkedin & Pinterest

STC

DSL BroadBand & Landline Telephone

Mband Jood: 4 MB Plus Free Calls

 

And the list goes on and on and on and on…..

Next time more on individual product, technologies, things & favorites

Share yours.