Click here to Skip to main content
15,878,809 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Nelek28-Oct-20 8:21
protectorNelek28-Oct-20 8:21 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
raddevus28-Oct-20 8:33
mvaraddevus28-Oct-20 8:33 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Nelek28-Oct-20 9:20
protectorNelek28-Oct-20 9:20 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
raddevus28-Oct-20 9:23
mvaraddevus28-Oct-20 9:23 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Nelek28-Oct-20 9:34
protectorNelek28-Oct-20 9:34 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
kmoorevs28-Oct-20 8:44
kmoorevs28-Oct-20 8:44 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Nelek28-Oct-20 9:27
protectorNelek28-Oct-20 9:27 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
rnbergren28-Oct-20 8:44
rnbergren28-Oct-20 8:44 
#hmm, run some powershell.
$user = "betyacan'tguess"
$current = "J#LOLNope"
$newone = "StillN)pe"
$domain="myown"
$current

$domainname = $domain + ".com"
$dc = (Get-ADDomainController -DomainName $domainname -Discover -NextClosestSite).HostName
$aduser = get-aduser -Identity $user -Server "$dc" –Properties *
$userdn = "LDAP://" + $aduser.DistinguishedName

#$aduserexpire = get-aduser -Identity $user -Server "$dc" –Properties “DisplayName”, “msDS-UserPasswordExpiryTimeComputed” | Select-Object -Property “Displayname”,@{Name=“ExpiryDate”;Expression={[datetime]::FromFileTime($_.“msDS-UserPasswordExpiryTimeComputed”)}}
$lngValue = $aduser.accountExpires
If (($lngValue -eq 0) -or ($lngValue -gt [DateTime]::MaxValue.Ticks)) {
$AcctExpires = "<never>"
} Else {
$Date = [DateTime]$lngValue
$AcctExpires = $Date.AddYears(1600).ToLocalTime()
}

$AcctExpires
$aduser.AccountLockoutTime

#1
Write-Output "pw1"
([ADSI]$userdn).ChangePassword($current,$newone)
([ADSI]$userdn).SetInfo()
Start-Sleep -m 500 -Verbose
#but I didn't send this to you
To err is human to really mess up you need a computer

GeneralRe: Win10 & RDP / VM Desktop reset password Pin
raddevus28-Oct-20 8:56
mvaraddevus28-Oct-20 8:56 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
rnbergren28-Oct-20 9:02
rnbergren28-Oct-20 9:02 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Oleg A.Lukin28-Oct-20 20:42
Oleg A.Lukin28-Oct-20 20:42 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
raddevus29-Oct-20 3:29
mvaraddevus29-Oct-20 3:29 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
MikeD 229-Oct-20 6:34
MikeD 229-Oct-20 6:34 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
Peter Adam30-Oct-20 8:49
professionalPeter Adam30-Oct-20 8:49 
GeneralRe: Win10 & RDP / VM Desktop reset password Pin
raddevus30-Oct-20 9:45
mvaraddevus30-Oct-20 9:45 
GeneralOi! PompeyBoy! Pin
OriginalGriff28-Oct-20 7:31
mveOriginalGriff28-Oct-20 7:31 
GeneralRe: Oi! PompeyBoy! Pin
Rage28-Oct-20 21:17
professionalRage28-Oct-20 21:17 
GeneralRe: Oi! PompeyBoy! Pin
OriginalGriff28-Oct-20 21:49
mveOriginalGriff28-Oct-20 21:49 
GeneralRe: Oi! PompeyBoy! Pin
Rage29-Oct-20 0:38
professionalRage29-Oct-20 0:38 
GeneralRe: Oi! PompeyBoy! Pin
OriginalGriff29-Oct-20 1:19
mveOriginalGriff29-Oct-20 1:19 
GeneralRe: Oi! PompeyBoy! Pin
Rage29-Oct-20 1:44
professionalRage29-Oct-20 1:44 
GeneralRe: Oi! PompeyBoy! Pin
Sandeep Mewara28-Oct-20 21:47
mveSandeep Mewara28-Oct-20 21:47 
GeneralThought of the Day Pin
OriginalGriff28-Oct-20 5:32
mveOriginalGriff28-Oct-20 5:32 
GeneralRe: Thought of the Day Pin
MarkTJohnson28-Oct-20 5:33
professionalMarkTJohnson28-Oct-20 5:33 
GeneralRe: Thought of the Day Pin
PIEBALDconsult28-Oct-20 5:39
mvePIEBALDconsult28-Oct-20 5:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.