Windows 7: Windows update error

Windows update reports error 80071a91 in the Event log (system log)

1. Run (in an elevated cmd) “fsutil resource setautoreset true C:\ ” (change c: if your Windows is installed on another drive)

2.
a)      Press Windows Key + X, select control panel
b)      Change the ‘view by’ option on the top right to ‘Larger icons’
c)      Select the Troubleshooting option and click ‘view all’ on the left pane
d)      Run the ‘Windows update ‘troubleshooter.

3. Reboot PC

SBS 2008 / Exchange 2007 – Single Common Name SSL Certificate

 

 

 

#Change this value to match the name of the external certificate
$URLName="mail.example.net"
#Change this value to match the real name of the server
$ComputerName="exch-svr"

Get-ClientAccessServer | Set-ClientAccessServer -AutodiscoverServiceInternalUri https://$URLNAME/autodiscover/autodiscover.xml
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -InternalUrl https://$URLNAME/ews/exchange.asmx
Get-OABVirtualDirectory | Set-OABVirtualDirectory -InternalURL https://$URLNAME/OAB -ExternalURL https://$URLNAME/OAB
Get-ActiveSyncVirtualDirectory | Set-ActiveSyncVirtualDirectory -InternalURL https://$URLNAME/Microsoft-Server-ActiveSync -ExternalURL https://$URLNAME/Microsoft-Server-ActiveSync
Set-OutlookAnywhere -identity "$computername\RPC (Default Web Site)" -ExternalHostname $URLNAME

Exchange 2007 (none-SBS):
Set-OWAVirtualDirectory -identity "$computername\owa (Default Web Site)" -InternalURL https://$URLNAME/owa -ExternalURL https://$URLNAME/owa

SBS 2008:
Set-OWAVirtualDirectory -identity "$computername\owa (SBS Web Applications)" -InternalURL https://$URLNAME/owa -ExternalURL https://$URLNAME/owa
Set-UMVirtualDirectory -Identity “$computername\unifiedmessaging (SBS Web Applications)” -InternalUrl https://$URLNAME/unifiedmessaging/service.asmx

Run get-exchangecertificate and note the thumbprint on the new certificate (watch out for dublets!)

Run Enable-exchangecertificate -thumbprint <TUMBPRINT> -services SMTP,IIS,POP,IMAP

Run iisreset

Restart the Microsoft Exchange services

Restart Clients Pc’s
source: http://exchange.sembee.info/2007/install/singlenamessl.asp

A request to allocate an ephemeral port number from the global UDP port space has failed due to all such ports being in use.

Problem:
Event 4266
A request to allocate an ephemeral port number from the global UDP port space has failed due to all such ports being in use.

Workaround:
Use netstat -anob
Look for several dnscache entries

Find PID number for the dnscache service:
tasklist /SVC|find /i “dns”

Kill the pid:
TASKKILL /PID <PID process number> /F

Remember to start the other serviecs used by that pid (as it is controlled by svchost.exe)

Windows 7 slow network detection at startup

Symptoms:

Hang at “Welcome Screen” or “Please wait” screen (just before login promt)  for 1-4 minuttes

When it continues to the desktop you see a blue circle hangs over network icon, and if you try to start a application thats try to use network, it will hang until the network startup (the 1-4 minuttes)

if the pc is member of the domain you will se event 6005 and Event 6006 in the Application event log:

event 6005 Winlogon:

The winlogon notification subscriber <GPClient> is taking long time to handle the notification event (StartShell).

Event 6006 Winlogon:

The winlogon notification subscriber <GPClient> took 180 second(s) to handle the notification event (StartShell).

 

My resolution:

1: Change the service “HP CUE Device Discovery Service” (HPQDDSVC) to start manual

2: Set gpo Computer Configuration\Administrative Templates\System\Scripts\Run logon scripts synchronously to disabled

Create Windows 8 universal UEFI enabled DVD/ISO

This article will explain how to Create a Windows 8 universal UEFI enabled DVD/ISO

Copy all files from the Windows 8 DVD to a local folder eg. C:\Win8Media

Now let’s make it universal (you can select which version your want Windows 8/Windows 8 Pro from the same DVD)

Create a file called ei.cfg save it in C:\Win8Media\sources\ei.cfg

[Channel]
OEM

Now let’s make the files back to a ISO And enable UEFI Boot:

oscdimg.exe -m -o -u2 -udfver102 -bootdata:2#p0,e,bC:\Win8Media\boot\etfsboot.com#pEF,e,bC:\Win8Media\efi\microsoft\boot\efisys.bin C:\Win8Media C:\path\to\new\win8pro-uefi.iso

You can get the oscimg tool (Windows Assessment and Deployment Kit (ADK)) here: http://www.microsoft.com/en-us/download/details.aspx?id=30652 or download just the tool from http://blog.paulbetts.org/index.php/2011/09/17/converting-a-win8-install-directory-to-an-iso/

Thanks to: http://answers.microsoft.com/en-us/windows/forum/windows_8-windows_install/anybody-gotten-the-dvd-to-boot-uefi/82677329-a861-4060-866b-3eacb60a8b38

Powershell: Files cannot be loaded because the running of scripts is disabled on this system

Error message when try running powershell scripts:
“files cannot be loaded because the running of scripts is disabled on this system. Please provide a valid certificate with which to sign the files”

Using this command to allow unsigned powershellscripts: “Set-ExecutionPolicy Unrestricted”

Open an elevated Powershell promt, use the command: “Set-ExecutionPolicy Unrestricted”