Pages

2/28/2003

Windows 2000::WMI


PROBLEM:
WMI services (winmgmt) is utilizing 100% cpu until manually stopped. Must be disabled because it will startup on it's own later.
SOLUTION:
Sometimes it works to stop the service and remove the Repository files under: C:\WINNT\SYSTEM32\WBEM\REPOSITORY
Then restart the service.
I am continuting to have this problem recur on several machines.
Any ideas for me? E-Mail Me

2/27/2003

Windows 2000/XP::Default Services


From: Microsoft

The following table lists the default services for a typical installation of Windows XP Professional, along with their default startup settings. Your list of services might be different, depending on the components selected during installation and any additional programs that have been installed.

ServiceStartup TypeLog On AsAdditional information
AlerterManualLocal Service
Application Layer GatewayManualLocal Service
Application ManagementManualLocal System
Automatic UpdatesAutomaticLocal System
Background Intelligent Transfer ServiceManualNetwork ServiceFor information about troubleshooting problems associated with this service, see Background Intelligent Transfer Service (BITS) inactive job timeout
ClipBookManualLocal System
COM+ Event SystemManualLocal System
COM+ System ApplicationManualLocal System
Computer BrowserAutomaticLocal System
Cryptographic ServicesAutomaticLocal System
DHCP ClientAutomaticLocal System
Distributed Link Tracking ClientAutomaticLocal System
Distributed Transaction CoordinatorManualNetwork Service
DNS ClientAutomaticNetwork Service
Error ReportingAutomaticLocal System
Event LogAutomaticLocal System
Fast User Switching CompatibilityManualLocal System
Help and SupportAutomaticLocal System
Human Interface Device AccessDisabledLocal System
IMAPI CD-Burning COMManualLocal System
Indexing ServiceManualLocal SystemYou can use Indexing Service to index documents and document properties on your disks and store the information in a catalog. For more information, see Indexing Service
Internet Connection Firewall (ICF)/Internet Connection SharingAutomaticLocal System
Internet Connection SharingManualLocal System
IPSec ServicesAutomaticLocal System
Logical Disk ManagerAutomaticLocal System
Logical Disk Manager Administrative ServiceManualLocal System
MessengerAutomaticLocal Service This service must be running for alert notifications to be received. For more information about performance, see Introduction to Performance This service must be running on recipient computers so that those computers can receive console messages. For more information about console messages, see Send Console Message
MS Software Shadow Copy ProviderManualLocal System
Net LogonAutomaticLocal System
NetMeeting Remote Desktop SharingManualLocal System
Network ConnectionsManualLocal System
Network DDEManualLocal System
Network DDE DSDMManualLocal System
Network Location Awareness (NLA)ManualLocal System
NT LM Security Support ProviderManualLocal System
Performance Logs and AlertsManualNetwork Service
Plug and PlayAutomaticLocal System
Portable media serial numberAutomaticLocal System
Print SpoolerAutomaticLocal SystemIf you are having trouble with a printer not responding, you can try restarting this service. This cancels all pending print jobs.
Protected StorageAutomaticLocal System
QoS RSVPManualLocal System
Remote Access Auto Connection ManagerManualLocal System
Remote Access Connection ManagerManualLocal System
Remote Desktop Help Session ManagerManualLocal System
Remote Procedure Call (RPC)AutomaticLocal System
Remote Procedure Call (RPC) LocatorManualNetwork Service
Remote RegistryAutomaticLocal ServiceFor troubleshooting performance problems relating to this service, see Troubleshooting
Removable StorageManualLocal System
Routing and Remote AccessManualLocal System
Secondary LogonAutomaticLocal SystemFor more information about the Secondary Logon service, see To start the Secondary Logon service
Security Accounts ManagerAutomaticLocal System
ServerAutomaticLocal SystemStopping this service disconnects any open sessions with a remote computer.
Shell Hardware DetectionAutomaticLocal System
Smart CardManualLocal Service
Smart Card HelperManualLocal Service
SSDP DiscoveryManualLocal Service
System Event NotificationAutomaticLocal System
System Restore ServiceAutomaticLocal System
Task SchedulerAutomaticLocal System
TCP/IP NetBIOS HelperAutomaticLocal Service
TelephonyManualLocal System
TelnetManualLocal System
Terminal ServicesManualLocal System
ThemesAutomaticLocal System
Uninterruptable Power SupplyManualLocal Service
Universal Plug and Play Device HostManualLocal System
Upload ManagerAutomaticLocal System
Utility ManagerManualLocal System
Volume Shadow CopyManualLocal System
WebClientAutomaticLocal Service
Windows AudioAutomaticLocal System
Windows Image Acquisition (WIA)ManualLocal System
Windows InstallerManualLocal System
Windows Management InstrumentationAutomaticLocal System
Windows TimeAutomaticLocal System
Wireless Zero Configuration serviceAutomaticLocal System
WMI Performance AdapterManualLocal System
WorkstationAutomaticLocal System

Windows 2000::Disabling Unneeded Services


From: ZDNet
ServiceYou can set it to manual if…
DHCP ClientYou're not connecting to a specific DHCP server on your local network
Distributed Link Tracking ClientYou're not connected to a Windows 2000 domain
DNS ClientYou're not connecting to a specific DNS server on your local network
FTP Publishing ServiceYou don't need your system to act as an FTP server
IIS Admin ServiceYou don't need your system to act as an WWW server
IPSEC Policy AgentYou're not connected to a Windows 2000 domain
MessengerYou're not connected to a Windows 2000 domain
Remote Registry
Service
You don't remotely access the Registry of other systems on your local network
RIP ServiceYou don't need your system to act as a router
RunAs ServiceYou don't use any applications that run as an alias
World Wide Web
Publishing Service
You don't need your system to act as an WWW server

2/26/2003

Windows 2000::Disabling Windows File Protection


The value of 4 below sounds promising. This could make the BAT file approach work.
Change the value data for the SFCDisable (REG_DWORD) value to 1 in the
following
registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

NOTE: For the change to this value to become effective you must restart the
computer. Also, if you are disabling WFP, a kernel debugger must be
connected to
the computer.

Following is a complete list of values for SFCDisable:
- 0 = enabled (default)
- 1 = disabled, prompt at restart to re-enable
- 2 = disabled at next restart only, no prompt to re-enable
- 4 = enabled, with popups disabled

The problem is the restart thing - this complicates the implementation since we have to know the workstation has restarted since the registry change was merged.

Windows 2000::Windows File Protection::Disabling


From GROUPS.GOOGLE.COM:
---------- Forwarded message ----------
Date: Sat, 24 Jun 2000 06:16:46 -0400
From: Jeremy Collake
Reply-To: Windows NTBugtraq Mailing List
To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM
Subject: W2k undocumented registry setting fully disables Windows File
Protection

6:13am 6/24

Summary: Undocumented registry setting allows for
Windows File Protection (aka System File Checker)
to be fully disabled.

HowTo: Set the SFCDisable value (see Q222473) to
0xffffff9d.

Ok, after spending 6 hours in the guts of sfc.dll, sfcfiles.dll,
and winlogon.exe I have *finally* discovered how to permanently
disable windows file protection. The more I dug into the internals
of SFC, the more I began to think that it would not be as easy as
I first thought it would be - and indeed Microsoft does not want it
to be easy. Windows File Protection, while annoying, does provide
a good degree of system stability and even some level of virus/trojan
protection by preventing system files from being modified without
at least notifying the user. Therefore, I was *very* shocked when
I was looking through a disassembly of sfc.dll and came to the code
that checks the value of the SfcDisable in the WinLogon key.
I see in the code of ordinal 2 (which is the initialization function
that winlogon calls), sticking out like a sore thumb, this:

76986A89 push 1
76986A8B cmp eax, ebx
76986A8D pop esi
76986A8E jz loc_76986B97
76986A94 cmp eax, esi
76986A96 jz loc_76986B7A
76986A9C cmp eax, 2
76986A9F jz loc_76986B69
76986AA5 cmp eax, 3
76986AA8 jz short loc_76986AE0
76986AAA cmp eax, 4
76986AAD jz short loc_76986ACF
76986AAF cmp eax, 0FFFFFF9Dh
76986AB2 push ebx
76986AB3 jz loc_76986B86
76986AB9 push offset byte_76981898
76986ABE push edi
76986ABF call sub_7698877D
76986AC4 mov dword_769901D4, ebx
76986ACA jmp loc_76986B97

Ok, values 0, 1, 2, 3, and 4 are documented at
http://support.microsoft.com/support/kb/articles/Q222/4/73.ASP , but
what the heck is this 0ffffff9dh value that it accepts?! As you can
see, any value other than 0,1,2,3,4 and 0ffffff9dh are assumed to be
zero, which is the default of SFC enabled with popups enabled. So,
without further delay, I went and plugged 0ffffff9dh into the SfcDisable
value to see what was up. Rebooted. I'll be darned, Microsoft provided
a very,very simple way to fully disable WFP!

When booting with this value in the SFCDisable value in the WinLogon
key (HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon), an
event is written to the system log, ID 64032 from Windows File
Protection, with the description:
"Windows File Protection is not active on this system. ".

All attempts to replace/delete protected system files succeeded,
just as if I were in safe mode :). I rebooted a few more times and
verified that it is the one value (other than 4=popus disabled) that
is not reset to 0 after the first boot.

Windows 2000::Windows File Protection::Automation


Eeeeeviiiil Solitaire
My highest priority today is I must create an invisible automatic "thing" to remove the games from all user machines. In simpler days I would have written a BAT file to remove the EXE files and the menu items. However when you do it that way, SOL.EXE, WINMINE.EXE, FREECELL.EXE mysteriously come back.
This is because Windows File Protection maintains control over the WINNT\SYSTEM32 directory. Since SOL.EXE is such a vital part of the Windows 2000 Professional operating system it was placed in this directory to ensure it is never deleted or overwritten with a different version.
WFP maintains it's "master" copy of these files in C:\WINNT\SYSTEM32\DLLCACHE (which BTW is cleverly flagged as hidden.) If my BAT removes SOL.EXE from that directory first and then from SYSTEM32 then the file doesn't come back, but a warning message comes up during it's execution about something diabolical happening to your system files and prompting for the Windows CD.
A commandline such as: RunDll32 advpack.dll,LaunchINFSection %windir%\INF\games.inf,FreecellUninstall does not run silently and doesn't appear to work either (even though it tells me it's removing files.)
There must be some way to execute the uninstall by whatever method the control panel-add remove programs applet does it.
Any ideas? E-Mail Me PLEEEESE.
Of course if I find an elegant solution I'll put it out here.