by skufel | Mar 17, 2016 | Development, Linux, Scripting, Windows
In previous articles: How-to : Introduction to Laravel : Create Laravel Framework project on openSUSE Leap 42.1 How-to : Introduction to Laravel : Publish Laravel Framework project on Apache 2.4 we created and published web project. Now it’s time to try to do...
by skufel | Mar 14, 2016 | Automation, Databases, Infrastructure, Scripting, SysAdmin, Windows
Code snippet from old archives. It shows how to import Windows event log entries to database. Important is to setup database and table accordingly, so it contains apropriate columns. Set objConn = CreateObject("ADODB.Connection") Set...
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...