Tech Home The Bacon

Technology Blog

Category: System Administration

Python 3 & Wget – Download Images from CSV.

Objective

I wanted to download a list of files from an S3 bucket using python 3. I used a standard CSV in UTF-8 format. Here is an example CSV. It’s one column with just the filenames. 

I could have built out the full url in the CSV, but I decided to just do it in the code.  Below is the full python script. 

import csv
import wget
#open import file
with open("c:\\csv\\files-to-download.csv", newline='', encoding='utf-8') as f:
#Assign the import file to the DictReader "reader"    
    reader = csv.DictReader(f)
    #Now loop through all rows and build out variables    
    for row in reader:
        filename = row['name']
        print('Beginning file download with wget module')
        url = 'http://www.example.com/images/'
        wget.download(url + filename, 'c:\\csv\\images\\' + filename) 

Continue reading

Windows Server 2016 RDS Problems with Sage 100 2017 RemoteApp

sage 100 remoteapp problem windows not appearingRemoteApp Problems – Windows Not Showing:

We deployed a new RDS server this week with Sage 100 2017 published as a RemoteApp. One of our remote sites called in and said it was taking an unusual amount of time for the windows to open. I remoted into their machine and walked through some normal operations of creating a sales order. The window to select a customer account seemed to be taking a long time to appear, but when I hovered over the icon in the taskbar it was showing the new window was already running. If you click on the area where the new window was supposed to be it would appear. The windows of the RemoteApp were not drawing to the screen. To the user, the window wasn’t appearing at all, but when the user got frustrated they would start clicking randomly and the window would finally appear.

Continue reading

Trouble After Migrating Azure AD Connect

Moving Azure AD Connect From Windows Server 2012 to 2016

Last week I stood up a new Windows Server 2016 domain controller as we prepared to decommission the older ones. One task I needed to complete was to migrate our Azure AD Connect software. I followed Paul Cunningham guide Migrating Azure AD Connect to a New Server. Everything went well and we did our testing to make sure that everything was pushing out to o365 and it was. The o365 admin portal was showing our new DC id under the ADD Connect Status.  I thought all was well. 

Continue reading

Remote Desktop – CredSSP Encryption Oracle Error

I ran into this problem earlier this week when our remote sites called in stating they couldn’t connect. We are running some windows server 2012 servers and we have published remote apps as well as full-blown remote sessions for our remote locations and mobile users. This affected windows 7, 8, and 10 clients.

Problem

When trying to connect to a windows server 2012 via RDP we received this error message:

An Authentication error has occurred.
The function requested is not supported.
This could be due to CredSSP encryption oracle remediation

credssp-oracle-remote-desktop-error-and-fix Continue reading

© 2018 Tech Home The Bacon

Theme by Anders NorenUp ↑