Delete Local User Profiles Remotely using a PowerShell Script (DelProf2.exe)

In this post we are going to look at utilizing a tool called DelProf and a small PowerShell script to delete user profiles on workstations remotely. First we need to download the tool, it's just one executable file that can be found here The reason for using DelProf2.exe over the syntax's Remove-Item or leveraging WMI … Continue reading Delete Local User Profiles Remotely using a PowerShell Script (DelProf2.exe)

Restore AD Objects and Users using PowerShell

In this post we are going to look at the different ways you can restore Active Directory objects, such as User Accounts, Groups, Computers and OUs using Restore-ADObject in PowerShell. View Deleted Objects: Firstly this command will show you a list of all deleted objects: Get-ADObject -Filter 'isDeleted -eq $True -and name -ne "Deleted Objects"' … Continue reading Restore AD Objects and Users using PowerShell

Remove and automatically Re-add Computers from the Domain using PowerShell scripts

In this post we're going to look at removing and then automatically re-adding a workstation from the domain using PowerShell scripts and a batch file. **Bare in mind - the script may not be the best first step for troubleshooting a computer falling off the domain or a trust issue. 'test-computersecurechannel -repair' would be a … Continue reading Remove and automatically Re-add Computers from the Domain using PowerShell scripts

Server Setup PowerShell Script

In this post we will be looking at creating a simple Power Shell setup script for the initial configuration of a newly imaged server. What the script does: The script takes you through the process of easily imputing your chosen configurations for the settings listed below: Sets IPV4 Network Adapter Settings [optional] Enable Remote Desktop [optional] … Continue reading Server Setup PowerShell Script