Thursday, October 28, 2010

Thursday, October 21, 2010

Windows Hotfixes of note

Article ID: 2388142 - Last Review: October 14, 2010 - Revision: 2.0
A computer that is running Windows 7 or Windows Server 2008 R2 intermittently cannot use a shared network printer to print


Article ID: 2273487 - Last Review: October 14, 2010 - Revision: 3.0
Error message when you shadow a remote desktop service session in Windows Server 2008 R2 or in Windows 7: "Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again."

Article ID: 2175609 - Last Review: October 14, 2010 - Revision: 2.0
You may encounter unexpected behavior when you use multiple IPv4 addresses on a computer that is running Windows 7 or Windows Server 2008 R2

Article ID: 2410477 - Last Review: October 13, 2010 - Revision: 3.1
A computer that is running Windows 7 or Windows Server 2008 R2 stops responding when you put the computer in sleep mode (S3) or resume the computer from the S3 mode

Article ID: 2280117 - Last Review: August 12, 2010 - Revision: 1.0
Error message when you create some snapshots on a computer that is running a 64-bit version of Windows Vista or of Windows Server 2008 and then try to restart the computer: “STOP: 0x0000006B”

Article ID: 2281477 - Last Review: August 12, 2010 - Revision: 1.0
There is about a 20- to 30-second delay in Windows Server 2008 or in Windows Vista when you open a network drive, and its target folder is a DFS share

Article ID: 982931 - Last Review: August 12, 2010 - Revision: 2.0
Some IP addresses on the network adapter are lost after you restart a computer that is running Windows Server 2008 or Windows Vista if several IP addresses are configured

Tuesday, October 19, 2010

Friday, October 15, 2010

Exchange 2007 servicecontrol.ps1 bug

You run ServiceControl.ps1 AfterPatch or ServiceControl.ps1 and get the error below. Microsoft made a mistake !

It's a bug in the script...

add a line at line 900:

$activity = 'BeforePatch'

add a line at line 958:

$activity='AfterPatch'


----------- snippet of error --------------
Write-Progress : Cannot bind argument to parameter 'Activity' because it is nul
l.
At D:\Program Files\Microsoft\Exchange Server\bin\ServiceControl.ps1:1017 char:
25
+ write-Progress -Activity <<<< $activity -Id 0 -Status 'Completed' -Completed
+ CategoryInfo : InvalidData: (:) [Write-Progress], ParameterBind
ingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,M
icrosoft.PowerShell.Commands.WriteProgressCommand

Wednesday, October 6, 2010

dsquery user inactive switch

I discovered something interesting today. say you wanted to get a list of disabled, inactive users for 12 weeks. You'd do this :

dsquery user ou=disabledAccounts,dc=somedomain,dc=local -inactive 12 -limit 2000 –disabled

The catch is this, if the account has never been logged into it won't ever be returned. So how would you get around this?

Use the -filter switch and do an ldap query

dsquery * ou=disabledAccounts,dc=somedomain,dc=local -filter "(&(objectCategory=Person)(objectClass=User)(LastLogon=0) (UserAccountControl:1.2.840.113556.1.4.803:=2"))" -limit 2000
viola, you have the list.

Note: What the heck is UserAccountControl? It’s not the vista/win7 UAC but actually a bitwise value in AD that determines what state the account is in. 2 = disabled. http://support.microsoft.com/kb/269181