Thursday, April 26, 2012

DISKPART: "DiskPart has encountered an error: The media is write protected."

I got this error from DiskPart when I entered the command "create partition primary".
The disk was set to read-only. To find out if the disk is read-only or not is to issue a command "detail disk". Look for Read-only : yes.
To clear the read-only, issue a command "attributes disk clear readonly"
You should be able to create a partition

Wednesday, April 25, 2012

XenDesktop: Deleting inactive task from Powershell

To list task

Open Powershell from Desktop Director

Type Get-Provtask

To delete inactive task

Type  "get-provtask -active $false | remove-provtask -adminaddress "the name of the xendesktop controller""

note: If you have more than one controller, run this command again with the name of the other controller.

Uninstall HP NIC Utility on Windows Core

To uninstall HP Network Utility on Windows 2008 R2 Core:
netcfg –u "cq_cpqteam"