Category Archives: Windows

Windows Tutorials

Install OneDrive using Group Policy and PowerShell

In this tutorial you will learn how to install OneDrive using Group Policy and PowerShell. By the end of this tutorial, you would have successfully deployed OneDrive to all end user devices during computer startup.

Task Details

  1. Download OneDrive
  2. Create PowerShell Script
  3. Create and Deploy GroupPolicy

Task 1: Download OneDrive

1. On your Domain Controller Download OneDrive

2. Place the OneDriveSetup.exe in your netlogon path.

Task 2: Create PowerShell Script

 1. Open Notepad.exe

2. Copy the script below and place it into Notepad.

$ErrorActionPreference = "SilentlyContinue"

# LOGGING INITIALISATION
$logSource = "OneDrive Per-Machine Deployment"
if (![System.Diagnostics.EventLog]::SourceExists($logSource)){
        new-eventlog -LogName Application -Source $logSource
}
# END OF LOGGING INITIALISATION

# CONFIGURATION DETAILS GO HERE

# Specify the location of the OneDriveSetup.exe
$installationSource = "\\Network\Path\Here"
$destinationPath = "C:\Program Files (x86)\Microsoft OneDrive"
$installedVersion = (Get-Command "$destinationPath\OneDriveSetup.exe").FileVersionInfo.FileVersion

try{
    $ErrorActionPreference = "Stop"
    $targetVersion = (Get-Command "$installationSource\OneDriveSetup.exe").FileVersionInfo.FileVersion
} catch{
    write-eventlog -LogName Application -Source $logSource -EntryType Error 
Read the rest
Windows Tutorials

How To Auto Deploy RADIUS WiFi With Group Policy

In this tutorial you will learn how to auto deploy RADIUS WiFi to end user domain joined computers with group policy.

 

Lets get started.

1. Log into your Domain Controller.

2. Open Group Policy Management.

3.  Locate Group Policy Objects, afterwards right click and click New.

4. Name your policy something that is identifiable and then click OK

5. Locate your new policy. Right Click and afterwards click Edit.

6. Expand to the following Computer Configuration > Policies > Windows Settings > Security Settings > Wireless Network (IEE 802.11 Policies).

7. Right click Wireless Network (IEE 802.11 Policies) and then click Create A New Wireless Network Policy for Windows Vista and Later Releases.

8. Make your Policy Name descriptive.

9. Under General Tab click Add.

10. Give your New Profile a Name. I would suggest naming it your Radius Wifi SSID. Afterwards type in your SSID … Read the rest

Windows Tutorials

How To Install And Configure Windows Server DHCP Role

In this tutorial you will learn How To Install And Configure Windows Server DHCP Role. We will be using Windows Server 2019 however the concept is the same with Windows Server 2022.

Introduction

The Windows Server DHCP (Dynamic Host Configuration Protocol) role plays a crucial role in managing IP addresses on a network. By automating IP assignment and configuration, DHCP simplifies network administration and ensures efficient connectivity. This guide will walk you through the process of installing and configuring the DHCP role on your Windows Server. From initial setup to advanced configurations, you’ll gain the knowledge and skills needed to effectively manage IP address allocation. Get ready to streamline your network infrastructure and enhance connectivity with this comprehensive tutorial.

Let’s get started with the Installation of the DHCP Role

1.Log into your Windows Server.

2. If not already opened, open up Server Manager.

3. Click Add roles and featuresRead the rest

Windows Tutorials

How to repair Windows Server 2019 installation with DISM

In this tutorial you will learn how to repair Windows Server 2019 installation with DISM. If you’re experiencing problems with your Windows Server 2019 installation, using the DISM /restorehealth can help repair it. DISM is a command-line tool that can scan and fix issues with Windows images, including those used by the Server operating system. This process can be done by following a few simple steps such as opening an elevated command prompt, running the DISM tool, waiting for the process to complete, and restarting your system. 

Remember to always have a backup. Or if it’s a virtual machine at least a snapshot. 

1.Lets get started by Opening up CMD as administrator and running the following:

dism /online /cleanup-image /scanhealth

2. Once /scanhealth is complete, run the following.

dism /online /cleanup-image /checkhealth

3. Now lets mount your Windows Server 2019 ISO as a drive. Take note of your mounted drive … Read the rest

Windows Tutorials

Windows Server Pending Reboot Status Won’t Clear

You may have a problem with Windows Server Pending Reboot Status Won’t Clear because you may have installed new windows updates, new drivers or new windows features and windows server is throwing a fit about needing to reboot, even though you have reboot it dozens of times. 

In comprehensive guide on troubleshooting the issue of a pending reboot status that won’t clear on a Windows Server. As a system administrator or IT professional, you might have encountered this frustrating situation where the server continues to show a pending reboot status even after a restart. In this article, we will explore the possible causes behind this issue and provide you with effective solutions to resolve it. So, let’s dive in and get your Windows Server back on track!

Solution 1: Check for Pending Updates

One of the common causes of the pending reboot status is incomplete update installations. To address this … Read the rest

Windows Tutorials

How To Ping With Date and Time To TXT File Using CMD

There are occasions where you will need to know How To Ping With Date and Time To TXT File Using CMD and a few Windows Ping commands can help. This will use a provide a date and a timestamp the result of each ping, with a bit of effort you can get it to do that. It’s quite useful if you specifically need to use the Windows Ping command. 

ping -t patrickdomingues.com|cmd /q /v /c "(pause&pause)>nul & for /l %a in () do (set /p "data=" && echo(!date! !time! !data!)&ping -n 2 patrickdomingues.com>nul" >C:\ping\pingtest.txt

Ping With Data and Time Using CMD

The above will continuously ping the address with a time and date to a output log file which in this case is called pingtest.txt , press Ctrl+C to end the session. If you do not need an output file remove the redirection to an output file string if you want to show the results in the … Read the rest

PowerShell Tutorials

How to Re-Establish Domain Relationship trust using PowerShell

If you are looking for a how to on an easy way to Re-Establish Domain Relationship trust using PowerShell you have come to the right place.

Introduction

In today’s digital age, establishing and maintaining domain relationship trust is crucial for the smooth functioning of various network operations. With the help of PowerShell, a powerful scripting language and automation framework developed by Microsoft, administrators can efficiently manage and restore domain relationship trust. This article will guide you through the process of re-establishing domain relationship trust using PowerShell, providing you with step-by-step instructions and valuable insights.

Why is Domain Relationship Trust Important?

Domain relationship trust forms the foundation of secure and reliable network communication. It allows different domains within a network to establish a trusted connection and share resources seamlessly. When the trust relationship between domains is compromised or broken, it can lead to authentication issues, limited access to shared resources, and … Read the rest

PowerShell Tutorials

How To Uninstall All Windows 10 Apps Using PowerShell

You have noticed that Windows 10 came with all sorts of Apps and you want a simple way to Uninstall all these Apps, well using PowerShell will be the quickest method.

Introduction:

Uninstalling Windows 10 apps using PowerShell provides a convenient and efficient way to remove built-in or pre-installed applications that you may not need or want on your system. PowerShell is a command-line scripting language developed by Microsoft, and it offers powerful tools for managing and automating various tasks in Windows.

In this guide, I will walk you through the steps to uninstall all Windows 10 apps using PowerShell. This method allows you to remove multiple apps simultaneously, saving you time and effort. It is important to note that this process will only uninstall the apps for the current user account and not for all users on the system.

Before proceeding, please ensure that you have administrative privileges on … Read the rest

PowerShell Tutorials

How To Reinstall All Windows 10 Apps Using PowerShell

I take it some how some way you may have uninstalled a few or all Windows 10 Apps and they are no longer in your start menu, This PowerShell command will get those Windows 10 Apps back onto your system. 

Introduction:

Reinstalling Windows 10 apps using PowerShell can be useful if you have accidentally uninstalled essential applications or if you want to restore the default set of built-in apps on your system. PowerShell, a command-line scripting language developed by Microsoft, provides a convenient way to manage and automate tasks in Windows.

In this guide, I will walk you through the steps to reinstall all Windows 10 apps using PowerShell. This method allows you to reinstall multiple apps simultaneously, saving you time and effort. However, please note that this process will only reinstall the apps for the current user account and not for all users on the system.

Before proceeding, make … Read the rest

Windows Tutorials

How To Fix RDP Connection Was Denied

Learn how to troubleshoot and resolve the “RDP connection was denied” error. Fix issues preventing remote desktop access with simple steps and solutions.

RDP Connection Was Denied to allow a end user to remote connect to the computer?

The connection was denied because the user account is not authorized for remote login.
  1. Right-click My Computer, and select Properties.
  2. Select the Remote tab.
  3. IF not already done: Select “Allow users to connect remotely to this computer.
  4. Click “Select Users” if you want to add a non-Administrator user.
  5.  Click Add.
  6. Select \ type the user in question, and click OK.
  7. Click OK to close the Remote Desktop Users dialog box.
  8. Click OK to close the main dialog box.

To Open RDP to Public:

  1. Allow port 3389 through windows firewall or your AV firewall
  2. You will also have to allow port 3389 through your physical firewall \ router.
  3. If default port changed the
Read the rest