Windows 2012 R2 SOE
- Driver Letters
- C:\ – OS
- D:\ – App
- E:\ – Data
- F:\ – Backup
- G:\ – Temp
- H:\ – Pagefile
- SQL Servers
- Data
- Log
- Backup
- Update VM Details
- Adjust memory to autoscale from lowest to required
- Update Boot order (HD and No DVD and No Network)
- Remove Floppy Disk
- BIOS
- Update Boot order
- Disable the Serial and Parallel ports
- Rename Server
- Add NICS in correct order in XenServer
- Adjust VM Memory to Auto
- Rename NICs
- netsh interface set interface name = “Ethernet 3” newname = “External_1”
- netsh interface set interface name = “Ethernet” newname = “External_2”
- netsh interface set interface name = “Ethernet 2” newname = “MAN_NET”
- Reserve DHCP IP for External_1 MAC
- Update IP Register
- Set Static IP
- MAN_NET
- External_1
- External_2
- Adapter Settings / View Details / Layout Menu Bar / Change Order
- Windows update
- Activate
- TimeZone
- Time
- Add to Domain
- Create A and PTR Records
- Reboot / Shutdown
- Enable RDP
- Enable Graphics Hardware Acceleration to Full
- Apply OS Hardening
- Disable TCP Chimney Offload
- Install XenTools
- Enable VSS / Volume Shadow Copy services (vsadmin) – http://technet.microsoft.com/en-us/library/cc771893.aspx /
- Enable XenServer VSS – C:\Program Files (x86)\Citrix\XenTools\install-XenProvider.cmd
- http://technet.microsoft.com/en-us/magazine/dd348398.aspx
- VMware Tools
- Uninstall Shared Folder Option
- Via Group Policy
- Enable Dedu for Data Drives – http://technet.microsoft.com/en-us/library/hh831434.aspx
- Disable AutoStart (GPO) – http://support.microsoft.com/kb/2328787
- Setup DelProfile Schedule Task – http://www.microsoft.com/en-au/download/details.aspx?id=5405
- Setup Map the shared Drive (GPO)
- Sysprep_backup
- CryptoLocker (GPO) – http://virtualizationandstorage.wordpress.com/2014/11/27/cryptolocker-group-policy-software-restriction/
- Schedule Remove rd /s /q %systemroot%\temp
- Empty Recycle Bin rd /s /q %systemdrive%\$Recycle.bin
- Schedule Defrag (GPO)
- (cmd /c defrag c: > c:\temp\lastdefrag.txt)
- jkdefragcmd.exe – http://www.kessels.com/jkdefrag/
- cmd.exe /c start “JkDefrag” /BelowNormal “jkdefragCmd.exe”
- Page file defrag – http://technet.microsoft.com/en-au/sysinternals/bb897426.aspx
- Disable IPv6 (GPO) – http://social.technet.microsoft.com/wiki/contents/articles/5927.how-to-disable-ipv6-through-group-policy.aspx
- HKLM\SYSTEM\CurrentControlSet\Services\tcpip6\Parameters\DisabledComponentsxFF
- Disable IP Helper Service
- Windows Firewall Block IPv6 Traffic – Block incoming and outgoing IPv6 protocol 41 (for ISATAP and 6to4) and UDP 3544
- NetSh
- netsh interface teredo set state disabled
- netsh interface ipv6 6to4 set state state=disabled undoonstop=disabled
- netsh interface ipv6 isatap set state state=disabled
- EventLog Archive (GPO)
- SOX (GPO) – http://virtualizationandstorage.wordpress.com/2013/11/26/sarbanes-and-oxley-settings/
- TCP Lock down – http://msdn.microsoft.com/en-us/library/ff648853.aspx
- Map Tools Directory and add to search path
- System State Backup Schedule (GPO) – http://technet.microsoft.com/en-us/library/cc753201.aspx
- Public Sharing On/Off (GPO)
- Adjust for Best Performance (GPO)
- GPUpdate for users (GPO)
- Adjust for Best formance of: Back Ground Services (GPO) “Depends on workload”
- Set Path Z: (GPO)
- Map Z: (GPO)
- Change advanced sharing settings / Turn on Network discover / Turn on file and printer sharing
- Adjust Explorer View (Show hidden files,etc)
- IE Homepage
- IE google search provider
- BigINFO -C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
- RDS License – Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Licensing
- Enable Desktop Experience
- Task Bar Configuration
- Never Combine
- All show Icons
- Disable the Encrypting File System (EFS)
- Fsutil behavior set disableencryption 1
- HKLM\System\CurrentControlSet\Control\FileSystem\NtfsDisableEncryption = 1
- Disable QoS Packet Scheduler
- Remove Script things https://github.com/securitywithoutborders/hardentools
- Disable ScreenSaver
- Software Restrictions GPO
- http://www.bleepingcomputer.com/virus-removal/cryptowall-ransomware-information
- http://technet.microsoft.com/en-us/library/cc786941(v=ws.10).aspx
- C:\<random>\<random>.exe
C:\Users\<User>\AppData\Local\<random>.exe (Vista/7/8)
C:\Users\<User>\AppData\Local\<random>.exe (Vista/7/8)
C:\Documents and Settings\<User>\Application Data\<random>.exe (XP)
C:\Documents and Settings\<User>\Local Application Data\<random>.exe (XP) - %Temp%
%TMP%
%APPDATA%
%LOCALAPPDATA%
-
Setup backup – wbadmin enable backup -addtarget:\\server\location -schedule:01:00 -systemstate -quiet -vssfull
- Maintain Local Admin Password – http://blogs.technet.com/b/askpfeplat/archive/2014/05/19/how-to-automate-changing-the-local-administrator-password.aspx
- Deleted Local Profiles on Servers – http://support.microsoft.com/kb/274152
- Disk Clean up and Defrag
- Optimise Services (Exclude Domain Controllers)
- Power
- iSCSI
- Superfetch
- Print Spooler
- Themes
- Software Protection
- Remote Registry
- Internet Connection Sharing
- Windows Audio
- Windows Color System
- Plug and Play
- File Exclusions via End Point Security
- Install Software via SCCM
- Install 7-Zip
- Install PDF Reader
- Install CutePDF Writer
- Install Java
- Install Virus Protection
- Install Chrome
- Install Flash
- Malicious Software Removal Tool – http://www.microsoft.com/security/pc-security/malware-removal.aspx
- Microsoft Safety Scanner – http://www.microsoft.com/security/scanner/en-us/default.aspx
- http://www.safer-networking.org/full-anti-virus-protection/
- Add to XenServer Backup Script
- Defrag Disk
- Apply Domain Level – https://www.linkedin.com/pulse/what-windows-domain-functional-level-dfl-why-should-i-e-d-williams/
- Apply OS Optimisation
- http://msdn.microsoft.com/en-us/library/windows/hardware/dn529134
- http://virtualizationandstorage.wordpress.com/2014/08/27/windows-8-and-server-2012-optimisation-guide/
- http://longwhiteclouds.com/2015/01/27/nutanix-sql-server-db-vaai-clone-performance/
- https://labs.vmware.com/flings/vmware-os-optimization-tool
- Auto Start Join Domain Script
- Reserve IP Address for Mac Address
- Create DNS record for IP address
- Get Hostname via IP address
- Rename Server to allocated dns hostname
- Create account in domain OU
- Join Domain
- Delete script
- FEP configurations – http://technet.microsoft.com/en-us/library/gg193355.aspx
- Windows Firewall
- KMS – 1688
- DHCP
- DNS
- Full Microsoft Update
- Use IIS-Lockdown or URLScan tools
- Security Scans
- Windows Configurations – https://www.windowsafg.com/features10.html
- SYSPREP – C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /shutdown
- Post Configurations Items
- Rename Rename-Computer -NewName CN1 -LocalCredential WS\Administrator -PassThr
- Add Setup Static IP address
- Update Virus Signatures
- wuauclt.exe /updatenow
- Add to Domain
- Add to Monitoring system
- Add to Backups
- Add to IP List
- Add to Assets Register
- Document Maintenance Window
- Document Application Owner
- Document Change Approval Groups
Windows Activation
slmgr.vbs /upk - Install Product Key slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX - Install KMS Key slmgr /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 slmgr /skms kms.xspace.in slmgr /ato - Activate Online slmgr.vbs -xpr slui.exe - Activate via phone slmgr.vbs /dlv - Show details 0xC004F069 cscript //B "%windir%\system32\slmgr.vbs" -ckms cscript //B "%windir%\system32\slmrg"
- https://docs.microsoft.com/en-us/windows/deployment/volume-activation/activate-using-key-management-service-vamt
- https://github.com/magnetikonline/linux-microsoft-ie-virtual-machines
- https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/jj612867(v=ws.11)?redirectedfrom=MSDN
- SLMGR options – https://docs.microsoft.com/en-us/previous-versions//ff793433(v=technet.10)?redirectedfrom=MSDN
Windows Unattended Customization
- indows Assessment and Deployment Kit (Windows ADK) has the tools you need to customize Windows images for large-scale deployment, and to test the quality and performance of your system, its added components, and the applications running on it. https://docs.microsoft.com/en-gb/windows-hardware/get-started/adk-install
- Windows Configurations – https://www.windowsafg.com/features10.html
References
Linux SOE
- Lynis, an Auditing, system hardening, compliance testing https://cisofy.com/lynis/
- Edit etc/sysconfig/network-scripts/ifcfg-eth0
- http://www.servermom.org/basic-centos-setup-before-building-a-working-server/414/
- Update
- su -c ‘/sbin/chkconfig –level 345 yum on; /sbin/service yum start’
- su -c ‘yum update’
- Harden OS
- ssh disable via root
- enable root online in console
- enable ssh only via managment network and interface
- Disable IPv6 – http://www.cyberciti.biz/tips/linux-how-to-disable-the-ipv6-protocol.html
- enable iptables
- enable point to point tracffic
- enable SELinux
- Install http://www.webmin.com/
- Lynis – https://cisofy.com/lynis/