Ben Benavides
  • Home
  • Author
  • About
Subscribe
Tagged

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(

  • Benjamin Benavides
Benjamin Benavides Dec 9, 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 #Use

  • Benjamin Benavides
Benjamin Benavides Aug 31, 2022 • 1 min read
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 ComputerNameBitLocker Drive Encryption #How

  • Benjamin Benavides
Benjamin Benavides Jul 6, 2022 • 1 min read
PowerShell

Simple PowerShell Concepts

PowerShell variables always start with the dollar sign ($) character. $myVariable = 1

  • Benjamin Benavides
Benjamin Benavides Jul 6, 2022 • 1 min read
Ben Benavides © 2025
Powered by Ghost