The SharePoint Diagnostics Studio gathers and consolidates Event and Diagnostic (ULS) logs in addition to information from the Usage database and presents it through a graphical user interface supporting clarity and a single view into issues impacting a deployment.
Archive for the ‘Windows Server 2008’ Category
If you are trying to register a new managed account in SharePoint 2010 and you receive the below errors…. Before you panic, re-run the products and technology wizard. Then let it repair.
Error Below:
….Web.UI.Page.ProcessRequest(HttpContext context) at ASP._admin_registeraccount_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at …
…System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
Requested registry access is not allowed.
By default the SharePoint Trace service runs as local system.This script will fix that.
1. Create a SharePoint 2010 Trace Account. Ex: SPTrace
2. Edit lines 2 and 3 of the PowerShell script.
3. Run script on each server in farm. (not FAST or SQL servers) a. PS C:UsersspinstallDesktop> .TraceAccountFix.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # Trace Account Details $TraceAccount = "DomainSPTrace" $TraceAcctPWD = "Enter The password here" $SecTraceAcctPWD = (ConvertTo-SecureString $TraceAcctPWD -AsPlainText -force) # Formatting $TraceAccountDomain,$TraceAccountUser = $TraceAccount -Split "\" # Get the tracing service. $farm = Get-SPFarm $tracingService = $farm.Services | where {$_.Name -eq "SPTraceV4"} $Cred_TraceAcct = New-Object System.Management.Automation.PsCredential $TraceAccount,$SecTraceAcctPWD ## Add Managed Account for Trace Account $ManagedAccountTrace = Get-SPManagedAccount | Where-Object {$_.UserName -eq $TraceAccount} If ($ManagedAccountTrace -eq $NULL) { Write-Host -ForegroundColor White "- Registering managed account" $TraceAccount New-SPManagedAccount -Credential $Cred_TraceAcct | Out-Null } Else {Write-Host -ForegroundColor White "- Managed account $TraceAccount already exists, continuing."} # Get the managed account. $managedAccount = Get-SPManagedAccount "$TraceAccount" If ($tracingService.ProcessIdentity.ManagedAccount -notlike "*$managedAccount*"){ # Set the tracing service to run under the managed account. $tracingService.ProcessIdentity.CurrentIdentityType = "SpecificUser" $tracingService.ProcessIdentity.ManagedAccount = $managedAccount $tracingService.ProcessIdentity.Update() # This actually changes the "Run As" account of the Windows service. $tracingService.ProcessIdentity.Deploy() } Try{ ([ADSI]"WinNT://$env:COMPUTERNAME/Performance Log Users,group").Add("WinNT://$TraceAccountDomain/$TraceAccountUser") } catch {Write-Host -ForegroundColor White " - $TraceAccount is already an in the Performance Log Users group, continuing."} Write-Host "All Done" |
Trust Relationship Between Workstation and Domain Fails after you restore to a previous snapshot for either VMware or Hyper. This is because by default every 30 days the Active Directory(AD) server will change the machine key for each of its members. In a development environment where security is not important. This can cause a headache, causing you to unjoin then rejoin servers back to the domain. The other option is to disable this function.
- On the Domain Controller : Launch Group Policy Management -> Control PanelSystem and SecurityAdministrative ToolsGroup Policy Management
- Edit the default group policy or edit the GPO of your choice.
- Edit “Domain member: Maximum machine account password age” = 999 Located -> Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity Options
- Edit “Domain member: Disable machine account password changes” = Enabled Located -> Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity Options
- Edit “Domain controller: Refuse machine account password changes” = Enabled Located -> Computer ConfigurationWindows SettingsSecurity SettingsLocal PoliciesSecurity Options
- Lastly run “gpupdate /force” on all servers that need this change.
Resource links:
http://technet.microsoft.com/en-us/library/cc781050(WS.10).aspx
http://technet.microsoft.com/en-us/library/cc785826(WS.10).aspx
http://technet.microsoft.com/en-us/library/cc781050(WS.10).aspx
If you ever have a need to monitor a website for uptime, one approach is to buy an application that can monitor websites. Ex http://www.ipsentry.com/ or http://www.eventsentry.com/ (relatively cheap software that I have used in the past). The other option is to use PowerShell. This script is meant to be run on a monitoring server. Once its running it will check all the URLs you set in the configuration section of the PowerShell script. If an error in encountered it will send an email. The PowerShell has comments in all the areas you would want to change. The base script comes from http://blogs.technet.com/b/otto/archive/2007/08/23/quick-and-dirty-web-site-monitoring-with-powershell.aspx , I made a few changes… Added the forever loop, force sending emails, added the ability to send credentials, set interval, added additional comments. Thanks and let me know if you have any questions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | function siteupdown{ ## Display Help if (($Args[0] -eq "-?") -or ($Args[0] -eq "-help")) { "" "Usage: SysinternalsSiteTest.ps1 -alert <address> -log" " -alert <address> Send e-mail alerts" " -log Log results" "" "Example: SysinternalsSiteTest.ps1 -alert somebody@nospam.com -log" "" exit } ## Create the variables $global:GArgs = $Args $urlsToTest = @{} $urlsToTest["SP2010"] = "http://sp2010/Pages/default.aspx" ## Add more URLs for monidoting **Note URL cannot be rediriecting urls. #$urlsToTest["TechNet Redirect"] = "http://www.microsoft.com/sysinternals" #$urlsToTest["Sysinternals Home"] = "http://www.microsoft.com/technet/sysinternals/default.mspx" #$urlsToTest["Sysinternals Forum"] = "http://forum.sysinternals.com" #$urlsToTest["Sysinternals Blog"] = "http://blogs.technet.com/sysinternals" #$urlsToTest["Sysinternals Downloads"] = "http://download.sysinternals.com/Files/NtfsInfo.zip" $successCriteria = @{} $successCriteria["SP2010"] = "*press releases*" ## Add more success criteria here. #$successCriteria["TechNet Redirect"] = "*Mark Russinovich*" #$successCriteria["Sysinternals Home"] = "*Mark Russinovich*" #$successCriteria["Sysinternals Forum"] = "*Sysinternals Utilities*" #$successCriteria["Sysinternals Blog"] = "*Sysinternals Site Discussion*" #$successCriteria["Sysinternals Downloads"] = "*ntfsinfo.exe*" ## Set Username Password and domain here $Username = 'be' $Password = 'password!!!1' $Domain = 'gen' ## sets up the call $webClient = new-object System.Net.WebClient $webClient.credentials = New-Object System.Net.NetworkCredential($Username, $Password, $Domain) foreach ($key in $urlsToTest.Keys) { $alert = $false $output = "" $startTime = get-date $output = $webClient.DownloadString($urlsToTest[$key]) $endTime = get-date if ($output -like $successCriteria[$key]) { $key + "`t`tSuccess`t`t" + $startTime.DateTime + "`t`t" + ($endTime - $startTime).TotalSeconds + " seconds" if ($GArgs -eq "-log") { $key + "`t`tSuccess`t`t" + $startTime.DateTime + "`t`t" + ($endTime - $startTime).TotalSeconds + " seconds" >> WebSiteTest.log } } else { $key + "`t`tFail`t`t" + $startTime.DateTime + "`t`t" + ($endTime - $startTime).TotalSeconds + " seconds" $alert = $true if ($GArgs -eq "-log") { $key + "`t`tFail`t`t" + $startTime.DateTime + "`t`t" + ($endTime - $startTime).TotalSeconds + " seconds" >> WebSiteTest.log $alert = $true } if ($alert -eq $true) { Write-Host "Sending Email" ## Set email settings Below. $emailFrom, $EmailTo, $smtpServer $emailFrom = "email@nospam.com" $emailTo = "email@nospam.com" $subject = "URL Test Failure - " + $startTime $body = "URL Test Failure: " + $key + " (" + $urlsToTest[$key] + ") at " + $startTime $smtpServer = "smtp.nospam.com" $smtp = new-object Net.Mail.SmtpClient($smtpServer) $smtp.Send($emailFrom,$emailTo,$subject,$body) } } } } ## Makes the script run forever. $i=1 for ($i -le 5; $i++) { ## Change the number, to change check site interval. 1 = 1 seconds, 30 = 30 seconds, etc.. sleep 30; siteupdown} </address></address> |
Thanks http://support.microsoft.com/kb/2293357
- Install PDF iFilter 9.0 (64 bit) from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025 (http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025)
- Download PDF icon picture from Adobe web site http://www.adobe.com/misc/linking.html (http://www.adobe.com/misc/linking.html) and copied at C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEIMAGES
- Add the following entry in docIcon.xml file, which can be found at: C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions14TEMPLATEXML
<Mapping Key=”pdf” Value=”pdf16.gif” /> - Add pdf file type on the File Type page under Search Service Application
- Open regedit
- Navigate to the following location:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server14.0SearchSetupContentIndexCommonFiltersExtension - Right-click > Click New > Key to create a new key for .pdf
- Add the following GUID in the default value
{E8978DA6-047F-4E3D-9C78-CDBE46041603} -
- Name: Extension
Type: REG_SZ
Data: pdf - Name: FileTypeBucket
Type: REG_DWORD
Data: 0×00000001 (1) - Name: MimeTypes
Type: REG_SZ
Data: application/pdf
- Name: Extension
- Restart the SharePoint Server Search 14
- Reboot the SharePoint servers in Farm
- Create a Test site (with any out-of-box site template) and create a document library upload any sample PDF document(s).
- Perform FULL Crawl to get search result.
**FAST Search Info**
By default fast search will index inside of pdf’s, however this would may be necessary to edit/ add this if using a third party IFliter.
Edit this file :
C:FASTSearchetcconfig_dataDocumentProcessorformatdetectoruser_converter_rules.xml
Add this :
<ConverterRules>
<IFilter>
<trust>
<ext name=”.pdf” mimetype=”application/pdf” />
</trust>
</IFilter>
<MimeMapping>
<mime type=”application/pdf”>PDF File</mime>
</MimeMapping>
</ConverterRules>
Run psctrl reset to reset all currently running item processors in the system.
So this all started when I wanted to enable my wireless adapter. I found the Latest driver(rtl8191se). But everytime I tried to install the driver i got this error: “The service section in the inf invalid” . Of course this was driving me crazy…. I spent at least an hour looking through an INF file to see if i could figure out what the problem was. Anyway long story short see below.
The walkthrough below is not from me. Link
After installing Windows Server 2008 or Windows Server 2008 R2, the wireless adapter or WiFi adapter is not working or functioning. System cannot detect or see any wireless networks with no wireless networks available error message, and system cannot connect to Internet or wireless LAN.
To make matter worse, users have installed the proper signed driver for the wireless adapter, either through Windows Update, drivers CD from vendor or download latest and correct driver from OEM or manufacturer’s website. In Device Manager, the wireless or WiFi network adapter is working properly. And, when using Windows Server built-in diagnostics feature to troubleshoot the no wireless connection problem, it indicates that the wireless adapter is either having driver or hardware issue.
The cause of the no wireless connection is that Windows Server 2008 and Windows Server 2008 R2 disables and turns off Wireless LAN service by default, which supports the wireless WLAN Auto Configuration service, and configures WLAN AutoConfig for automatic startup.
In order to turn on Wireless LAN and WLAN AutoConfig service in Windows Server 2008 and Windows Server 2008 R2, go to Server Manager (in Administrator Tools). Go to Features branch and click on Add Features. Click and tick the check box for Wireless LAN Service. Complete the installation wizard to install wireless support.
The Wireless LAN Service configures the WLAN AutoConfig service to start automatically, regardless of whether the computer has any IEEE 802.11 wireless adapters installed. When enabled, WLAN AutoConfig enumerates every wireless network adapter installed on the computer, manages IEEE 802.11 wireless connections, and manages the wireless connection profiles that contain the settings required to configure a wireless client to connect to a wireless network. WLAN AutoConfig allows user to connect to an existing wireless network (data encryption key or network key may be required), change wireless network connection settings, configure a connection to a new wireless network, and specify preferred wireless networks. WLAN AutoCofig also notifies user when new wireless networks are available. When switching wireless networks, WLAN AutoConfig dynamically updates your wireless network adapter settings to match the settings of that new network and a network connection attempt will be made.
SMTP Service already installed and it’s not logging.
1) Install ODBC Logging module (role service in Server Manager)
2) Stop / Start the SMTP Service
3) Verify your SMTP service is configured for logging. It’s not on by default.
4) Try a local telnet test (assuming the telnet client is installed)
5) Look at your log folder.
netsh http show ssl
netsh http delete sslcert ipport=0.0.0.0:443
netsh http delete sslcert ipport=[::]:443
netsh http add sslcert ipport=0.0.0.0:443 certhash=xxx appid={ba195980-cd49-458b-9e23-c84ee0adcd75}
netsh http add sslcert ipport=[::]:443 certhash=xxx appid={ba195980-cd49-458b-9e23-c84ee0adcd75}