by skufel | Mar 14, 2016 | Scripting, Windows
Quick side note, not to forget for future. Rename computer Netdom renamecomputer %computername% /newname:Test-Server Join computer to domain Netdom join %computername% /domain:domain.com /UserD:Administrator...
by skufel | Mar 14, 2016 | Network, Scripting, Windows
When you need to use your computer as wireless hotspot, you can easily enable that functionality with PowerShell: Windows PowerShell Copyright (C) 2013 Microsoft Corporation. All rights reserved. PS C:\windows\system32> netsh wlan set hostednetwork...
by skufel | Sep 11, 2015 | Infrastructure, Scripting, SysAdmin, Windows
To remove Event Log Source use this: Remove-EventLog -Source "Desktop Window Manager" Replace Desktop Window Manager with Event Log Source you want to...
by skufel | Sep 11, 2015 | Automation, Infrastructure, Scripting, SysAdmin, Windows
To list all Event Logs and sources associated with them use: Get-EventLog -LogName * |ForEach-Object {$LogName = $_.Log;Get-EventLog -LogName $LogName -ErrorAction SilentlyContinue |Select-Object @{Name= "Log Name";Expression = {$LogName}}, Source...
by skufel | Sep 7, 2015 | HA/DR, Infrastructure, Linux, Network, SysAdmin, Web Servers
Many times there is a need to publish multiple websites from internal network, but there is only one public IP address available. How this can be done easy way? HAProxy can help us with it. In example configuration I have 2 URLs registered to same public IP address:...