Tags

Howto (51) Free Software (35) Powershell (33) Windows Server (23) AD (16) Hyper-V (16) Exchange (13) Office (13) Group Policy (10) Windows Server 2012 (9) Scripts (7) Symantec BE (5) Windows 8 (5) Cisco (4) TMG (4) Terminal Server (4) Cluster (3) HP (3) RDS (3) UAG (3) Citrix (2) DC (2) DNS (2) IE10 (2) OpenID (2) PKI (2) SCVMM (2) Windows Live (2) iLO (2) Backup (1) DPM (1) Fileserver (1) IE (1) SQL; DPM (1) Security (1) Sharepoint (1) Switch (1) VMWare (1) Veeam (1)

vrijdag 30 september 2011

Symantec BE2010 E00084F4 error

De B2T loopt niet goed. Ik heb wat troubleshooting gedaan. SCSI trace logging aangezet terwijl ik de B2T jobs opnieuw uitvoerde. SQL job ging nu wel goed echter bij de Exchange job knalde deze erweer uit met error: E00084F4.

In de trace (zie screenshot) zie je dat op operation "Write6" een E staat bij check en dat de scsi status SCSISTAT_QUEUE_FULL is. In bijgevoegde link staat meer info.

Het probleem is de combinatie van Symantec software en de HP Insight Manager software.

Trace SCSI ivm BE2010 error

Troubleshooting hardware with Backup Exec for Windows Servers using the SCSI Trace Utility (tracer.exe).

http://www.symantec.com/business/support/index?page=content&id=TECH49432





"An unknown error occurred" may occur when backing up to tape on a server with the HP Server Management Agents Software installed:

Hieronder de oplossing voor het probleem:


Problem

Random backup failures when HP StorageWorks Ultrium Tape Drive is connected to a LSI based Host Bus Adapter and Storport driver version installed on the system is later than 5.2.3790.3959, due to Insight Manager Storage Agent timeout if the driver returns SCSI status BUSY and Storport driver retries the command unlimited times

Error

The drive will fail backups randomly with, "A Device Time Out Error has occurred" . In most cases the tape drive will be discovered properly by the Operating system and will work fine when tested with HP Library and Tape Tools. The system event logs will not show any data that can be related to a drive or SCSI card HBA failure (Event IDS 7, 9, 11 or 15).

Environment

The issue could appear on both Microsoft Windows server 2003 and Windows server 2008 ,
Both 32 bit and 64 bit editions and with HP Insight management Agents installed.

Solution
  1. Click on Run , type regedit.
  2. Open the path HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\SCSI\[device identifier name for the tape LTO-3 tape device]\[numeric device instance id for the LTO-3 tape device]\Device Parameters\
  3. Right Click Device Parameters , click New > Key and rename it as Storport .
  4. Right Click Storport key > New > DWORD and rename it as BusyRetryCount and the value should be set to 250 decimal.
  5. Exit regedit.
  6. Reboot the server.

Powershell stappen om EAP voor alle gebruikers aan te zetten

De volgende stappen uitgevoerd om EAP voor alle gebruikers aan te zetten.

Stap 1:
Als eerste de setting in powershell getest op één gebruiker (testcitrix).
Daarvoor had ik eerst de identity van de mailbox nodig:

[PS] C:\psscripts>Get-MailboxStatistics -identity testcitrix | FT Identity

Identity
--------
66baa611-e107-4679-b3bd-ab2e3259cd9e

Stap 2:
Vervolgens identity gebruikt om de huidige setting te bekijken:

[PS] C:\psscripts>Get-Mailbox 66baa611-e107-4679-b3bd-ab2e3259cd9e | FT EmailAddressPolicyEnabled -auto

EmailAddressPolicyEnabled
-------------------------
                     True

Stap 3:
Identity gebruikt om de EAP op false te zetten en daarna bovenstaand commando gebruikt om te kijken of deze was uitgevoerd:

[PS] C:\psscripts>Set-Mailbox 66baa611-e107-4679-b3bd-ab2e3259cd9e -EmailAddressPolicyEnabled:$False
[PS] C:\psscripts>Get-Mailbox 66baa611-e107-4679-b3bd-ab2e3259cd9e | FT EmailAddressPolicyEnabled -auto

EmailAddressPolicyEnabled
-------------------------
                    False

Stap 4:
Om de velden van de tabel Mailbox te bekijken om te kijken welke ik kon gebruiken om het een en ander te controleren heb ik het volgende commando uitgevoerd:
(om het in een tekst bestand te kunnen bekijken kun je de output met pipe (|) en Out-File naar een bestand sturen)

[PS] C:\psscripts>Get-Mailbox 66baa611-e107-4679-b3bd-ab2e3259cd9e | format-list


RunspaceId                             : 797848ce-d2f3-4786-8e53-a34e62af3087
Database                               : Salfischbergerit Mailbox DB1
UseDatabaseRetentionDefaults           : True
RetainDeletedItemsUntilBackup          : False
DeliverToMailboxAndForward             : False
LitigationHoldEnabled                  : False
SingleItemRecoveryEnabled              : False
RetentionHoldEnabled                   : False
EndDateForRetentionHold                :
StartDateForRetentionHold              :
RetentionComment                       :
RetentionUrl                           :
LitigationHoldDate                     :
LitigationHoldOwner                    :
ManagedFolderMailboxPolicy             :
RetentionPolicy                        :
CalendarRepairDisabled                 : False
ExchangeGuid                           : 66baa611-e107-4679-b3bd-ab2e3259cd9e
ExchangeSecurityDescriptor             : System.Security.AccessControl.RawSecurityDescriptor
ExchangeUserAccountControl             : None
MessageTrackingReadStatusEnabled       : True
ExternalOofOptions                     : External
ForwardingAddress                      :
ForwardingSmtpAddress                  :
RetainDeletedItemsFor                  : 31.00:00:00
IsMailboxEnabled                       : True
Languages                              : {nl-NL}
OfflineAddressBook                     :
ProhibitSendQuota                      : unlimited
ProhibitSendReceiveQuota               : unlimited
RecoverableItemsQuota                  : unlimited
RecoverableItemsWarningQuota           : unlimited
DowngradeHighPriorityMessagesEnabled   : False
ProtocolSettings                       : {}
RecipientLimits                        : unlimited
IsResource                             : False
IsLinked                               : False
IsShared                               : False
LinkedMasterAccount                    :
ResourceCapacity                       :
ResourceCustom                         : {}
ResourceType                           :
SamAccountName                         : testcitrix
SCLDeleteThreshold                     :
SCLDeleteEnabled                       :
SCLRejectThreshold                     :
SCLRejectEnabled                       :
SCLQuarantineThreshold                 :
SCLQuarantineEnabled                   :
SCLJunkThreshold                       :
SCLJunkEnabled                         :
AntispamBypassEnabled                  : False
ServerLegacyDN                         : /o=Salfischbergerit Exchange/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configurat
                                         cn=MX02
ServerName                             : mx02
UseDatabaseQuotaDefaults               : True
IssueWarningQuota                      : unlimited
RulesQuota                             : 64 KB (65,536 bytes)
Office                                 :
UserPrincipalName                      : testcitrix@ISALFISCHBERGERIT.Local
UMEnabled                              : False
MaxSafeSenders                         :
MaxBlockedSenders                      :
ReconciliationId                       :
WindowsLiveID                          :
ThrottlingPolicy                       :
RoleAssignmentPolicy                   : Default Role Assignment Policy
SharingPolicy                          : Default Sharing Policy
RemoteAccountPolicy                    :
MailboxPlan                            :
ArchiveDatabase                        :
ArchiveGuid                            : 00000000-0000-0000-0000-000000000000
ArchiveName                            : {}
ArchiveQuota                           : unlimited
ArchiveWarningQuota                    : unlimited
ArchiveDomain                          :
ArchiveStatus                          : None
RemoteRecipientType                    : None
DisabledArchiveDatabase                :
DisabledArchiveGuid                    : 00000000-0000-0000-0000-000000000000
QueryBaseDNRestrictionEnabled          : False
MailboxMoveTargetMDB                   :
MailboxMoveSourceMDB                   :
MailboxMoveFlags                       : None
MailboxMoveRemoteHostName              :
MailboxMoveBatchName                   :
MailboxMoveStatus                      : None
IsPersonToPersonTextMessagingEnabled   : False
IsMachineToPersonTextMessagingEnabled  : True
UserSMimeCertificate                   : {}
UserCertificate                        : {}
CalendarVersionStoreDisabled           : False
ImmutableId                            :
PersistedCapabilities                  : {}
SKUAssigned                            : False
AuditEnabled                           : False
AuditLogAgeLimit                       : 90.00:00:00
AuditAdmin                             : {Update, Move, MoveToDeletedItems, SoftDelete, HardDelete, FolderBind, SendAs, Send
                                         e}
AuditDelegate                          : {Update, SoftDelete, HardDelete, SendAs, Create}
AuditOwner                             : {}
WhenMailboxCreated                     : 9-2-2011 16:55:18
UsageLocation                          :
Extensions                             : {}
HasPicture                             : False
HasSpokenName                          : False
AcceptMessagesOnlyFrom                 : {}
AcceptMessagesOnlyFromDLMembers        : {}
AcceptMessagesOnlyFromSendersOrMembers : {}
AddressListMembership                  : {\Alle Medewerkers, \Default Global Address List}
Alias                                  : testcitrix
ArbitrationMailbox                     :
BypassModerationFromSendersOrMembers   : {}
OrganizationalUnit                     : isalfischbergerit.local/Salfischbergerit/Hoofdkantoor
CustomAttribute1                       :
CustomAttribute10                      :
CustomAttribute11                      :
CustomAttribute12                      :
CustomAttribute13                      :
CustomAttribute14                      :
CustomAttribute15                      :
CustomAttribute2                       :
CustomAttribute3                       :
CustomAttribute4                       :
CustomAttribute5                       :
CustomAttribute6                       :
CustomAttribute7                       :
CustomAttribute8                       :
CustomAttribute9                       :
DisplayName                            : Test Citrix
EmailAddresses                         : {smtp:testcitrix@service.salfischbergerit.nl, SMTP:T.Citrix@salfischbergerit.nl}
GrantSendOnBehalfTo                    : {ISALFISCHBERGERIT.Local/Salfischbergerit/Hoofdkantoor/_Test Policy OU/Test}
ExternalDirectoryObjectId              :
HiddenFromAddressListsEnabled          : False
LastExchangeChangedTime                :
LegacyExchangeDN                       : /o=Salfischbergerit Exchange/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients
MaxSendSize                            : unlimited
MaxReceiveSize                         : unlimited
ModeratedBy                            : {}
ModerationEnabled                      : False
PoliciesIncluded                       : {8aef93df-6bab-4949-854e-4db85d0c32cb, {26491cfc-9e50-4857-861b-0cb8df22b5d7}}
PoliciesExcluded                       : {}
EmailAddressPolicyEnabled              : True
PrimarySmtpAddress                     : T.Citrix@salfischbergerit.nl
RecipientType                          : UserMailbox
RecipientTypeDetails                   : UserMailbox
RejectMessagesFrom                     : {}
RejectMessagesFromDLMembers            : {}
RejectMessagesFromSendersOrMembers     : {}
RequireSenderAuthenticationEnabled     : False
SimpleDisplayName                      :
SendModerationNotifications            : Always
UMDtmfMap                              : {emailAddress:8248749, lastNameFirstName:2487498378, firstNameLastName:8378248749}
WindowsEmailAddress                    : T.Citrix@salfischbergerit.nl
MailTip                                :
MailTipTranslations                    : {}
PartnerObjectId                        : 00000000-0000-0000-0000-000000000000
IsValid                                : True
ExchangeVersion                        : 0.10 (14.0.100.0)
Name                                   : Test Citrix
DistinguishedName                      : CN=Test Citrix,OU=Hoofdkantoor,OU=Salfischbergerit,DC=ISALFISCHBERGERIT,DC=Local
Identity                               : ISALFISCHBERGERIT.Local/Salfischbergerit/Hoofdkantoor/Test Citrix
Guid                                   : 78067c1f-0fb0-4dff-8f4e-f749528ee715
ObjectCategory                         : ISALFISCHBERGERIT.Local/Configuration/Schema/Person
ObjectClass                            : {top, person, organizationalPerson, user}
WhenChanged                            : 23-8-2011 16:53:05
WhenCreated                            : 23-7-2009 11:45:29
WhenChangedUTC                         : 23-8-2011 14:53:05
WhenCreatedUTC                         : 23-7-2009 9:45:29
OrganizationId                         :
OriginatingServer                      : dc01.ISALFISCHBERGERIT.Local

Stap 5:
De velden DisplayName, EmailAddressPolicyEnabled en PrimarySmtpAddress gebruikt om een controlebestand aan te maken:

[PS] C:\psscripts>Get-Mailbox * | FT DisplayName,EmailAddressPolicyEnabled,PrimarySmtpAddress -auto | Out-File PreEnabledEmailAddressPolicy.txt

Uit bovenstaand bestand blijkt dat er 230 mailboxen de EAP optie uit hebben staan.

Stap 6:
Met onderstaand commando EAP op alle mailboxen enabled:

[PS] C:\psscripts>Get-Mailbox | Set-Mailbox -EmailAddressPolicyEnabled:$True

Stap 7:
Nu weer een controlebestand aangemaakt en deze met het vorige controlebestand vergeleken met WinMerge.
Hieruit blijkt dat alle mailboxen nu EAP enabled hebben en dat er 48 PrimarySmtpAddresses zijn gewijzigd:

[PS] C:\psscripts>Get-Mailbox * | FT DisplayName,EmailAddressPolicyEnabled,PrimarySmtpAddress -auto | Out-File PostEnabledEmailAddressPolicy.txt

Symantec Job Monitor iets overzichterlijker

Indien er veel jobs gescheduled staan in de Job monitor van Symantec Backup Exec 2010 dan kun je het geheel iets overzichterlijker maken door gebruik te maken van de “Multi-Column Sort”.

Homedirectory naamprobleem na folderredirection

Om ervoor te zorgen dat de username van de homedirectories op de fileserver te zien blijft na folderredirection is het noodzakelijk om security van de desktop.ini van deze directories te wijzigen.
Een deny read voor Domain Admins is voldoende.
Anders krijg je onderstaand probleem:


Hieronder het commando dat onder de gebruiker uitgevoerd wordt om het probleem te verhelpen:

%windir%\system32\icacls.exe %homedrive%\Desktop.ini /deny "Domain Admins":r

Om dit te automatiseren heb ik in de GPO waar de "My Documents" redirection in staat een batchfile geplaatst die ervoor zorgt dat de Domain Admins read-deny rechten krijgt op de desktop.ini nadat deze gebruikers zijn ingelogd.


Microsoft heeft er een KB over geschreven: http://support.microsoft.com/kb/947222

donderdag 29 september 2011

Backup Cisco config


You can easily capture the configuration file from any network devices like Cisco Routers, Switches etc.. with putty (just by turning on logging ;)). Follow below steps..

1. Launch putty and connect to your cisco router/Switch

2. Enter the user exec mode (router> enable)

3. Enter the terminal length 0 command (router# terminal length 0) in order to force the router to return the entire response at once, rather than one screen at a time.
This allows you to capture the configuration without extraneous −−more−− prompts generated when the router responds one screen at a time.

4. Right-click on the menubar of the putty screen and select “change Settings”

5. Go to Session and click on Logging, select “Log all session output”

6. Click on Browse and choose the location and name of the file

7. Click apply

8. Now enter the show run command (router# show run), Logout and see the output in config.txt on your desktop (or the location you chose).

vrijdag 23 september 2011

Office 2010 (Word/Excel) poor performance after switching to a new fileserver

Problem:

We encountered poor performance of our Office 2010 applications after moving to a new fileserver.

After some troubleshooting with Sysinternals Process Monitor we found out that the problem was that MS Word tried to create a AutoRecover document on the old fileserver.

So we dug into the registry and found the key that was causing the problem.
(HKCU\Software\Microsoft\Office\14.0\word\Resiliency\DocumentRecovery\something)



Solution:

Deleting the registry key is the solution!

To solve this problem for our users we created a batchfile and put that in a GPO.

Below the batchfile we used:

REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\word\Resiliency\DocumentRecovery /f
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\excel\Resiliency\DocumentRecovery /f
REG DELETE HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\powerpoint\Resiliency\DocumentRecovery /f

donderdag 22 september 2011

SYDI (documenteer je netwerk)

SYDI (Script Your Documentation Instantly) is an open source project which goal is to help system administrators to document their networks. The files released by the project are hosted at SourceForge.

SYDI is built around scripts which can target computers running the Windows and Linux operating systems. The Windows scripts are written in VBScript while the Linux script is written in the Python programming language.

Each script has two basic functions; Collecting and Reporting. After targeting a system the script collects information from the target and then writes the output to an XML file or a Microsoft Word document.

SYDI is licensed under the BSD License.

http://sydiproject.com/

Stappen plan om de computers/servers in je netwerk te scannen:

  1. Zet in een txt bestand alle computers die je wilt scannen onder elkaar
  2. Pas het sydi-wrapper.vbs bestand aan:
    • Eventueel WMI gathering options
    • Eventueel Registry gathering options
    • Sydiserver locatie
    • Outputdirectory locatie (bijvb c:\sydi\output)
  3. Voer commandoos uit:
    • cscript sydi-wrapper.vbs -tComputers.txt
      • Voor elk computer in computer.txt wordt er een xml aangemaakt
    • cscript sydi-overview.vbs -x"c:\sydi\output"
      • Alle xml bestanden worden gebruikt voor het maken van een overzicht in Excel