Skip to content
blog.KimConnect.com
Menu
Codes
Windows
Linux
Virtualization
Networking
Database
Month:
December 2020
blog.KimConnect.com
>>
Read More
December 17, 2020
December 17, 2020
kimconnect
kimconnect
An Issue with RSA Key On CentOS 8
Error message seen by checking SSH Daemon status: [root@linux1 testadmin]# service sshd statusRedirecting to /bin/systemctl…
0 Comments
Read More
December 17, 2020
December 17, 2020
kimconnect
kimconnect
How to Disable SELINUX on CentOS 8
SELinux is a sort of system-call firewall, where processes are in their run spaces. When…
0 Comments
Read More
December 17, 2020
December 17, 2020
kimconnect
kimconnect
Network Time Protocol for CentOS 8
Check hardware clock [root@sftp testadmin]# hwclock --verbosehwclock from util-linux 2.32.1System Time: 1608158426.341727Trying to open: /dev/rtc0Using…
0 Comments
Read More
December 16, 2020
December 16, 2020
kimconnect
kimconnect
PowerShell: Maintain Linux Services via SSH Remoting
Version 2: # maintainLinuxServices.ps1 # Version 0.0.2 # Description: this is a simple script to…
0 Comments
Read More
December 16, 2020
December 16, 2020
kimconnect
kimconnect
PowerShell: Probe Remote Machine for Its OS Type
function probeOsType($server){ $ping=test-connection $server -count 1 $ttl=$ping.ResponseTimeToLive $osType=switch($ttl){ {$_ -le 64} {"Linux"; break} # MacOs…
0 Comments
Read More
December 16, 2020
December 16, 2020
kimconnect
kimconnect
Windows Firewall Block ICMP Ping
Following is a quick exercise in configuring Windows firewall to block certain protocols: # Disable…
0 Comments
Read More
December 15, 2020
December 15, 2020
kimconnect
kimconnect
Update Windows with Restricted Internet Access
This script is an extract of a longer version with the features of simultaneous executions…
15 Comments
Read More
December 14, 2020
December 14, 2020
kimconnect
kimconnect
Linux: Shell Script to Reboot Remote Devices Daily
Set Variables remoteDevice=10.25.0.20username=adminpassword="PASSWORDHERE" Install sshpass if it doesn't exist if ! sshpass -v sshpass &>…
0 Comments
Read More
December 14, 2020
December 14, 2020
kimconnect
kimconnect
How to Fix Duplicate Computer Account Names Issue in Active Directory
Automatic cleanup: # disableDuplicateComputers.ps1 # Version 0.0.1 $defaultPasswordPeriod=30 $disabledComputersReport='c:\disabledComputersReport.csv' function disableDuplicateComputers{ param( $lastLogonDaysExceeding=30, $disabledComputersReport='c:\disabledComputersReport.csv' )…
0 Comments
Read More
December 14, 2020
December 14, 2020
kimconnect
kimconnect
PowerShell: Move Computer Objects in Active Directory
Version 2 # MoveComputers.ps1 # Version 0.0.2 # Obtain credentials being passed by Jenkins #…
0 Comments
Read More
December 13, 2020
December 13, 2020
kimconnect
kimconnect
Linux: Create a Shell Script to Watch Services
# create a script to watch services (notice the regex escape for special chars) sudo…
0 Comments
Read More
December 12, 2020
December 12, 2020
kimconnect
kimconnect
PowerShell: Use Win-SCP to Download Files from SFTP Server
Version 2: # downloadFilesViaSftp.ps1 # Version 0.0.2 # # Description: # This simple script is…
4 Comments
Read More
December 12, 2020
December 12, 2020
kimconnect
kimconnect
PowerShell: Invoke CRM Services Maintenance
Version 4: # invokeCrmServersMaintenance.ps1 # Version 0.0.4 # This script is a processes watcher on…
0 Comments
Read More
December 11, 2020
December 11, 2020
kimconnect
kimconnect
PowerShell: Update Local Windows Using COM Objects – Legacy Compatible
Although this function requires 'interactive' or console sessions, it can be trigged by Windows Scheduled…
0 Comments
Read More
December 11, 2020
December 11, 2020
kimconnect
kimconnect
How to Install OpenDNS Client on Ubuntu
Install the dynamic IP updater: # Install the appsudo apt-get install ddclient Press Enter repeatedly…
0 Comments
Read More
December 10, 2020
December 10, 2020
kimconnect
kimconnect
PowerShell: Remove a Scheduled Task By Name
# removeScheduledTask.ps1 # Set CoomputerNames $computerNames='sherver0001','sherver1000' $scheduledTaskName='SomeTaskName' # Obtain credentials $username='Domain\Admin' $password='PASSWORD' $encryptedPassword=ConvertTo-SecureString $password -AsPlainText…
0 Comments
Read More
December 10, 2020
December 10, 2020
kimconnect
kimconnect
How to Create a New Jenkins Job to Call a PowerShell Script with Credentials
1. PowerShell & Secured Credentials Support Check for PowerShell support: Manage Jenkins > Plugin Manager…
0 Comments
Read More
December 9, 2020
December 9, 2020
kimconnect
kimconnect
PowerShell: Get Ports to Process Connections / Associations
Current Iteration: Here is a quick snippet to enable Network Engineers and Systems dudes to…
0 Comments
Read More
December 9, 2020
December 9, 2020
kimconnect
kimconnect
PowerShell: Process Watcher – Perform CRM Async Services Maintenance
Update: this script is deprecated in favor of a better one here. Version 1: #…
0 Comments
Read More
December 9, 2020
December 9, 2020
kimconnect
kimconnect
PowerShell: Replacing Characters Inside Text Files
$textFilesDirectory="C:\Users\$env:computername\Desktop\test" $textFileExtensions='.txt' $regexNewlineOnly="(?<!\r)\n$" $replaceWith="`r`n" function updateFile{ param( $file="C:\Users\$env:username\Desktop\test.txt", $regexMatch="(?<!\r)\n$", $replaceWith="`r`n", $output ) $output=if($output){$output}else{$file} if($file -ne…
0 Comments
Posts navigation
Previous page
1
2
3
Next page
Search
Archives
October 2024
September 2024
August 2024
June 2024
May 2024
April 2024
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
Meta
Register
Log in
Tag Cloud