I recently started using ConEmu since I wanted to be able to have tabbed PowerShell consoles. In an effort to become more proficient with it I’ve forced myself to try not to do anything outside of a PowerShell window. At my current employer I’m a Jack of All Trade SysAdmin. For me this means I…
Created on: 9/23/2014 11:07 AM
Created by: Cole Lavallee
A description of the file.
$newpwd = ConvertTo-SecureString -String 'p@ssw0rd' -AsPlainText -Force
#Import users from CSV
$users = Get-Content "C:\Scripts\users.csv"
#For each user in users: Pull in the users from the CSV then enable the account. Change the password to the password above and force to change password on next login.
foreach ($user in $users)
Get-ADUser $user | Enable-ADAccount
Set-ADAccountPassword -Identity $user -NewPassword $newpwd -Reset -PassThru | Set-ADUser -ChangePasswordAtLogon $true
A week ago, I received a phone call from both my manager and a coworker at 8PM on a Sunday. Something was changing all of our Solaris system’s hostnames to -f. My coworker had fixed all those boxes and shortly after – it happened two more times. At this point we’re at a complete loss…
I wrote this script to help streamline the process of terminating an employee at work. I’m still certainly learning Powershell, but this definitely scratched an itch at $job. The only thing you will need to change to run it is the path to the OU. You will also need a Log folder on your C:\…
I ran into this error today when I reformatted my laptop to install Fedora 20. I installed VMware Player, however whenever I went to launch it I received a vmnet build error: vthread-3| W110: Failed to build vmnet. Failed to execute the build command. On kernels 3.13 that have enabled the network packet filtering framework (Netfilter)…