Monthly Archives: June 2024

PowerShell Script using Invoke-WebRequest to download files from URL with basic authentication

The below PowerShell script will use Invoke-WebRequest to download files from a URL that is requesting basic authentication. #!powershell # Setup Key Values ################################### $URL="http://yourserver//filetodownload.exe" $DOWNLOADTARGETPATH= "C:\filetodownload.exe" $USER_TO_ACCESS_DOWNLOAD = "YourUserName" $USER_PW = "YourUserPassword" # Forece TLS 1.2 ################################### [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Download the file with authentication using Invoke-WebRequest [...]

2024-06-12T19:29:19-04:00June 12th, 2024|Microsoft, Powershell Scripts|Comments Off on PowerShell Script using Invoke-WebRequest to download files from URL with basic authentication

PowerShell Script to change the password of the local administrator account

The below PowerShell script will Allow you to change the password of the local administrator account. #!powershell # Setup Key Values ################################### $newpassword = "YourNewPassword" $ErrorActionPreference = "Stop" $hostname = "$env:computername" # Create computer object $computer = [ADSI]("WinNT://$hostname,computer") # Get local users list $userList = $computer.psbase.Children | Where-Object { $_.psbase.schemaclassname -eq 'user' [...]

2024-06-12T19:27:33-04:00June 7th, 2024|Microsoft, Powershell Scripts|Comments Off on PowerShell Script to change the password of the local administrator account

About me

I have more than 15 years hands-on experience in the IT field. The majority of my work is in networking, operating systems and applications and storage. I carry industry certifications in Redhat, Microsoft, EMC, VMWare, VCE and ITIL.

I find it hard to find procedures or documents on how to implement specific technology and this is how the decision to create a place to share my knowledge and ideas for anyone interested in the same subject.

If you have the same vision and you are interested to publish on this website please contact me and I will create an account for you.

Certifications:
RHCSA

Certifications:
MCSE Security
MCSA Massaging

Certifications:
EMCIE- Isilon
EMCTA- Isilon
EMCIE- VNX

Certifications:
VCP-DCV

Certifications:
VCE-CIA

Certifications:
TITL

This site is targeting Solution Architects, Implementation Engineers and Systems Administrators. It is not targeting sales or intending to promote any specific technology or vendor.

The focus is on hands-on work, technical documentations and architecting solutions.

The site reflects my knowledge and opinions, I do recommend that you test what you learn in the lab environment before implementing it in production.

If you have a doubt call technical support, I do not assume any liability for any errors or omissions in those articles, I also make no representations as to the accuracy or completeness of any information on this site or found by following any link on this site

Content published here is tested in my own lab and is not reviewed or approved by any vendor.

If you have any issues with your system I highly recommend you contact the technical support of the vendor.

Disclaimer

Knowledge Ascent (KA) makes information available on its web site to enhance public knowledge and promote a better understanding of the IT environment. KA attempts to provide accurate, complete, and timely information. KA, however, cannot guarantee the quality, content, accuracy, or completeness of the information, text, graphics, links, and other items contained on its web pages because the material comes from a variety of sources, collected and maintained for different purposes. KA also retains the right to change any content on its web site without prior notice.

Information provided on the KA web site should not be used as a substitute for IT or other professional advice. KA assumes no liability for any damages or loss of any kind that might arise from the use of, misuse of, or the inability to use the KA web site and/or the materials contained on the web site. KA also assumes no liability for improper or incorrect use of materials or information contained on its web site. All materials that appear on the KA web site are distributed and transmitted "as is," without warranties of any kind, either express or implied, and subject to the terms and conditions stated in this disclaimer.

Go to Top