Difference between revisions of "Windows"

From My Wiki
Jump to: navigation, search
 
Line 60: Line 60:
 
Close dcomcnfg and go back to regedit. In there you need to grant back ownership to the original owners.
 
Close dcomcnfg and go back to regedit. In there you need to grant back ownership to the original owners.
 
In this case one Hive Key was owned by "SYSTEM" the other by "TrustedInstaller" (type: NT SERVICE\TrustedInstaller)
 
In this case one Hive Key was owned by "SYSTEM" the other by "TrustedInstaller" (type: NT SERVICE\TrustedInstaller)
 +
 +
 +
== Fix Israel daylight timezone==
 +
 +
Old:
 +
 +
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Israel Standard Time]
 +
88 FF FF FF 00 00 00 00
 +
C4 FF FF FF 00 00 0A 00
 +
00 00 05 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 04 00 02 00 00 00
 +
00 00 00 00
 +
 +
New:
 +
88 ff ff ff 00 00 00 00
 +
c4 ff ff ff 00 00 0a 00
 +
00 00 01 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 05 00 02 00 00 00
 +
00 00 00 00
 +
 +
 +
 +
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Israel Standard Time\Dynamic DST]
 +
 +
Old: 2018:
 +
88 FF FF FF 00 00 00 00
 +
C4 FF FF FF 00 00 0A 00
 +
00 00 05 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 04 00 02 00 00 00
 +
00 00 00 00
 +
 +
2019,2020,2021,2022:
 +
88 FF FF FF 00 00 00 00
 +
C4 FF FF FF 00 00 0A 00
 +
00 00 05 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 05 00 02 00 00 00
 +
00 00 00 00
 +
 +
New:
 +
2018:
 +
88 ff ff ff 00 00 00 00
 +
c4 ff ff ff 00 00 0a 00
 +
00 00 01 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 04 00 02 00 00 00
 +
00 00 00 00
 +
 +
 +
2019,2020,2021,2022:
 +
88 ff ff ff 00 00 00 00
 +
c4 ff ff ff 00 00 0a 00
 +
00 00 01 00 02 00 00 00
 +
00 00 00 00 00 00 03 00
 +
05 00 05 00 02 00 00 00
 +
00 00 00 00
 +
  
  

Latest revision as of 13:11, 22 October 2018

Delete HX user

$domain = "Domain_name.com"
Get-AddressBookPolicy $domain* | Remove-AddressBookPolicy -Confirm:$false
Get-AddressList $domain* | Remove-AddressList -Confirm:$false
Get-GlobalAddressList $domain* | Remove-GlobalAddressList -Confirm:$false
Get-OfflineAddressBook $domain* | Remove-OfflineAddressBook -Confirm:$false


Identify Worker Process in IIS 7.0

  • From IIS 7.0 you need you to run IIS Command Tool ( appcmd ) .
  • Start > Run > Cmd
  • Go To Windows > System32 > Inetsrv
  • Run appcmd list wp


Installing terminal licenses server 2012 2008 R2

  • In powershell enter the following commands:
$obj = gwmi -namespace "Root/CIMV2/TerminalServices" Win32_TerminalServiceSetting
$obj.ChangeMode(4)
$obj.SetSpecifiedLicenseServerList("$env:computername")
$obj.GetSpecifiedLicenseServerList()


Remote control windows server 2012

qwinsta
mstsc.exe /shadow:sessionID /control /noConsentPrompt


Export IIS bindings

%windir%\system32\inetsrv\appcmd list site > c:\sites-list.txt


Fix DCOM permissions error

https://www.tenforums.com/general-support/69270-dcom-error-10016-re-appid-f72671a9-012c-4725-9d2f-2a4d32d65169.html

Run regedit and let it search for the first Hive Key. Right click it and select "Permissions" A box will pop up. Tick "Advanced" Another box appears and you will see that the Hive Key is owned by "Trusted Installer"

Click on "Change" and type "Administrators" (without the quotation marks). Click apply and OK until your back into the first panel. Select Administrators from the list there and click on the "Full Control" check box.

Now do the same for the next Hive Key.

Leave Regedit open and run dcomcnfg. Click on the right hand side object until you see dcomconfig. Double click it and scroll down to the object named:

{F72671A9-012C-4725-9D2F-2A4D32D65169}

Right click that and select "Properties". Under "Launch and Activation" click on "Edit" . Add User "SYSTEM" (no quotes), Click OK. Back in the first panel select "SYSTEM" and click on the local permissions.

Close dcomcnfg and go back to regedit. In there you need to grant back ownership to the original owners. In this case one Hive Key was owned by "SYSTEM" the other by "TrustedInstaller" (type: NT SERVICE\TrustedInstaller)


Fix Israel daylight timezone

Old:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Israel Standard Time]

88 FF FF FF 00 00 00 00 
C4 FF FF FF 00 00 0A 00
00 00 05 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 04 00 02 00 00 00
00 00 00 00

New:

88 ff ff ff 00 00 00 00
c4 ff ff ff 00 00 0a 00
00 00 01 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 05 00 02 00 00 00
00 00 00 00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\Israel Standard Time\Dynamic DST]

Old: 2018:

88 FF FF FF 00 00 00 00
C4 FF FF FF 00 00 0A 00
00 00 05 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 04 00 02 00 00 00
00 00 00 00

2019,2020,2021,2022:

88 FF FF FF 00 00 00 00
C4 FF FF FF 00 00 0A 00
00 00 05 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 05 00 02 00 00 00
00 00 00 00

New: 2018:

88 ff ff ff 00 00 00 00
c4 ff ff ff 00 00 0a 00
00 00 01 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 04 00 02 00 00 00
00 00 00 00


2019,2020,2021,2022:

88 ff ff ff 00 00 00 00
c4 ff ff ff 00 00 0a 00
00 00 01 00 02 00 00 00
00 00 00 00 00 00 03 00
05 00 05 00 02 00 00 00
00 00 00 00


Links

IIS 8.5 A+ SSL Labs [1]