วันอังคารที่ 22 กันยายน พ.ศ. 2563

Win10-Registry

 ::PowerShell-Layout

PS C:\WINDOWS\system32>Export-StartLayout –path c:\admscript\Layout.xml

PS C:\WINDOWS\system32>Import-StartLayout –LayoutPath c:\admscript\Layout.xml -MountPath C:\


::CMD

Dism.exe /online /Export-DefaultAppAssociations:c:\AppAssoc.xml

Dism.exe /online /Import-DefaultAppAssociations:c:\AppAssoc.xml


::Remove PrivacyExperience win10_1903

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OOBE" /v "DisablePrivacyExperience" /t REG_DWORD /d 1 /f


::Disable_app_Suggestions

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f



::Disable_IPv6

reg add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" /v DisabledComponents /t REG_DWORD /d 255 /f






::https://www.urtech.ca/2019/06/solved-how-to-customize-the-default-user-in-windows-10-without-using-copyuser-switch-with-sysprep/



::Create folder and copy theme to

%SystemRoot%\resources\Themes\aero.theme


to


SHERA.deskthemepack


1.Launch REGEDIT

2.Expand HKEY_LOCAL_MACHINE

3.Click FILE > LOAD HIVE > select C:\USERS\DEFAULT\NTUSER.DAT (that is the HKCU for the default user)

4.Name_test


Change

DEFAULT>\Software\Microsoft\Windows\CurrentVersion\Themes\CurrentTheme

5.Select_test

5.Unload Hive





วันอาทิตย์ที่ 10 พฤษภาคม พ.ศ. 2563

Vmware-OVF convert

Deploy OVA file to VMware ESXi 5.5
https://felixcentmerino.wordpress.com/virtualization/migrate-virtual-machine-from-oracle-virtualbox-to-esxi-5-5/


1.download ovftool 3.5

C:\Program Files\VMware\VMware OVF Tool> ovftool.exe --shaAlgorithm=SHA1 c:\vmbox\aa.ova  c:\vmbox\bb.ovf


2.edit c:\vmbox\bb.ovf

Before


After




3. Microsoft File Checksum Integrity Verifier

fciv.exe -sha1 c:\odoo.ovf
copy sha1 to c:\vmbox\bb.mf




Bitnami

#Network

cd /etc/systemd/network
sudo cp 99-dhcp.network 25-wired.network


[Match]
Name=ens160

[Network]
Address=10.1.10.9/24
Gateway=10.1.10.1
DNS=10.1.10.1


#User login

cat /home/bitnami/bitnami_credentials

วันพุธที่ 6 พฤษภาคม พ.ศ. 2563

SAP 760

@echo off

set wdf="C:\Users\Default\AppData\Roaming"
set wcf="%AppData%"
set host1=%C:\Windows\System32\drivers\etc\hosts%
set host2=%C:\Windows\System32\drivers\etc\hosts_"%date:~10,4%.%date:~7,2%.%date:~4,2%-%time:~1,1%h%time:~3,2%m%time:~6,2%s"%

REM  #Config_Service_File
echo sapmsMH2 3600/tcp >>C:\Windows\System32\drivers\etc\services

REM #Config_Host_file
    ren %host1% %host2%
    del C:\Windows\System32\drivers\etc\hosts
echo 10.61.10.27 mhpfs >>C:\Windows\System32\drivers\etc\hosts
echo 10.61.10.81 homail1 >>C:\Windows\System32\drivers\etc\hosts
echo 10.61.10.82 hofax1 >>C:\Windows\System32\drivers\etc\hosts
echo 10.61.20.81 mf12mail >>C:\Windows\System32\drivers\etc\hosts
echo 10.61.30.81 mf13mail >>C:\Windows\System32\drivers\etc\hosts

del /q %wdf%\SAP\Common
del /q %wcf%\SAP\Common
mkdir %wdf%\SAP\Common
mkdir %wcf%\SAP\Common

REM #Create_SAPUILandscape.xml_on_%temp%
Type Nul >"%TEMP%"\SAPUILandscape.xml
echo ^<^?xml version="1.0" encoding="utf-8"^?^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Landscape updated="2019-08-22T06:18:28Z" version="1" generator="SAP GUI for Windows v7600.1.2.149"^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Workspaces^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Workspace uuid="6a4d9ada-fe04-433e-8add-1d608fe40580" name="Local"^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Item uuid="9d6ad04b-e5ca-48ae-a37a-536cd51e7c3b" serviceid="a8f71781-ac36-49e7-a433-6b58797a27f2"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Item uuid="0d64788e-96e1-45e3-9cac-ff94c7c97a31" serviceid="edc1f359-df3f-4577-85ad-ade6abe44954"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Item uuid="e9cd0bc8-8f57-4d93-9201-7f8c4577de5e" serviceid="f6130feb-f311-4039-880e-c5aa71268a0c"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^</Workspace^> >>"%TEMP%"\SAPUILandscape.xml
echo ^</Workspaces^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Services^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Service type="SAPGUI" uuid="a8f71781-ac36-49e7-a433-6b58797a27f2" name="SAP .DEV" systemid="MH2" mode="1" server="10.30.2.104:3200" sncop="-1" sapcpg="8600" dcpg="8604" clocale="TH"/^>  >>"%TEMP%"\SAPUILandscape.xml
    echo ^<Service type="SAPGUI" uuid="5f11af05-d005-4d70-bae2-469daecf3441" name="SAP .RQA" systemid="MH2" mode="1" server="10.50.2.104:3200" sncop="-1" sapcpg="1100" dcpg="8604" clocale="TH"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Service type="SAPGUI" uuid="edc1f359-df3f-4577-85ad-ade6abe44954" name="SAP Production 2" systemid="MH2" mode="1" server="10.50.2.102:3200" sncop="-1" sapcpg="8600" dcpg="8604" clocale="TH"/^>  >>"%TEMP%"\SAPUILandscape.xml
echo ^<Service type="SAPGUI" uuid="f6130feb-f311-4039-880e-c5aa71268a0c" name="SAP Production 1" systemid="MH2" msid="014d41e4-f609-4997-9889-e7da68091764" server="MHP" sncop="-1" sapcpg="8600" clocale="TH" dcpg="8604"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^</Services^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Messageservers^> >>"%TEMP%"\SAPUILandscape.xml
echo ^<Messageserver uuid="014d41e4-f609-4997-9889-e7da68091764" name="MH2" host="10.50.2.102"/^> >>"%TEMP%"\SAPUILandscape.xml
echo ^</Messageservers^> >>"%TEMP%"\SAPUILandscape.xml
echo ^</Landscape^> >>"%TEMP%"\SAPUILandscape.xml

REM #Create_SAPUILandscapeGlobal_on_%temp%
Type Nul >"%TEMP%"\SAPUILandscapeGlobal.xml
echo ^<^?xml version="1.0" encoding="utf-8"^?^> >>"%TEMP%"\SAPUILandscapeGlobal.xml
        echo ^<Landscape^> >>"%TEMP%"\SAPUILandscapeGlobal.xml
echo ^<Messageservers/^> >>"%TEMP%"\SAPUILandscapeGlobal.xml
echo ^</Landscape^> >>"%TEMP%"\SAPUILandscapeGlobal.xml

copy /y "%TEMP%"\SAPUILandscape.xml %wcf%\SAP\Common
copy /y "%TEMP%"\SAPUILandscape.xml %wdf%\SAP\Common
copy /y "%TEMP%"\SAPUILandscapeGlobal.xml %wcf%\SAP\Common
copy /y "%TEMP%"\SAPUILandscapeGlobal.xml %wdf%\SAP\Common

REM #Create_Script_ResetPritner
REM echo. >c:\Reset_Printer.cmd
REM echo net stop "print spooler" >>C:\Reset_Printer.cmd
REM echo Del C:\WINDOWS\system32\spool\PRINTERS\*.* /q >>C:\Reset_Printer.cmd
REM echo net start "print spooler" >>C:\Reset_Printer.cmd
REM echo exit >>C:\Reset_Printer.cmd

REM #Create_Shortcut_Printer
REM     echo [InternetShortcut] >> "%PUBLIC%\desktop\Reset_Printer.url"
REM     echo URL="C:\Reset_Printer.cmd" >> "%PUBLIC%\desktop\Reset_Printer.url"
REM     echo IconFile=C:\WINDOWS\system32\SHELL32.dll >> "%PUBLIC%\desktop\Reset_Printer.url"
REM     echo IconIndex=222 >> "%PUBLIC%\desktop\Reset_Printer.url"

REM #Create_Shortcut_SAP
REM copy /y "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\SAP Front End\SAP Logon.lnk" "%PUBLIC%\desktop\"

REM #SAP_GUI
REG ADD "HKCU\Software\SAP\General\Appearance" /v "SelectedTheme"    /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\SAP\General\Appearance" /v "CorbuIcon" /t REG_DWORD /d 0 /f
REG ADD "HKCU\Software\SAP\General\Appearance" /v "ShowShadowBorder"    /t REG_DWORD /d 1 /f
REG ADD "HKCU\Software\SAP\General\Appearance" /v "Sound"    /t REG_SZ    /d "off" /f
REG ADD "HKLM\Software\Wow6432Node\SAP\SAPLogon" /v "ShowExplorerView"  /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\Wow6432Node\SAP\SAPLogon" /v "ShowTreeView" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\Wow6432Node\SAP\SAPLogon" /v "ShowWorkspaceView" /t REG_DWORD /d 0 /f
REG ADD "HKLM\Software\Wow6432Node\SAP\General\Appearance\Themes" /v "SelectableThemes" /t REG_DWORD /d 1 /f

echo.
echo.
echo.
Echo Please Run Script 2 Times Admin_Normal mode
echo.
echo.
pause > Nul

วันจันทร์ที่ 4 พฤษภาคม พ.ศ. 2563

keybord thai

@echo off

::Thai(Thailand) / Language for non-Unicode program
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage" /v "ACP" /t REG_SZ /d 874 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage" /v "MACCP" /t REG_SZ /d 10021 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\Nls\CodePage" /v "OEMCP" /t REG_SZ /d 874 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\Nls\Language" /v "Default" /t REG_SZ /d 041e /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\Nls\Locale" /v "(Default)" /t REG_SZ /d 0000041e /f

::TimeZone(UTC+07.00) Bangkok,Hanoi,Jakarta
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "Bias" /t REG_DWORD /d 0xfffffe5c /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "DaylightBias" /t REG_DWORD /d 0x0 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "DaylightName" /t REG_SZ /d "@tzres.dll,-561" /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "DaylightStart" /t REG_BINARY /d 00000000000000000000000000000000 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "StandardName" /t REG_SZ /d "@tzres.dll,-562" /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "StandardStart" /t REG_BINARY /d 00000000000000000000000000000000 /f
::reg add "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" /v "TimeZoneKeyName" /t REG_SZ /d "SE Asia Standard Time" /f

::Disable_firewall
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\PublicProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f
reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile" /v "EnableFirewall" /t REG_DWORD /d 0 /f

::Disable_IP6
::netsh int ipv6 isatap set state disabled
::netsh int teredo set state disabled
::netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled
::reg add "HKLM\System\CurrentControlSet\Services\Tcpip6\Parameters" /v "DisabledComponents" /t REG_DWORD /d "255" /f

::Disable-privacy-settings
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OOBE" /v "DisablePrivacyExperience" /t REG_DWORD /d 1 /f
::Disable_suggested_apps
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v "SilentInstalledAppsEnabled" /t REG_DWORD /d 0 /f
::Minimize SearchIcon on task-bar
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 1 /f
::Remove WinStoreIcon on task-bar
reg add "HKCU\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoPinningStoreToTaskbar" /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Explorer" /v "NoPinningStoreToTaskbar" /t REG_DWORD /d 1 /f
::Remove MailIcon on task-bar
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins" /v "MailPin" /t REG_DWORD /d 0 /f

::Location and Thai-Language
::reg add "HKCU\Control Panel\International" /v "sShortDate" /t REG_SZ /d "dd/MM/yyyy" /f
::reg add "HKCU\Control Panel\International\Geo" /v "Nation" /t REG_SZ /d 227 /f
::reg add "HKCU\Keyboard Layout\Preload" /v "2" /t REG_SZ /d 0000041e /f
::reg add "HKCU\Keyboard Layout\Toggle" /v "Hotkey" /t REG_SZ /d 4 /f
::reg add "HKCU\Keyboard Layout\Toggle" /v "Language Hotkey" /t REG_SZ /d 4 /f
::reg add "HKCU\Keyboard Layout\Toggle" /v "Layout Hotkey" /t REG_SZ /d 3 /f

::ForNew User
reg load "HKU\tmp" "C:\Users\Default\NTUSER.DAT"
reg add "HKU\tmp\Software\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 1 /f
reg add "HKCU\tmp\Software\Microsoft\Windows\CurrentVersion\Explorer\Taskband\AuxilliaryPins" /v "MailPin" /t REG_DWORD /d 0 /f
reg add "HKU\tmp\Control Panel\International" /v "sShortDate" /t REG_SZ /d "dd/MM/yyyy" /f
::reg add "HKU\tmp\Control Panel\International\Geo" /v "Nation" /t REG_SZ /d 227 /f
::reg add "HKU\tmp\Keyboard Layout\Preload" /v "2" /t REG_SZ /d 0000041e /f
::reg add "HKU\tmp\Keyboard Layout\Toggle" /v "Hotkey" /t REG_SZ /d 4 /f
::reg add "HKU\tmp\Keyboard Layout\Toggle" /v "Language Hotkey" /t REG_SZ /d 4 /f
::reg add "HKU\tmp\Keyboard Layout\Toggle" /v "Layout Hotkey" /t REG_SZ /d 3 /f
reg unload "HKU\tmp"

echo.
echo.
echo "Please Enter for reboot you computer."
Pause >NUL
shutdown -r -f -t 00
exit


:: To kill and restart explorer
::taskkill /f /im explorer.exe
::start explorer.exe

วันพฤหัสบดีที่ 23 เมษายน พ.ศ. 2563

Linux_squid

apt-get update && apt-get install squid

vi  /etc/squid/squid.conf
http_port 3128
http_port 0.0.0.0:8080 intercept
http_access allow all
acl localnet src 10.0.0.0/8  # RFC 1918 possible internal network

systemctl restart squid
systemctl enable squid

tail -f /var/log/squid/access.log
tail -f /var/log/squid/cache.log

Linux_Ubuntu 18

::Get Version
cat /etc/lsb-release


::Patch
 apt update && apt upgrade -y

::Region
unlink /etc/localtime && ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/localtime
timedatectl


::Interface
ip l show
vi /etc/netplan/00-installer-config.yaml
netplan apply

::Hostname
vi /etc/hostname


::Fix VMWare
 1.shutdown guest
 2.Right Click select edit settings
 3.select "Options" Tab
 4.select "General" and "Configuration Parameters"
 5.select "Add Row"
 6.Add disk.EnableUUID = TRUE
 7.Click OK and Save


::ADD-User #normal
sudo useradd -s /bin/bash -d /home/web_adm/ -m web_adm
sudo passwd web_adm

::Add-User #admin
sudo useradd -s /bin/bash -d /home/web_adm/ -m -G sudo web_adm
sudo passwd web_adm




:: PROXY - Disable
vi /etc/apt/apt.conf.d/proxy.conf

Acquire::http::Proxy "http://10.61.10.123:80";
To
Acquire::http::Proxy "false";


::Add-Host
sudo vi /etc/host
10.90.8.28 ad.shera.com ad
10.90.8.40 webapp.shera.com webapp
10.90.8.41 webappdb.shera.com webappdb


************************************ IPv6
vi /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.ens32.disable_ipv6 = 1
net.ipv6.conf.ens34.disable_ipv6 = 1

sysctl -p
cat /proc/sys/net/ipv6/conf/all/disable_ipv6

vi /etc/default/grub
GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"

update-grub
systemctl reboot



************************************Netwok11
network:
  ethernets:
    ens32:
      addresses:
      - 10.61.10.77/24
      gateway4: 10.61.10.254
      nameservers:
        addresses:
        - 8.8.8.8
        search:
        - shera.com
  version: 2



************************************Network22 IP a


vi /etc/netplan/01-netcfg.yaml
vi /etc/netplan/50-netcfg.yaml


network:
  version: 2
  renderer: networkd
  ethernets:
    ens32:
      dhcp4: no
      optional: true
      addresses: [10.61.10.66/24]
      routes:
      - to: 10.61.10.0/24
        via: 10.61.10.254
      - to: 10.61.11.0/24
        via: 10.61.10.254
      - to: 10.61.12.0/23
        via: 10.61.10.254
      - to: 10.61.90.0/24
        via: 10.61.10.254
    ens34:
      dhcp4: true
      optional: true
      addresses: []




-------------------------------------
::ClockPit-install
sudo systemctl disable network-manager.service
sudo systemctl stop network-manager.service
sudo reboot

::ClockPit-Uninstall
sudo systemctl stop cockpit.socket
sudo systemctl disable cockpit.socket
sudo apt-get autoremove cockpit --purge

วันศุกร์ที่ 10 เมษายน พ.ศ. 2563

Linux_Docker

1.# Enable hyper-v
:: Bios & Windows

c:\bcdedit /set hypervisorlaunchtype auto

2.# Download and install Docker




1.Docker Installation on Ubuntu

sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt install -y \
    apt-transport-https \
    ca-certificates \
    curl \
    software-properties-common

sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88

sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo docker -v
sudo docker run hello-world

sudo systemctl enable docker
sudo systemctl start docker


2.Portainer Installation

# docker volume create portainer_data
# docker run -d -p 9000:9000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer




3.Docker Endpoint (Remote API)

#sudo vi /lib/systemd/system/docker.service

#ExecStart=/usr/bin/dockerd -H tcp://0.0.0.0:4243 -H 
#unix:///var/run/docker.sock
ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:4243 --containerd=/run/containerd/containerd.sock

sudo systemctl daemon-reload
sudo systemctl restart docker


sudo curl http://localhost:4243/version


4.Docker basic command
# docker ps
# docker ps -a
# docker stop rabbitmq && docker rm -f rabbitmq


#Install tomcat


วันศุกร์ที่ 3 เมษายน พ.ศ. 2563

Outlook 2010-Manual

Windows Credential Manager error 

Error code: 0x80090345



Regedit

HKEY_LOCAL_MACHINE\Software\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb

DWORD value, named ProtectionPolicy, and give it a value 1.


1.




2.


3.

4.

5.

6.



























วันเสาร์ที่ 15 กุมภาพันธ์ พ.ศ. 2563

วันอังคารที่ 4 กุมภาพันธ์ พ.ศ. 2563

software-download


https://drive.google.com/drive/folders/1UA-k5mVTDexv5-ya402epNP26FGNw0C7?usp=sharing



::Remote                              RustDesk  |    Anydesk    |    Putty   |  mobaxterm


::FTP                                    WinSCP    |   FileZilla


::Compression                      7zip


::Web browser                       Chrome   |   Firefox64   |   Brave


::Chat                                    Line         |   Microsoft teams    |   Zoom   |   WeChat  app


::PDF Reader                       Acrobat   patch  fontpack    |  Adobe Cloud     |    Foxit 
 

::PDF Editor                        PDFCreator                              |   PDFSam     


::Reports                               Power BI Desktop


::Video player                       VLC     


::Text editor                          Notepad++


::Visio                                   MSviewer2016           |   Draw.IO


::AutoCAD                           SketchUp   (Older)     |   DWG TrueView    |    FreeCAD


::Corel Draw:                        InkScape
 

::Adobe Photoshop                Gimp       theme     theme-source                 |   Darktable


::Apple                                   iTune


::Programming languages      Java


::Video editor                         OpenShot    |   Shotcut 


::Video convertor                  Handbrake     (NetDesktop6)             


::Sound editor                       Adacity 


::Livestream                         OSB Studio


::SAP                                    Patch 

                         
::Disk Drive                         OneDrive    


************
::.NET Framework            4.5.2     4.8


************
::Global Soft:                    https://agilis.gbhcenter.com/globalsoft/                    
       
                                                         
************
::Utility                            Bing Wallpaper    |   WizTree
 
                                         BgInfor    RemoteDesktop

                                         PowerToy

************
Windows Server :--------------------------------------------
                     
                        OS:      AD

                      APP:     OpenSSL
 

                       Database Gui:    DBeaver



Linux :------------------------------------------------
                       OS:      Ubuntu22  | Ubuntu18
                       
                       Disk:      gparted

                       Database Gui:    DBeaver
        
                       App:      sFTP  |   Node-Red   |  Cacti
                 
                    
                                   Guacamole
    

 Hosting control panel: -----------------------------------------------

                        aaPanel:  Install           
         
                        Docker:-

                        Docker  - portainer-ce

                        Docker-compose

-------------------: VMware  :-------------------------------
                                 


-------------------: Cloud :-------------------------------

AWS       AWS-EC2




Azure   SSO_regisapp



::PowerShell
Export-StartLayout –path c:\admscript\Layout.xml;
Import-StartLayout –LayoutPath c:\admscript\Layout.xml -MountPath C:\

::CMD
Dism.exe /online /Export-DefaultAppAssociations:c:\admscript\App.xml
Dism.exe /online /Import-DefaultAppAssociations:c:\admscript\App.xml


::SearchBox
reg add "HKCU\SOFTWARE\Microsoft\Windows\ CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 2 /f

::CortanaButton
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "ShowCortanaButton" /t REG_DWORD /d 0 /f



https://social.technet.microsoft.com/Forums/windows/en-US/6aae9882-8ae5-4ef3-ab45-8e71a07b7118/new-search-box-in-win-10-1903-how-to-disable-or-change-to-icon-for-all-users?forum=win10itprosetup


วันพฤหัสบดีที่ 30 มกราคม พ.ศ. 2563

MSSQL-Shrink DB.Log

::Solution 1 (GUI)
1.ต้อง Backup Database ก่อนถึงจะทำได้
2.


::Solution 2 (Script)



1. ต้อง BK database ก่อนไม่งั้นถ้า DB_Log พัง DB ก็จะพังไปด้วย
2  Run Script



USE TMP_BIDB; 
GO 

ALTER DATABASE TMP_BIDB 
SET RECOVERY SIMPLE; 
GO 
-- Shrink the truncated log file to 1 MB. 
DBCC SHRINKFILE (TMP_BIDB_log, 1); 
GO 
-- Reset the database recovery model. 
ALTER DATABASE TMP_BIDB 
SET RECOVERY FULL; 
GO 

วันพฤหัสบดีที่ 23 มกราคม พ.ศ. 2563

batch-fix chrome



@echo off
set ChromeDir=C:\Users\%USERNAME%\AppData\Local\Google\Chrome\User Data
taskkill /F /IM "chrome.exe"
Start-Sleep -Seconds 5
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%"

วันพุธที่ 22 มกราคม พ.ศ. 2563

Tomcat-version

cd tomcat/lib
java -cp catalina.jar org.apache.catalina.util.ServerInfo


Server version: Apache Tomcat/7.0.30
Server built:   May 23 2013 02:54:10
Server number:  7.0.30.0
OS Name:        Linux
OS Version:     3.13.0-36-generic
Architecture:   amd64
JVM Version:    1.7.0_65-b32
JVM Vendor:     Oracle Corporation

freeSHHd-fix service



https://gurunadhduvvuru.wordpress.com/2017/07/20/steps-to-resolve-the-specified-address-is-already-in-use-error-in-freesshd/

วันศุกร์ที่ 3 มกราคม พ.ศ. 2563

win-layout

::PowerShell
Export-StartLayout –path c:\admscript\Layout.xml; Import-StartLayout –LayoutPath c:\admscript\Layout.xml -MountPath C:\

::CMD
Dism.exe /online /Export-DefaultAppAssociations:c:\admscript\App.xml
Dism.exe /online /Import-DefaultAppAssociations:c:\admscript\App.xml

::Remove PrivacyExperience win10_1903
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\OOBE" /v "DisablePrivacyExperience" /t REG_DWORD /d 1 /f

::Disable_app_Suggestions
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\CloudContent" /v "DisableWindowsConsumerFeatures" /t REG_DWORD /d 1 /f