All posts by Sysop

Reset the DSRM Administrator Password

  1. Click, Start, click Run, type ntdsutil, and then click OK.
  2. At the Ntdsutil command prompt, type set dsrm password.
  3. At the DSRM command prompt, type one of the following lines:
    • To reset the password on the server on which you are working, type reset password on server null. The null variable assumes that the DSRM password is being reset on the local computer. Type the new password when you are prompted. Note that no characters appear while you type the password.
    • -or-

    • To reset the password for another server, type reset password on server servername, where servername is the DNS name for the server on which you are resetting the DSRM password. Type the new password when you are prompted. Note that no characters appear while you type the password.
  4. At the DSRM command prompt, type q.
  5. At the Ntdsutil command prompt, type q to exit.

Factory Reset an Avaya 1608 Handset

To factory reset an Avaya 1608 Handset you will need to do the following:

  1. Reboot the phone
  2. When the display shows “Press * to Program”, press *
  3. Repeatedly press # until the message “Enter Command” appear.
  4. Press the Mute key followed by 25327#.
  5. The display will show “Clear all values” *=no #=yes
  6. Press #
  7. The display will show “Are you sure?” *=no #=yes
  8. Press # and the phone will reboot back up in factory default.

Update Profile Path for filtered users

$users = Get-aduser -filter 'profilepath -like "*oldservername*"'
foreach ($user in $users) {
# The line below returns the profilepath as a STRING with no headers
$profilepath = get-aduser $user -properties profilepath | foreach {$_.ProfilePath}
$newprofilepath = $profilepath -replace "oldservername", "domain.local\Data"
set-aduser $user -profilepath $newprofilepath
}

Getting fields from multiple Powershell Commands

—Single User—
$Mailbox = Get-MailBox "Joe Bloggs"
Get-mailboxstatistics "Joe Bloggs" | ft DisplayName,TotalItemSize,StorageLimitStatus,@{name = 'IssueWarningQuota';expression = {$Mailbox.IssueWarningQuota}},@{name = 'ProhibitSendQuota';expression = {$Mailbox.ProhibitSendQuota}},@{name = 'ProhibitSendRecieveQuote';expression = {$Mailbox.ProhibitSendRecieveQuota}}

—All Users—
$Mailbox = (Get-MailBox *)
foreach ($i in $Mailbox) {Get-mailboxstatistics $i.Name | ft DisplayName,TotalItemSize,StorageLimitStatus,@{name = 'IssueWarningQuota';expression = {$i.IssueWarningQuota}},@{name = 'ProhibitSendQuota';expression = {$i.ProhibitSendQuota}},@{name = 'ProhibitSendRecieveQuote';expression = {$i.ProhibitSendRecieveQuota}} }

—All Users Filtered—
$Mailbox = (Get-MailBox *)
foreach ($i in $Mailbox) {Get-mailboxstatistics $i.SAMAccountName | where {$_.StorageLimitStatus -ne "BelowLimit"} |ft DisplayName,TotalItemSize,StorageLimitStatus,@{name = 'IssueWarningQuota';expression = {$i.IssueWarningQuota}},@{name = 'ProhibitSendQuota';expression = {$i.ProhibitSendQuota}},@{name = 'ProhibitSendRecieveQuota';expression = {$i.ProhibitSendRecieveQuota}} }

—Tidy up formatting—
$Mailbox = (Get-MailBox *)
foreach ($i in $Mailbox) {
$info +=@(Get-mailboxstatistics $i.SAMAccountName | where {$_.StorageLimitStatus -ne "BelowLimit"} |select-object DisplayName,TotalItemSize,StorageLimitStatus,@{name = 'IssueWarningQuota';expression = {$i.IssueWarningQuota}},@{name = 'ProhibitSendQuota';expression = {$i.ProhibitSendQuota}},@{name = 'ProhibitSendRecieveQuota';expression = {$i.ProhibitSendRecieveQuota}} )
}
$info | ft -autosize

Group Policy Preferences – File and Folder Variables

When in Group Policy Preferences and trying to set up a folder or file policy. Press F3 for a list of environmental preferences. Helpfully though one of the most common ones – %DesktopDir%, works fine on Windows 8.1 but not on 7, for Windows 7 user %userprofile%\Desktop\[filename]