Skip to content

Instantly share code, notes, and snippets.

View varunchopra's full-sized avatar

Varun Chopra varunchopra

View GitHub Profile
@Benedikt1992
Benedikt1992 / sven-ola.list
Created November 11, 2015 19:59
Debian-Kit updated repository for andromize and other packages
deb http://sven-ola.commando.de/repo/ wheezy main
deb-src http://sven-ola.commando.de/repo/ wheezy main
@ducas
ducas / Create-Administrator.ps1
Last active January 15, 2025 08:20
Create a local administrator account using PowerShell
$Username = "su"
$Password = "password"
$group = "Administrators"
$adsi = [ADSI]"WinNT://$env:COMPUTERNAME"
$existing = $adsi.Children | where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username }
if ($existing -eq $null) {