Skip to content

Service overview and network port requirements for the Windows Server system

cpuid.coresPerSocket

Cpuid.coresPerSocket je parametr virtuálního stroje pro Vmware ESX. Tímto parametrem říkaté VM kolik jader má na „fyzickém“ CPU. Pokud Vám tento parametr chybí v definici VM a např. prezentujete pro VM 8 jader, Windows Server 2008 bude používat pouze 4 jádra (licenční politika :-) .

Blbost ale potrápí :-)

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

XenApp změna písmenka pro mapování klienských disků

Defaultně XenApp mapuje klienské disky od písmene V viz. http://support.citrix.com/proddocs/index.jsp?topic=/online-plugin-110-windows/ica-client-drive-mapping-v2.html.
Pokud potřebujete začít od jiného písmene je nutné přidat na Citrix serverech do registrů novou string hodnotu:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix
InitialClientDrive

image

Hodnoda proměnné určuje od jakého písmena začne XenApp mapovat disky. Takže např. E:

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

Firefox 3.6.5 a IE TAB 2

Problém s načtením Active X prvku.

Oprava:

1. Go to about:config
2. Add a boolean setting called dom.ipc.plugins.enabled.npietab2.dll and set it true

Zdroj: http://www.ietab.net/forum/general/06/ff-364-upgrade-causes-hang-sharepoint-list-activex

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

IIS7 bind na danou IP a port

Pokud potřebujete nastavit IIS aby bindoval pouze na daném portu a IP je nutné mu to říct přes NETSH.

netsh
http
add iplisten address=x.x.x.x:x
exit
iisreset

Pro výpis IP adres slouží příkaz "show iplisten". Ke smazání IP adres "del iplisten address=x.x.x.x:x". Tohoto lze využít pokud máte na serveru více IP address a potřebujete na každé IP adrese použít např. port 80 (IIS, Apache).

http://msdn.microsoft.com/en-us/library/ms733768.aspx

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

EventID 4105 Terminal Server Windows Server 2008 R2

Po nainstalování terminal services v Windows Server 2008 R2 se na licencnim serveru (2008 R2) oběvuje chyba 4105.

The Remote Desktop license server cannot update the license attributes for user „berchin“ in the Active Directory Domain „xxxx.xx“. Ensure that the computer account for the license server is a member of Terminal Server License Servers group in Active Directory domain „xxx.xx“.
If the license server is installed on a domain controller, the Network Service account also needs to be a member of the Terminal Server License Servers group.
If the license server is installed on a domain controller, after you have added the appropriate accounts to the Terminal Server License Servers group, you must restart the Remote Desktop Licensing service to track or report the usage of RDS Per User CALs.
Win32 error code: 0×80070005

I když všechny podmínky splníte chyba se bude opakovat. Našel jsem na internetu script jak toto chování opravit.

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
# Description: This script will add missing permissions for the Terminal
#Server License Server group to user objects in Active Directory.
# This may solve problems with TS CALs not beeing issued and event id
#4105 being logged at the license server.
 
# Constants
$URL = "LDAP://DC=mydomain,DC=com";
 
cls
$root = New-Object DirectoryServices.DirectoryEntry $URL
$ds = New-Object DirectoryServices.DirectorySearcher
$ds.SearchRoot = $root
$ds.filter = "objectCategory=Person"
$src = $ds.findall()
write-host "Found" $src.count "user objects.`n"
$src | %{
$de = $_.getdirectoryentry()
$accessrules = $de.get_objectsecurity().getaccessrules($true, $false,[System.Security.Principal.SecurityIdentifier]) | ?{$_.ObjectType -eq "5805bc62-bdc9-4428-a5e2-856a0f4c185e"}
if ((measure-object -inputobject $accessrules).count -eq 0)
  {
    $ar = new-object System.DirectoryServices.ActiveDirectoryAccessRule([System.Security.Principal.SecurityIdentifier]"S-1-5-32-561", 48, "Allow", [guid]"5805bc62-bdc9-4428-a5e2-856a0f4c185e")
    $de.get_objectsecurity().addaccessrule($ar)
    $de.commitchanges()
    write-host -f yellow ("Added:`t" + $de.properties["sAMAccountName"])
    start-sleep -m 200
  }
else
  {
    write-host -f green ("OK:`t" + $de.properties["sAMAccountName"])
  }
}

Zdroj:

http://glazenbakje.wordpress.com/2010/06/21/after-installing-a-terminal-server-in-windows-server-2008-r2-domain-event-id-4105/

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

Logon skript Windows 7, Vista – UAC

Malej hint. Pokud ve firmě používáte k mapování sítových disků logon skripty a na klientech máte zapnuté UAC, je důležité nastavit u klientů v klíči

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

EnableLinkedConnections na hodnotu 1. Bez tohoto nastavení se Vám disky nenamapují  ( doplnění: někdy nenamapují a uživatel je členem skupiny administrators :-) )

Více na http://support.microsoft.com/kb/937624/en-gb.

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

ADMT v3.2

Missing SQL performance counters

  1. Stop SQL Server Service
    1. Open Command Prompt (Start ? Run ? Cmd)
    2. Run the command:  NET STOP MSSQLSERVER
    3. Then, this question will appear:  ?The following services are dependent on the SQL Server (MSSQLSERVER) service.  Stopping the SQL Server (MSSQLSERVER) service will also stop these services:  SQL Server Agent (MSSQLSERVER).  Do you want to continue this operation? (Y/N) ?
    4. Press ?Y?
  2. Open Command Prompt and get located on the BINN directory of SQL Server.  Probable locations are:
    1. x:\Program Files\Microsoft SQL Server\90\Tools\Binn
    2. x:\Program Files\Microsoft SQL Server\80\Tools\BINN
  3. Once located on the BINN directory, using the Command Prompt, execute the following command:  lodctr sqlctr.ini
  4. Restart your computer.

http://www.sqlcoffee.com/Tuning02.htm

  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print

List users of group

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
$ErrorActionPreference = "Stop"
 
Function listUsers ($group) {
	trap {
		Write-Host "-ERROR-"
        Write-Host "Cannot connect to $domain" -BackgroundColor red -ForegroundColor Black
		Write-Host
		exit
    }  
 
	foreach ($member in $group.member)
	{
		Write-Progress -activity "List users" -status "Search ..." 
 
		$mem = [ADSI] "LDAP://$member"
 
		If ($mem.grouptype) {
			listUsers $mem
		} Else {
			[string]$username = $mem.cn
			[string]$groupname  = $group.cn
			[Boolean]$disable = $mem.psbase.invokeget("AccountDisabled")
			[string]$lastLogon = $(get-date 1/1/1601).adddays(($(&dsquery * $mem.distinguishedName -attr lastLogonTimestamp)[1].Trim())/(60*10000000)/1440)
 
			If (($xmlOutput.SelectNodes("/data/users[path='" + $mem.path + "']")).count -eq 0) {
				$root = $xmlOutput.CreateElement("users")
				$root.set_InnerXML("<username>"+$mem.cn+"</username><path>"+$mem.path+"</path><groups>"+$group.cn+"</groups><disabled>"+$disable+"</disabled><lastlogon>"+$lastLogon+"</lastlogon>")
				$xmlOutput.data.AppendChild($root) > $NULL
			}
			Else{
				$groups = $xmlOutput.SelectNodes("/data/users[path='" + $mem.path + "']/groups").item(0).get_innerText() + ", " + $group.cn
				$node = $xmlOutput.data.users | where {$_.path -eq $mem.path}
				$node.groups = $groups
			}
		}
	}
}
 
 
if ($args.count -lt 1) {
	Write-Host
	Write-Host "LIST USERS v1.0"
	Write-Host "Copyright (c) 2010 Weis Michal"
	Write-Host
	Write-Host "EXAMPLE: listGroups.ps1 ""cn=administrators,cn=builtin,dc=test,dc=local"""
	Write-Host
	exit
}
 
[string]$domain = "LDAP://" + $args[0]
$group = [ADSI] $domain
 
$xmlOutput = [xml] @"
< ?xml version="1.0" standalone="yes"?>
<data>
<users></users>
</data>
"@
Write-Host
listUsers $group
 
ForEach ($user in $xmlOutput.data.users) {
	If ($user.username) {
		Write-Host "Username: " $user.username.toUpper() -ForegroundColor Yellow
		Write-Host $user.path
		Write-Host "Groups :" $user.groups
		If ($user.disabled -eq "True") {
			Write-host "Account is disabled" -ForegroundColor Green
		} Else {
			Write-Host "Account is enabled"
		}
		Write-Host "Last logon:" $user.lastlogon
		Write-host
	}
}
  • Add to favorites
  • Twitter
  • Facebook
  • Live
  • Google Bookmarks
  • del.icio.us
  • Print