grzech.webio.pl


.. kolejny blog w sieci (głównie na własne potrzeby)


  1. Przenoszenie certyfikatów SSL między serwerami

    Here are the steps you should follow to export to the cert on the existing server: 1) Go to Start -> Run and enter MMC 2) From the menu bar, select Console -> Add Remove Snap In 3) Click the "Add" button. Select the Certificates snap in, and then click "Add" again 4) Choose the "Computer Account". Click Next. 5) Select "Local Computer" Click Finish. 6) Now click "Close" and then "OK" 7) Now expand the "Certificates" object in the MMC and drill down to Personal -> Certificates. 8) You should see your existing cert. listed...

  2. Przypisanie więcej niż jednej zabezpieczonej witryny w serwerze IIS7 do adresu IP

    C:\Windows\System32\Inetsrv\appcmd set site /site.name:"WITRYNA" /+bindings.[protocol='https',bindingInformation='ADRESIP:443:WITRYNA'] Jednorazowe polecenie (przypisanie certyfikatu SSL do konkretnego adresu IP): netsh http add sslcert ipport=194.88.154.177:443 certhash=e8351394086f4f638673a469086bb32485d54066 appid={ab3c58f7-8316-42e3-bc6e-771d4ce4b201}

  3. Zmiana MTU dla karty sieciowej

    netsh interface ipv4 show subinterfaces netsh interface ipv4 set subinterface "Network Connection" mtu=xxxx store=persistent

  4. Zmiana MTU dla witualnych switchy w VMware ESXi 4

    esxcfg-vswitch -l esxcfg-vswitch -m 1400 <vSwitch> esxcfg-vswitch -A <port group name> <vSwitch> esxcfg-vmknic -a -i <ip address> -n <subnet mask> -m 9000 <port group name>

  5. Instalacja agenta OpenManage dla VMWare ESXi

    esxupdate --loglevel=DEBUG --bundle oem-dell-openmanage-esxi_6.1-0000.zip update ESXi 5.x: esxcli software vib install -d /vmfs/volumes/.../Dell_OpenManage_ESXi500_OM700-offline_bundle-643291.zip esxcli software vib update --depot /vmfs/volumes/.../Dell_OpenManage_ESXi500_OM700-offline_bundle-643291.zip

  6. Zliczenie ilości rekordów i zajętości we wszystkich tabelach danej bazy danych

    SELECT t . NAME AS TableName , p . rows AS RowCounts , SUM ( a . total_pages ) * 8 AS TotalSpaceKB , SUM ( a . used_pages ) * 8 AS UsedSpaceKB , ( SUM ( a . total_pages ) - SUM ( a . used_pages )) * 8 AS UnusedSpaceKB FROM sys . tables t INNER JOIN sys . indexes i ON t . OBJECT_ID = i . object_id INNER JOIN sys . partitions p ON i . object_id = p . OBJECT_ID AND i . index_id = p . index_id INNER JOIN sys . allocation_units a ON p . partition_id = a . container_id WHERE t . NAME NOT LIKE 'dt%' AND t . is_ms_shipped = 0 AND i . OBJECT_ID > 255 GROUP BY t . Name , p . Rows ORDER BY t . Name Źródło...

  7. Ukrycie partycji NTFS

    >diskpart >list disk >select disk 0 >list partition >select partition 1 >detail partition >set id=17 override >detail partition

  8. Usunięcie/Dodanie przypisania litery do dysku

    >diskpart >list volume >select volume 1 >remove letter C lub >assign letter C

  9. Hyper-V R2: "Cannot bind to ... because it is already bound to another virtual network"

    Z linii poleceń: netcfg -u vms_pp netcfg -l c:\windows\winsxs\amd64_wvms_pp.inf_31bf3856ad364e35_6.1.7600.16385_none_beda85050b13680c\wvms_pp.inf -c p -i vms_pp Następnie trzeba skonfigurować od nowa interfejsy sieciowe (Hyper-V Manager / SCVMM)

  10. Wyłączenie usługi zapory z linii poleceń

    netsh firewall set opmode mode=DISABLE netsh firewall set opmode mode=DISABLE profile=ALL