Skip to content

Archive

Tag: Windows

I stumbled into a problem importing a few machines that had previously been deleted from Hyper-V. All the files and configurations were still available.

Running the “Import Virtual Machine” wizard did not find any machines to import, so I wrote a few lines to import the machines via powershell:

…which resulted in an error when trying to import one of the machines:

I had to get more information:

Virtual Disks missing. I verified that the files were present and that the paths were correct in the .xml file. This is a disk-intensive machine and therefor the vhd-files(disks) are distributed to 3 different physical harddrives.

It seems to be assumed, that the images are present on the same volume. After moving all the images to the same location both the wizard and Import-VM worked.

 

 

 

After installing Windows Server 2012R2 on my homebrew server with an Intel dz77bh-55k motherboard, the onboard Intel 82579V network adapter was not working. I went to the Intel homepage and downloaded the drivers but the installer complained that there are no adapters present:

nonic1

 

I found out that Intel has added few comments to the driver .inf to stop server operating systems picking up desktop motherboard Ethernet controllers ( https://communities.intel.com/message/131855 ).

 

nonic2
Launch device manager and check the properties on the erroneous adapter…

 

 

Unpack the drivers and search for files including the Hardware ID “VEN_8086&DEV_1503″:

NDIS64” is the driver for Windows 8.1 and Windows 2012R2.

 

 

Left = modified file. Right = original file

Modify  “PRO1000\Winx64\NDIS64\e1c64x64.inf” as above.
Remove “Exclude from select” and add information to the [Intel.NTamd64.6.3] section from the [Intel.NTamd64.6.3.1]  section.

 


Original and modified .inf file available for download.

 


The installer will now find the NIC, but will not be installed due to modifications made to the .inf file.

 

Disable windows driver signing:

…now reboot and install the drivers.

 

After installing the drivers enable windows driver signing:

..and reboot once more.

 

 

How to (re)enable Quick Launch Toolbar on Win7 and later OS;es

  1. Right-click the taskbar, point to Toolbars, and then click New Toolbar.
  2. In the New Toolbar dialog box, in the Folder text box, type %userprofile%\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch, and then click OK.
  3. Right-click the taskbar and click to disable the Lock the Taskbar setting.
  4. On the taskbar, right-click on divider. Make sure that the Show Text and Show Title settings are disabled, and that the view is set to Small Icons.

 

Information from: http://technet.microsoft.com/sv-se/library/ee681712%28v=ws.10%29.aspx

 

OWA / ActiveSync logs

To configure IIS logging for Exchange, start “Internet Information Services (IIS) Manager” (Server Manager or Administrative tools) and select Logs. You can turn on logging on specific directories only, i.e. OWA or Active Sync. Before doing any changes on the logging for the directories, you need to have the logging enabled on the Site level. After making the changes, you can turn off the logging on the Site again.

The IIS Logging does not purge logs, you need to create your own script and use scheduled tasks. There is an option for “Log File Rollover”, but you can not limit the total amount of data or logs. A good idea is to keep the IIS logs on a separate volume in-case the disks fill up.

There is no easy way to Pin items to the Start Menu or on the Taskbar, it is by design to prevent programs filling up these locations ( http://technet.microsoft.com/en-us/magazine/2006.01.windowsconfidential.aspx ). However it is possible to script the pinned items.

 

When you rightclick on an object (shortcut / file) in explorer, you are presented with a context menu. These actions are known as “Shortcut Menu items” or “Verbs” in shell terms. These verbs can be enumerated and executed programmatically.

rclickmenu

 

Example to get all verbs on the Internet Explorer link:

 

Result from the example above:
verbresult

 

When scripting, you basically point out the object , and apply an action(verb):