Category: Scripts
-
Active Directory OU Export to CSV File
This command will allow you to export a list of devices in specific OUs to a CSV file. Open PowerShell as an Administrator and run this command: Get-ADComputer -SearchScope Subtree -SearchBase “OU=Room,OU=Building,OU=Staff,OU=Workstations,DC=Domain,DC=co,DC=uk” -Filter * -Properties Name | Export-Csv -Path “c:\Exported_Device_List.csv” You will need to specify the properties of the OU you want to export. The…
-
Jamf – Management Commands Stuck as Pending
If a device has pending commands in the Management tab type: sudo profiles renew -type enrollment This solves issues with configuration profiles and policies not falling down to devices. Once the command is executed you can run: sudo jamf recon This will then instantly reach for any policies or configuration profiles that are pending and…
-
PowerShell Script to Restart Multiple Computers
Here’s an example of a PowerShell script that can be used to restart multiple computers: Define the list of computers to restart (Parameters) $Computers = @(“Computer1”,“Computer2”,“Computer3”) Loop through each computer and restart it foreach ($Computer in $Computers) {Write-Host “Restarting computer: $Computer”Restart-Computer -ComputerName $Computer -Force} In this script, you need to define an array of computer…
-
PowerShell Script to Create a New User
Here’s an example of a PowerShell script that can be used to install a new user: Define the user details (Parameters) $Username = “newuser”$Password = ConvertTo-SecureString “P@ssw0rd” -AsPlainText -Force$FullName = “New User”$Description = “This is a new user account.” Create a new user New-LocalUser -Name $Username -Password $Password -FullName $FullName -Description $Description -NoPasswordExpiration Add the…
-
How to install and run Pentaho Desktop Applications
Prerequisites – Installation of Java JRE 1.8.0_361 and JDK-17.0.2 Firstly, you need to download the relevant desktop applications (Data Integration, Report Designer, Schema Workbench) and the server application from: https://www.hitachivantara.com/en-us/products/dataops-software/data-integration-analytics/pentaho-community-edition.html (Note: download the .zip versions of each application) Extract them to the desktop and copy them to a deployment share if you intend to deploy…
-
How to Deploy Unreal Engine
This document outlines the process of downloading and deploying Unreal Engine. This process outlines the steps you need to create the installer and the script required to deploy the software. Please be aware that the script requires editing depending on the version you extract. Note: I have used this process to deploy versions 4 and…
-
Update and Upgrade MacOS via Jamf Policies & Scripts
Apple releases OS updates periodically to fix bugs or strengthen the security of the released versions of the OS. Organizations prefer their devices to have the latest available OS. However, deploying OS updates can be a cumbersome task. This document provides two methods to update macOS devices; Update OS and OS upgrade via policies and…
-
AutoIT Application Deployment
This document outlines the process of creating and deploying a script using AutoIT. I use this software to automate application installers that do not install using the standard switches or require some form of user interaction at some point during the process. This software allows you to fully automate the install process but please note…
-
Build and Configure Chilipie Kiosk – Raspberry Pi
I tested this project on a Raspberry Pi 4 Model B. I use this as a kiosk to display webpages, search engines and home automation but with limited access to anything else. This tutorial provides a basic tutorial on how to get the Raspberry Pi setup with Chilipie and configure the basics. You can however…
-
Install ROS Kinetic for Ubuntu
This set of instructions is for installing ROS Kinetic. It was tested on Ubuntu 20.04. ROS Installation Configuration Setup your sources.list Installation of ROS There are even more packages available in ROS. You can always install a specific package directly. apt search ros-noetic Environment setup source /opt/ros/noetic/setup.bash It can be convenient to automatically source this…
-
How to Remotely Deploy Installation Files and Install Software using PowerShell
Please note that this works well with scripts that are simple, using basic command prompt switches. I have tested this using more complex scripts that utilise Auto_It and Java scripts but for this document I will keep it simple. Please note that in this tutorial I refer to sessions using %destination and $deployment. This is…
-
Get Computer Information from Remote PC
Open PowerShell as an Administrator and type in this command: Invoke-Command -ComputerName ‘%PC_NAME%’ -ScriptBlock { Get-ComputerInfo } This will output all the information relating to target computer in PowerShell. This is a basic command but powerful when doing diagnostics or troubleshooting network issues. If you want to view the information of multiple computers just run…
