Quantcast
Channel: Yong Rhee's Microsoft Technet Blog
Viewing all 115 articles
Browse latest View live

How to remove print drivers that are not in use on Windows Server 2003

$
0
0

Often, after a Windows Server 2003 Print Server has been in production for a while, you might notice

that the Print Spooler service (SPoolSV.exe) might crash (access violate) or hang.

This could be due to an older print driver. 

In my opinion the less print drivers loaded into the Print Spooler process the less chances of having

problems.

Do you really need to have all the printer drivers installed?  This question can be answered by seeing

how many print drivers the actual print queues are using:

clip_image001[7]

Click on Start, Printers and Faxes

image

In this example, I have a total of 6 print queues with 6 different drivers actually being used.

Now let’s see how many print drivers I have actually installed.

image

Click on File, Server Properties, Drivers tab.

image

On this list, you can tell that I have a lot more (30+) than 6 print drivers.

image

I click on the first print driver.

Hold down the Shift key

And then click on the last print driver (in this case Send to Microsoft OneNote).

Click on Remove

image

You will get prompted if you are sure, click on Yes.

I often get asked if I’m sure that I want to continue, yes, this will not delete print drivers that

have actual print queues.  You will get the warning below that is not able to remove the print driver.

image

Keep on clicking on Ok.

Once it is done, restart the Print Spooler service

image

I hope that this information will help you with keep your Print server stable.

Take care.

Yong


How to add printers with no user interaction on Windows Vista/Windows Server 2008

$
0
0

For a Microsoft Windows 2000 version of this article, see 189105

For a Microsoft Windows XP/2003 version of this artcile, see 314486

Windows Vista and Windows Server 2008 permits you to install a printer from the command line. This is particularly useful when you use a logon script or a scheduled event to add or remove a printer from a group of users.

Note If you use this command in a logon script or a client-based batch file, the client computer must be running Windows Vista or Windows Server 2008.

Additionally, these commands can be run from an administrator's workstation or from a server so that the printers are push-installed to the client computers, without having to install from the actual computer.

MORE INFORMATION

For more information about the available switches, type /? after the command.
Additionally, type the following at a command prompt:

rundll32 printui.dll,PrintUIEntry /?

Usage: rundll32 printui.dll,PrintUIEntry [options] [@commandfile]
   /a[file] binary file name
   /b[name] base printer name
   /c[name] unc machine name if the action is on a remote machine
   /dl delete local printer
   /dn delete network printer connection
   /dd delete printer driver
   /e display printing preferences
   /f[file] either inf file or output file
   /F[file] location of an INF file that the INF file specified with /f may depend on
   /ga add per machine printer connections (the connection will be propagated to the user upon logon)
   /ge enum per machine printer connections
   /gd delete per machine printer connections (the connection will be deleted upon user logon)
   /h[arch] driver architecture one of the following, x86 or x64 or Itanium
   /ia install printer driver using inf file
   /id install printer driver using add printer driver wizard
   /if install printer using inf file
   /ii install printer using add printer wizard with an inf file
   /il install printer using add printer wizard
   /in add network printer connection
   /ip install printer using network printer installation wizard
   /j[provider] print provider name
   /k print test page to specified printer, cannot be combined with command when installing a printer
   /l[path] printer driver source path
   /m[model] printer driver model name
   /n[name] printer name
   /o display printer queue view
   /p display printer properties
   /q quiet mode, do not display error messages
   /r[port] port name
   /s display server properties
   /Ss Store printer settings into a file
   /Sr Restore printer settings from a file
   Store or restore printer settings option flags that must be placed at the end of command:
    2    PRINTER_INFO_2
    7    PRINTER_INFO_7
    c    Color Profile
    d    PrinterData
    s    Security descriptor
    g    Global DevMode
    m    Minimal settings
    u    User DevMode
    r    Resolve name conflicts
    f    Force name
    p    Resolve port
    i    Driver name conflict
   /u use the existing printer driver if it's already installed
   /t[#] zero based index page to start on
   /v[version] driver version one of the following, "Type 2 - Kernel Mode" or "Type 3 - User Mode"
   /w prompt the user for a driver if specified driver is not found in the inf
   /y set printer as the default
   /Xg get printer settings
   /Xs set printer settings
   /z do not auto share this printer
   /Y do not auto generate a printer name
   /K changes the meaning of /h to accept 2,3,4 for x86 or x64 or Itanium and /v to accept 3 for "Type 3 - User Mode"
   /Z share this printer, can only be used with the /if option
   /? help this message
   @[file] command line argument file
   /Mw[message] show a warning message before committing the command
   /Mq[message] show a confirmation message before committing the command
   /W[flags] specifies flags and switches for the wizards (for APW & APDW)
    r    make the wizards to be restart-able from the last page
   /G[flags] specifies global flags and switches
    w    suppress setup driver warnings UI (super quiet mode)

Examples:
   Run server properties:
rundll32 printui.dll,PrintUIEntry /s /t1 /c\\machine
   Run printer properties:
rundll32 printui.dll,PrintUIEntry /p /n\\machine\printer
   Run add printer wizard localy:
rundll32 printui.dll,PrintUIEntry /il
   Run add printer wizard on \\machine:
rundll32 printui.dll,PrintUIEntry /il /c\\machine
   Run queue view:
rundll32 printui.dll,PrintUIEntry /o /n\\machine\printer
   Run inf install:
rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /f C:\InfPath\InfFile.inf /r "lpt1:" /m "Apollo P-1200"
   Run inf install (with inf dependency).  In the example, prnao001.inf depends on ntprint.inf
rundll32 printui.dll, PrintUIEntry /ia /m "Apollo P-1200" /K /h x64 /v 3 /f "c:\InfPath\prnao001.inf" /F "c:\InfPath\ntprint.inf"
   Run add printer wizard using inf:
rundll32 printui.dll,PrintUIEntry /ii /f C:\InfPath\InfFile.inf
   Add printer using inbox printer driver:
rundll32 printui.dll,PrintUIEntry /if /b "Test Printer" /r "lpt1:" /m "Apollo P-1200"
   Add per machine printer connection (the connection will be propagated to the user upon logon):
rundll32 printui.dll,PrintUIEntry /ga /c\\machine /n\\machine\printer /j"LanMan Print Services"
   Delete per machine printer connection (the connection will be deleted upon user logon):
rundll32 printui.dll,PrintUIEntry /gd /c\\machine /n\\machine\printer
   Enumerate per machine printer connections:
rundll32 printui.dll,PrintUIEntry /ge /c\\machine
   Add printer driver using inf:
rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m "Apollo P-1200" /h "x86" /v "Type 3 - User Mode" /f C:\InfPath\InfFile.inf
   Add printer driver using inf:
rundll32 printui.dll,PrintUIEntry /ia /K /c\\machine /m "Apollo P-1200" /h "x86" /v 3
   Add inbox printer driver:
rundll32 printui.dll,PrintUIEntry /ia /c\\machine /m "Apollo P-1200" /h "Intel" /v "Type 3 - Kernel Mode"
   Remove printer driver:
rundll32 printui.dll,PrintUIEntry /dd /c\\machine /m "Apollo P-1200" /h "x86" /v "Type 3 - User Mode"
   Remove printer driver:
rundll32 printui.dll,PrintUIEntry /dd /K /c\\machine /m "Apollo P-1200" /h "x86" /v 3
   Set printer as default:
rundll32 printui.dll,PrintUIEntry /y /n "printer"
   Set printer comment:
rundll32 printui.dll,PrintUIEntry /Xs /n "printer" comment "My Cool Printer"
   Get printer settings:
rundll32 printui.dll,PrintUIEntry /Xg /n "printer"
   Get printer settings saving results in a file:
rundll32 printui.dll,PrintUIEntry /f "results.txt" /Xg /n "printer"
   Set printer settings command usage:
rundll32 printui.dll,PrintUIEntry /Xs /n "printer" ?
   Store all printer settings into a file:
rundll32 printui.dll,PrintUIEntry /Ss /n "printer" /a "file.dat"
   Restore all printer settings from a file:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat"
   Store printer information on level 2 into a file :
rundll32 printui.dll,PrintUIEntry /Ss /n "printer" /a "file.dat" 2
   Restore  from a file printer security descriptor:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" s
   Restore  from a file printer global devmode and printer data:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" g d
   Restore  from a file minimum settings and resolve port name:
rundll32 printui.dll,PrintUIEntry /Sr /n "printer" /a "file.dat" m p
   Enable Client Side Rendering for a printer:
rundll32 printui.dll,PrintUIEntry /Xs /n "printer" ClientSideRender enabled
   Disable Client Side Rendering for a printer:
rundll32 printui.dll,PrintUIEntry /Xs /n "printer" ClientSideRender disabled

How to add printer ports on Windows Server 2008 Print Failover Cluster

$
0
0

Windows Server 2008 SP1

Windows Server 2008 SP2

You have a lot of print queues that you want to add, you want to use a command line to do this.

You notice that the built-in script prnport.vbs does not create the ports:

C:\Windows\System32\Printing_Admin_Scripts\en-US>cscript prnport.vbs -s VirtualP
rintServerName -r IP_1.2.3.4

The solution is to do the following:

1.  On a standalone Windows Server 2008 or the physical nodes of one of the clusters.

Create the ports using prnport.vbs

2.  Use PrintBRM to backup the standalone W2K8 print server and restore to the virtual printer name of the W2K8 Failover Cluster.

Hope this helps,

Yong

P.S. 

C:\Windows\System32\Printing_Admin_Scripts\en-US>cscript prnport.vbs /?
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

Usage: prnport [-adlgt?] [-r port][-s server][-u user name][-w password]
               [-o raw|lpr][-h host address][-q queue][-n number]
               [-me | -md ][-i SNMP index][-y community][-2e | -2d]
Arguments:
-a     - add a port
-d     - delete the specified port
-g     - get configuration for a TCP port
-h     - IP address of the device
-i     - SNMP index, if SNMP is enabled
-l     - list all TCP ports
-m     - SNMP type. [e] enable, [d] disable
-n     - port number, applies to TCP RAW ports
-o     - port type, raw or lpr
-q     - queue name, applies to TCP LPR ports only
-r     - port name
-s     - server name
-t     - set configuration for a TCP port
-u     - user name
-w     - password
-y     - community name, if SNMP is enabled
-2     - double spool, applies to TCP LPR ports. [e] enable, [d] disable
-?     - display command usage

Examples:
prnport -l -s server
prnport -d -s server -r IP_1.2.3.4
prnport -a -s server -r IP_1.2.3.4 -h 1.2.3.4 -o raw -n 9100
prnport -t -s server -r IP_1.2.3.4 -me -y public -i 1 -n 9100
prnport -g -s server -r IP_1.2.3.4
prnport -a -r IP_1.2.3.4 -h 1.2.3.4

Remark:
The last example will try to get the device settings at the specified IP address
.
If a device is detected, then a TCP port is added with the preferred settings fo
r that device.

How to troubleshoot: Windows - Low On Registry Space : The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored.

$
0
0

Windows Server 2003 RTM

Windows Server 2003 Service Pack 1

Windows Server 2003 Service Pack 2

In the System event log, you might notice the following information:

Type: Information
Date: MM/DD/YYYY
Time: HH:MM:SS
Event ID: 26
Source: Application Popup
User: N/A
Computer: <Computer Name>
Details:
Application popup: Windows - Low On Registry Space : The system has reached the maximum size allowed for
the system part of the registry.
Additional storage requests will be ignored.

 

The way that I would start troubleshooting is the following:

1) In Perfmon, you might want to do the following:

Add System > % Registry Quota In Use > __________

Check to see what the maximum value it is.

Add Memory > Pool Paged Bytes > ___________

Check to see what the maximum value it is.

2) Check the sizes of the registry hives in:

C:\windows\system32\config

Security ____ MB

Software ____ MB

System ____ MB

Default ____ MB

C:\Documents and Settings\

Default User ____ MB

LocalService ____ MB

NetworkService ____ MB

User Profiles # ____

Each individual User Profile sizes ____ MB (Sometimes the median and biggest size can be enough).

3) Please make sure that you don’t have the following registry key set:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control

RegistrySizeLimit

124594 Understanding and configuring Registry Size Limit (RSL)

http://support.microsoft.com/?id=124594

4) If you don’t have the registry key set, install the latest UPHClean in http://blogs.technet.com/uphclean/ .

i.e.

32-bit UPHClean v2.0 build 2.0.49.0 (beta)

http://blogs.technet.com/uphclean/pages/uphclean-v2-0-beta-build-2-0-49-0-for-32-bit-platform-operating-system.aspx

After installing UPHClean, set the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPHClean\Parameters
SHARING_VIOLATION_REMAP (dword) 1 (hex)

Stop and Restart the UPHClean Service.

5)  If you still have problems, the information that you gathered in step 2 might guide you to an application or service or driver that is not unloading the registry keys.

 

Hopefully this will help you narrow down the cause of the warning.

References:

System Error Codes (500-999)
http://msdn.microsoft.com/en-us/library/ms681388(VS.85).aspx

2.2 Win32 Error Codes
http://msdn.microsoft.com/en-us/library/cc231199(PROT.10).aspx

LP(MUI):How to specify regional and language settings for an unattended installation of Windows Language Pack (LP, used to be known as MultiLanguage) version

$
0
0

For a Microsoft Windows XP version of the article, see
289125 How to create the regional and language settings for an unattended installation of Windows MultiLanguage Version
http://support.microsoft.com/?id=289125

For a Microsoft Windows Server 2003 version of the article, see
325856 How to specify regional and language settings for an unattended installation of Windows MultiLanguage Version in Windows Server 2003
http://support.microsoft.com/?id=325856

APPLIES TO

• Windows Vista
• Windows Server 2008
• Windows 7
• Windows Server 2008 R2

This blog describes the regional and language settings that you can specify for an unattended installation of Windows Language Packs (LP, used to be known as MultiLanguage Version).

Windows has added support for default locale, input locale, and user interface (UI) language as entries in an unattended installation Answer file.
or
The user is trying to use control intl.cpl (old rundll32) to change the regional settings language for multi user language interface, MUI
or
Administrators needing a way to programmatically change language options on many Vista or Windows Server 2008
based systems after they had been deployed.
Specifically, you need a way to programmatically make it happen.

Solution:

----------

http://www.microsoft.com/globaldev/vista/vista_tools/vista_command_line_international_configuration.mspx

More information:

A good sample is at:
http://blogs.msdn.com/michkap/archive/2006/05/30/610505.aspx

How to: Add 32-bit print drivers on 64-bit Windows Server 2008 based print server

$
0
0

x86 Windows Vista RTM/SP1/SP2
x64 Windows Vista RTM/SP1/SP2
x86 Windows Server 2008 SP1/SP2
x64 Windows Server 2008 SP1/SP2
x86 Windows 7
x64 Windows 7
x64 Windows Server 2008 R2

How to add inbox x86 (32 bit) drivers on a x64 (64 bit) Windows Server 2008

Note: Also works for x64 Vista print server.

 

Step 1. Share a x64 print queue out


On the x64 Windows Server 2008 SP1/SP2/R2
Login with the Domain Administrator account or Local Admin account
Click on Start, Control Panel, Printers,
Press the ALT button or Click on Organize, Layout, Menu Bar
Click on File
Click on Run as administrator
Click on Add Printer...
Choose "Add a local printer" or "Add a network, wireless or Bluetooth printer"
And go thru the rest of the steps to install a printer and make sure that you share
it for example PrintShare1.

Step 2. Add the x86 print driver


On a x86 Windows Vista RTM/SP1/SP2 or a x86 Windows Server 2008 SP1/SP2

Login with the Domain Administrator account
Click on Start, \\x64W2K8 PrintServer (or a x64 Vista acting as a Print Server)
Double click on "Printers"
Right click on the PrintShare1
Click on the "Sharing" tab
Click on the "Additional Drivers..."
Check the box for 'x86 Type 3 - User Mode'
Click on Ok
Click on Close

How to troubleshoot: Windows - Low On Registry Space : The system has reached the maximum size allowed for the system part of the registry. Additional storage requests will be ignored.

$
0
0

Windows Server 2003 RTM

Windows Server 2003 Service Pack 1

Windows Server 2003 Service Pack 2

In the System event log, you might notice the following information:

Type: Information
Date: MM/DD/YYYY
Time: HH:MM:SS
Event ID: 26
Source: Application Popup
User: N/A
Computer: <Computer Name>
Details:
Application popup: Windows - Low On Registry Space : The system has reached the maximum size allowed for
the system part of the registry.
Additional storage requests will be ignored.

 

The way that I would start troubleshooting is the following:

1) In Perfmon, you might want to do the following:

Add System > % Registry Quota In Use > __________

Check to see what the maximum value it is.

Add Memory > Pool Paged Bytes > ___________

Check to see what the maximum value it is.

2) Check the sizes of the registry hives in:

C:\windows\system32\config

Security ____ MB

Software ____ MB

System ____ MB

Default ____ MB

C:\Documents and Settings\

Default User ____ MB

LocalService ____ MB

NetworkService ____ MB

User Profiles # ____

Each individual User Profile sizes ____ MB (Sometimes the median and biggest size can be enough).

3) Please make sure that you don’t have the following registry key set:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control

RegistrySizeLimit

124594 Understanding and configuring Registry Size Limit (RSL)

http://support.microsoft.com/?id=124594

4) If you don’t have the registry key set, install the latest UPHClean in http://blogs.technet.com/uphclean/ .

i.e.

32-bit UPHClean v2.0 build 2.0.49.0 (beta)

http://blogs.technet.com/uphclean/pages/uphclean-v2-0-beta-build-2-0-49-0-for-32-bit-platform-operating-system.aspx

After installing UPHClean, set the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPHClean\Parameters
SHARING_VIOLATION_REMAP (dword) 1 (hex)

Stop and Restart the UPHClean Service.

5)  If you still have problems, the information that you gathered in step 2 might guide you to an application or service or driver that is not unloading the registry keys.

 

Hopefully this will help you narrow down the cause of the warning.

References:

System Error Codes (500-999)
http://msdn.microsoft.com/en-us/library/ms681388(VS.85).aspx

2.2 Win32 Error Codes
http://msdn.microsoft.com/en-us/library/cc231199(PROT.10).aspx

LP(MUI):How to specify regional and language settings for an unattended installation of Windows Language Pack (LP, used to be known as MultiLanguage) version

$
0
0

For a Microsoft Windows XP version of the article, see
289125 How to create the regional and language settings for an unattended installation of Windows MultiLanguage Version
http://support.microsoft.com/?id=289125

For a Microsoft Windows Server 2003 version of the article, see
325856 How to specify regional and language settings for an unattended installation of Windows MultiLanguage Version in Windows Server 2003
http://support.microsoft.com/?id=325856

APPLIES TO

• Windows Vista
• Windows Server 2008
• Windows 7
• Windows Server 2008 R2

This blog describes the regional and language settings that you can specify for an unattended installation of Windows Language Packs (LP, used to be known as MultiLanguage Version).

Windows has added support for default locale, input locale, and user interface (UI) language as entries in an unattended installation Answer file.
or
The user is trying to use control intl.cpl (old rundll32) to change the regional settings language for multi user language interface, MUI
or
Administrators needing a way to programmatically change language options on many Vista or Windows Server 2008
based systems after they had been deployed.
Specifically, you need a way to programmatically make it happen.

Solution:

----------

http://www.microsoft.com/globaldev/vista/vista_tools/vista_command_line_international_configuration.mspx

More information:

A good sample is at:
http://blogs.msdn.com/michkap/archive/2006/05/30/610505.aspx


Windows 10: Enhanced Mitigation Experience Toolkit (EMET) version 5.5 beta

Windows 10: MAP v9.3 (Microsoft Assessment and Planning Toolkit)

$
0
0

Applies to:

Windows 10

Windows Server 2012 R2

Windows 8.1

Windows Server 2012

Windows 8

Windows Server 2008 R2 SP1

Windows 7 SP1

 

Microsoft Assessment and Planning (MAP) Toolkit version 9.3 that is compatible with Windows 10 has released

 

To learn about MAP:

Microsoft Assessment and Planning (MAP) Toolkit
https://technet.microsoft.com/en-us/solutionaccelerators/dd537566.aspx

 

Download at:

Microsoft Assessment and Planning Toolkit
http://www.microsoft.com/en-us/download/details.aspx?&id=7826

 

How to use the MAP Toolkit:
http://social.technet.microsoft.com/wiki/contents/articles/17804.how-to-use-the-map-toolkit.aspx

[Cross-Post] Windows 10: VDI configuration (optimization) script

Windows 10, What every Sys admin should know | Nov. 12th, 2015 at 6pm brought to you by PFE Days | Microsoft Los Angeles (SoCal).

$
0
0

Topic: Windows 10, what every Sys admin should know

Audience: IT Pro

Invite: http://www.meetup.com/socalpfedays/events/225934396/

Where:  13031 West Jefferson Boulevard, Suite 200, Los Angeles, CA. (Playa Vista, near LAX airport)

Date: Thursday, Nov. 12th.

Starts at 6:00 p.m.

Ends at 8:00 p.m.

Drinks and Food provided.

[Cross-Post] DebugDiag2 Update 2 is now RTW

$
0
0

So you have been using PAL (Performance Analysis of Logs) to setup and analyze perfmon logs.

 

Wish you were able to analyze memory dumps (.dmp) to troubleshoot application and service crashes/memory leaks/high cpu utilization?

Here is the tool:

DebugDiag2 Update 2 is now RTW

Tool: RSAT for Windows 10 Nov 2015 update (TH2) now available

Windows 10 Nov 2015 (TH2): Group Policy .admx templates


Download: Windows 10 Nov. 2015 update (version 1511) Assessment and Deployment Kit (ADK)

$
0
0

Applies to:

Windows 10 November 2015 update (a.k.a. version 1511 or build version 10.0.10586 or codename Threshold2 (TH2))

 

Before you get started, be aware of:

“At this time, we do not recommend that Configuration Manager customers use the 1511 version of the Windows 10 ADK”

Source:
Issue with the Windows ADK for Windows 10, version 1511

What does this new version fix?

It does include fixes for two known Windows PE issues:

  • Powershell does not run on WinPE10 when PXE booted on UEFI mode

and

  • a problem adding MDAC to Windows PE images using DISM.

 

To download the Windows 10 November 2015 release, go to https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx
and go down to ADK for Windows 10, Version 1511

or go directly to https://msdn.microsoft.com/en-us/windows/hardware/dn913721.aspx#adkwin10

 

More information:

Download: Windows 10 Assessment and Deployment Kit (ADK).
http://blogs.technet.com/b/yongrhee/archive/2015/08/11/download-windows-10-assessment-and-deployment-kit-adk.aspx

PFE Days: Microsoft Irvine office: Thursday, March 24th, 2016: Vital Signs Express featuring the CLUE.

$
0
0

Hi all,

If you guys are in the Irvine, Orange County area, stop by for 2-3 hours of automating the Windows client and server performance troubleshooting using CLUE.

• Have you been manually setting up Perfmon/PAL and Windows Performance Toolkit (WPT a.k.a. WPA/Xperf) to troubleshoot performance issues?

• Have you been automating data analysis using PAL?  How do you scale to 1,000 and 10,000’s of machines?

• Have you been automating .etl data analysis using Xperf -actions?  How do you scale to 1,000 and 10,000’s of machines?

Come and find out how you can automate the data collection, and analysis on the Enterprise by using the “Collection of Logs for the User Experience” (CLUE).

Where?  Microsoft Irvine office

Address:  3 Park Plaza Suite 1600, Irvine, CA.

When? Thursday, March 24, 2016

Time: 6:00 PM p.m. -8:30 p.m. PDT (UTC -8)

Presenter:  Me (Yong Rhee)

To sign-up:

PFE Days – Vital Signs Express featuring the CLUE – Yong Rhee

clip_image002

Thanks,

Yong

PFE Days: Active Directory Features in Windows Server 2016 TP4–Irvine, CA. and San Diego, CA. featuring Jesus Dougan

$
0
0

 

Hi all,

 

My colleague Jesus Dougan will be going over “Active Directory” features in “Windows Server 2016” Technical Preview 4 (TP4).

 

PFE Days – Active Directory Features in Windows Server 2016 TP4 – Jesus Dougan

When?  Wednesday, April 13, 2016
What time? 6:00 PM- 8:30 PM Pacific
Where?  Microsoft Irvine

3 Park Plaza, Irvine, CA, U.S.A.
Suite 1600

To sign-up:

http://www.meetup.com/socalpfedays/events/229616401/

 

and
When? Thursday, April 14, 2016
What time?6:00 PM- 8:30 PM Pacific
Where?  Microsoft San Diego

9255 Towne Centre Drive, San Diego (La Jolla), CA., U.S.A.
4th Floor

 

To sign-up:
http://www.meetup.com/socalpfedays/events/229628377/

 

Check out all of our PFE Days Groups we have so far across North America: 
http://www.meetup.com/socalpfedays
http://www.meetup.com/charlottepfedays
http://www.meetup.com/norcalpfedays
http://www.meetup.com/pacwestpfedays
http://www.meetup.com/tempepfedays
http://www.meetup.com/lasvegaspfedays

Cheers,

Yong

“Enterprise” Convenience Rollup Update II (2) for Windows 7 SP1 and Windows Server 2008 R2 SP1

$
0
0

 

Updated May 22nd, 2016.

 

If you have seen the list of all the hotfixes (non-security updates) post Service Pack 1 for Windows 7 and Windows Server 2008 R2 on this list:

Links to post SP1 hotfixes for Windows 7 Service Pack 1
https://blogs.technet.microsoft.com/yongrhee/2012/02/19/links-to-post-sp1-hotfixes-for-windows-7-service-pack-1/

There is good news by the Windows Product Group (PG)

The Enterprise “Convenience” Rollup Update* (KB3125574) contains ~1500 hotfixes (comprising of “Security Updates” and “Hotfixes”) up to April 2016.

 

Windows 7

Date released

Size

Service Pack 1

February 2011

903.2 MB

Enterprise Rollup Update (KB2775511)

March 2013

<31.3 MB

Convenience Rollup Update (KB3125574)

May 2016

476.9 MB

 

If I have not deployed KB2775511, do I need to deploy it first?  No.

 

Pre-requisite:

  • 3020369 April 2015 servicing stack update for Windows 7 and Windows Server 2008 R2

https://support.microsoft.com/kb/3020369

 

  • 3138612 Windows Update Client for Windows 7 and Windows Server 2008 R2: March 2016

https://support.microsoft.com/kb/3138612

Note:  If you don’t install this update, you might experience a high cpu utilization in svchost.exe (Windows Update service) and a high memory (Private bytes) utilization, up to 2.5 GB.

Supersede(s):
3112343 Windows Update Client for Windows 7 and Windows Server 2008 R2: December 2015
https://support.microsoft.com/en-us/kb/3112343

3083710 Windows Update Client for Windows 7 and Windows Server 2008 R2: October 2015
https://support.microsoft.com/en-us/kb/3083710

For more information:Hotfix: Installing and searching for updates is slow, CPU utilization is high
https://blogs.technet.microsoft.com/configurationmgr/2015/11/16/hotfix-installing-and-searching-for-updates-is-slow-cpu-utilization-is-high/

Support Tip: ConfigMgr 2012 update scan fails and causes incorrect compliance status
https://blogs.technet.microsoft.com/configurationmgr/2015/04/15/support-tip-configmgr-2012-update-scan-fails-and-causes-incorrect-compliance-status/

 

3125574 Convenience rollup update for Windows 7 SP1 and Windows Server 2008 R2 SP1

https://support.microsoft.com/kb/3125574

 

Files being modified:

http://download.microsoft.com/download/E/B/0/EB084E02-4173-444E-9438-53972AE2F9E0/3125574.csv

Note:  IE11 and it’s (IE11) security updates are not a part of this update

 

Related information:

Simplifying updates for Windows 7 and 8.1

https://blogs.technet.microsoft.com/windowsitpro/2016/05/17/simplifying-updates-for-windows-7-and-8-1/

 

Windows 7 SP1 and Server 2008 R2 SP1 cumulative roll-up now available at a download location near you! (KB3125574)
https://blogs.technet.microsoft.com/askpfeplat/2016/05/20/windows-7-sp1-and-server-2008-r2-sp1-cumulative-roll-up-now-available-at-a-download-location-near-you-kb3125574/

WMI: Stop hurting yourself by using “for /f %%s in (‘dir /s /b *.mof *.mfl’) do mofcomp %%s”

$
0
0

 

Applies to:

Windows Server 2016

Windows 10

Windows Server 2012 R2

Windows 8.1

Windows Server 2012

Windows 8

Windows Server 2008 R2

Windows 7

Windows Server 2008

Windows Vista

 

In a newer O.S. (Vista/2008 and newer), to try fixing a corrupt repository, you will run the following commands:

 

Before you begin, you might want to make a backup:

Start, CMD (Run As Admin)

winmgmt /backup %computername%_MM_DD_YEAR.WMI_backup

Note:  Where MM is the month, DD is the date, and YEAR is the year.

 

winmgmt /verifyrepository
winmgmt /salvagerepository
winmgmt /resetrepository


And in those off chances, this doesn’t help you because one of the 3rd party developers instead of appending in “Autorecover MOFs”, they might have end-up overwriting the list.

 

In the old days (Windows XP / Windows Server 2003), if WMI got corrupt, you would run a command similar to this:

 

:: Start of WMI reset that you shouldn’t be using

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
for /f %%s in (‘dir /b *.dll’) do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
sc config winmgmt start= Auto
net start winmgmt
for /f %%s in (‘dir /s /b *.mof *.mfl’) do mofcomp %%s

:: End of WMI reset that you shouldn’t be using

 

Why shouldn’t you use?  Look at the following syntax:

for /f %%s in (‘dir /s /b *.mof *.mfl’) do mofcomp %%s

 

The script is looping and mofcomp’ing everything in c:\windows\system32\wbem and it’s subdirectory.

But starting with Windows Vista and Windows Server 2008, there are these .mof files:

 

image

 

So the script will register and then uninstall the mof files.  Now when WMI breaks for good, you will be scratching your head.  And perhaps rebuilding the Windows client or Windows Server.

 

 

Note:  The command below won’t register the non-core O.S. apps (Microsoft or 3rd party) since the mof/mfl’s for the non-core OS ones are not in c:\windows\system32\wbem.

So what’s one way of finding out the non-O.S. applications? 

Check HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wbem\CIMOM

Autorecover MOFs (Multi-String)

And copy it to Notepad to see the pathing for the .mof and .mfl that were registered.

 

What command should you run instead?

:: Start of WMI reset that you should be using

@echo off
sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %windir%\system32\wbem
for /f %%s in (‘dir /b *.dll’) do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
sc config winmgmt start= Auto
net start winmgmt
dir /b *.mof *.mfl | findstr /v /i uninstall > moflist.txt & for /F %%s in (moflist.txt) do mofcomp %%s

:: End of WMI reset that you should be using

 

What’s the secret sauce here?

The modified command is making a list of the mof’s, and then doing a find string, the portion that is important is the /V.

“/V         Prints only lines that do not contain a match.”


 

For details, please visit Jeff Worline’s blog post:

WMI: Repository Corruption, or Not?
https://blogs.technet.microsoft.com/askperf/2014/08/08/wmi-repository-corruption-or-not/

Thanks,

Yong

Viewing all 115 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>