Ben Benavides
  • Home
  • Author
  • About

PowerShell

A collection of 4 posts
PowerShell

Stop and Disable a Service - PowerShell

This script/function will list all the services using Grid-View and allow you to select one to stop and disable it. function DisableStopServ($tService){ #The object will be loaded from the variable passed to it. #Check to see if the target service is running and try to stop it. if(
09 Dec 2022 1 min read
PowerShell

Re-Save the BitLocker key of a Local or Remote PC to AD

Remote PC #Remember to save this file as a .ps1 PowerShell script for easy access. #Create cmpName variable and prompt for computer name $CmpName = Read-Host -Prompt 'Enter Computer Name: ' #create a variable to store the contents of the protectors / keys available $currentProtectors = manage-bde -protectors C: -cn $CmpName -get
31 Aug 2022
PowerShell

PowerShell Scripts and One-Liners

Posted here will be some super short and useful scripts to gather info or do basic tasks. Windows Updates #How to get a list of installed updates from the local computer. get-hotfix #How to get a list of installed updates from a remote computer. get-hotfix -cn ComputerName BitLocker Drive Encryption
06 Jul 2022 1 min read
PowerShell

Simple PowerShell Concepts

PowerShell variables always start with the dollar sign ($) character. $myVariable = 1
06 Jul 2022
Page 1 of 1
Ben Benavides © 2025
Powered by Ghost