Windows Sidebar
There are a number of cool gadgets for the Windows Sidebar that are useful on a server, so I really wanted to get the sidebar working on my Windows Server 2008 boxes. The solution is as follows.
1.Copy the "Windows Sidebar" folder from a Windows Vista SP1 installations Program Files folder that is the same architecture as the Windows Server 2008 box you intend to enable Windows Sidebar on. (i.e., if I'm running Windows Server 2008 64-bit, then I need to copy from a 64-bit Windows Vista SP1 installation.)
2.Copy the "Windows Sidebar" copy into the Program Files folder of the Windows Server 2008 installation. (If 64-bit Windows Server 2008, copy to the "Program Files" folder and NOT the "Program Files (x86)" folder.)
3.Run the following commands from a prompt with administrative credentials
o Regsvr32 atl.dll (如果引组件未注册,在注册下面的组件时,可能会出现类似错误:模块“C:\Program Files\windows sidebar\sbdrop.dll”已加载,但对 DllRegisterServer 的调用失败,错误代码为 0x8007007e。)
o regsvr32 "C:\Program Files\Windows Sidebar\sbdrop.dll"
o regsvr32 "C:\Program Files\Windows Sidebar\wlsrvc.dll"
o "C:\Program Files\Windows Sidebar\sidebar.exe" /RegServer
4.Copy the content of the Sidebar registry area from your Vista box to the 2008 box (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Sidebar). The registry content is the same for 32-bit and 64-bit, so you can just paste the following into sidebar.reg and execute (by double clicking) to save any copying between machines.

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Sidebar]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Sidebar\Compatibility]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Sidebar\Settings]
"SidebarDockedPartsOrder"="0x1,0x2,0x3,0x4

5.We can now launch sidebar with the "C:\Program Files\Windows Sidebar\sidebar.exe" command.
6.Sidebar will launch, and now access the Properties of Sidebar (right click on a blank area of sidebar and select Properties) and check the "State Sidebar when Windows starts" option.

Adding Vista Sidebar and Aero to Windows Server 2008 Desktop

Do the following steps in your target Windows Server 2008 x64 box.

To get the sidebar,

  1. From a Vista SP1 x64, copy in the content of C:\Program Files\Windows Sidebar. And place the folder in the same location.
  2. Run sidebar.exe /regserver
  3. Register (regsvr32) the 2 sidebar dlls, sbdrop.dll and wlsrvc.dll
  4. Clone the sidebar registry settings of the Vista box, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Sidebar\Settings, to the target Windows Server 2008 registry.
  5. Run C:\Program Files\Windows Sidebar\Sidebar.exe to bring up the sidebar and set the properties to start Siderbar when Windows starts.

本日志由 flyinweb 于 2012-05-02 13:56:06 发表到 Windows 中,目前已经被浏览 128 次,评论 0 次;

作者添加了以下标签: Sidebar

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

#Rename-FileExtension.ps1
Function Rename-FileExtension($path,$oldExtension, $newExtension)
{
 Get-ChildItem -path $path -Filter $oldExtension |
 Foreach-Object {
   if($_.extension.length -gt 0)
    {
      $baseName = $_.name.remove($_.name.length - $_.extension.length)
    }
  ELSE
    { $baseName = $_.name }
 Rename-Item -Path $_.fullname -newname ($baseName + $newExtension)
 }
} #end functionp
Rename-FileExtension -path "C:\download\" -oldExtension "*.php" -newExtension ".htm"

本日志由 flyinweb 于 2012-04-16 22:10:49 发表到 Windows 中,目前已经被浏览 218 次,评论 0 次;

作者添加了以下标签: Rename-Item

The VBScript below will collect a number of hardware demographics from machines and output them to a CSV file. These demographics include:

  • Hostname
  • Serial Number
  • Make
  • Model
  • BIOS Version
  • Operating System
  • CPU
  • Memory (MB)
  • Disk Drives

You’ll need to supply an input file with one hostname or fqdn per line. You can configure the input and output files on lines 14 and 15 of the script.

本日志由 flyinweb 于 2012-03-24 19:35:59 发表到 Windows 中,目前已经被浏览 195 次,评论 0 次;

作者添加了以下标签: Hardware Inventory Data硬件信息

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

If you’re using SCVMM 2008 to manage your Hyper-V hosts, then you’ll know that you can reduce the time to provision virtual machines by using Templates. In this blog post I’ll outline a simple step by step guide to creating your own Windows Server 2008 based Template. The template is effectively a sysprep’d image of a Windows Server 2008 source machine. Once a template has been created and stored in the VMM 2008 Library, it can be used to provision Virtual Machines. As part of this provisioning process, it usual to create a series of hardware profiles, to right-size the virtual machine, and a series of Guest OS Profiles, to control OS customisation during Virtual Machine Creation.

本日志由 flyinweb 于 2012-03-09 08:56:47 发表到 Windows 中,目前已经被浏览 232 次,评论 0 次;

作者添加了以下标签: virtual machine templates虚拟机模块

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

详解SCVMM 2008中的虚拟机模板

在SCVMM2008中,可以通过标准化的硬件和软件设置重复使用模板来创建新的虚拟机。自助服务用户则必须使用资源库中的模板来创建虚拟机。

VMM中的虚拟机模板可由几个部分组成

硬件配置文件:要定义一组标准的硬件设置,可以创建一个硬件配置文件并将它与模板关联。当您通过模板来创建新模板或虚拟机时,可以指定虚拟硬件设置或重用库中的现有硬件配置文件。

虚拟硬盘:可以使用库中的通用化虚拟硬盘或者通过现有的虚拟机创建虚拟硬盘。如果你的模板的源虚拟机拥有多个虚拟硬盘,则选择包含操作系统的硬盘。

来宾操作系统配置文件:要在一组模板中使用同一产品密钥、管理员密码、时区等等,可以创建一个来宾操作系统配置文件并将它存储在库中。当您通过模板来创建新模板或虚拟机时,可以手动指定设置,也可以使用与您的应答文件关联的操作系统配置文件。

注:

1:如果利用模板创建虚拟机,则无法将虚拟机存储到库中,而是必须将其置于Hyper-V主机上。

2:可以创建不带来宾系统配置文件的模板,则相关设置手动完成。

VMM中的虚拟机模板来源有两种,一是从库中的虚拟磁盘创建。二是从现有虚拟机创建。两者并无本质差别。下面以从Windows 2008虚拟机创建模板为例,进行简单说明VMM中创建模板的过程。

本日志由 flyinweb 于 2012-03-09 08:51:28 发表到 Windows 中,目前已经被浏览 226 次,评论 0 次;

作者添加了以下标签: 虚拟机模板virtual machine templates

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

1、症状:

WIN7系统,网络检查问题如下“您的计算机配置似乎是正确的,但该设备或资源(DNS 服务器)没有响应”。

无法访问internet,任务栏internet有一感叹号,使用诊断,就提示“您的计算机配置似乎是正确的,但该设备或资源(DNS 服务器)没有响应”

本日志由 flyinweb 于 2012-03-04 14:39:44 发表到 Windows 中,目前已经被浏览 2757 次,评论 0 次;

作者添加了以下标签: IP checksum offloadDisableTaskOffload该设备或资源(DNS 服务器)没有响应the device or resource (DNS server) is not responding

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Windows To Go is a new feature of Windows 8 that allows enterprises to provision a full corporate environment that will boot from a USB drive. Once the instance of Windows 8 is booted it functions and is controlled by standard enterprise management tools such as SCCM and Active Directory group policies. Work at home and disaster recovery are the primary use cases as Windows To Go can transform any PC into a corporate PC with your application stack, all on a USB drive. Windows To Go is also perfect for trying out Windows 8 on your primary machine without destroying your current OS.

本日志由 flyinweb 于 2012-03-02 09:12:12 发表到 Windows 中,目前已经被浏览 262 次,评论 0 次;

作者添加了以下标签: Windows To Go USB DriveWindows To Go

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

Quick Solution: Check the permissions on the root of C: and ensure that BUILTIN\Users have Read access.

Long Story:

8000FFFF == E_UNEXPECTED, not very helpful…

Had a client where windows update was continually failing with the error code 8000FFFF. When looking in the Windows Update log we’d see errors like this:

WARNING: PTError: 0x80248014
Handler FATAL: CBS called Error with 0x8000ffff, <— Checked the CBS.log file but that didn’t give any clues.
Handler FATAL: Error source is 106.
DnldMgr Error 0x8000ffff occurred while downloading update; notifying dependent calls.
AU # WARNING: Download failed, error = 0x8000FFFF
AU # WARNING: Download failed, error = 0x8000FFFF
AU WARNING: BeginInteractiveInstall failed, error = 0x8024000C
CltUI WARNING: AU directive Interactive Progress is exiting due to error 8024000C

本日志由 flyinweb 于 2011-12-02 16:41:59 发表到 Windows 中,目前已经被浏览 358 次,评论 0 次;

作者添加了以下标签: 8000ffff

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文