MSFN Forum: Duplicated User Accounts - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Duplicated User Accounts Rate Topic: -----

#21 User is offline   gunsmokingman 

  • MSFN Addict
  • Group: Super Moderator
  • Posts: 1,991
  • Joined: 02-August 03
  • OS:none specified
  • Country: Country Flag

Posted 02 October 2005 - 12:11 PM

I do not know if this will help but here a VBS script that list all users
on a local computer. It will leave this UserList.txt in where it was ran from.

Quote

On Error Resume Next
Const HKEY_LOCAL_MACHINE = &H80000002 : Const Write = 2
Dim Fso : Set Fso = CreateObject("Scripting.FileSystemObject")
Dim Ts : Set Ts = Fso.OpenTextFile("UserList.txt", Write,True)
strComputer = "."
Set objRegistry=GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
objRegistry.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubkeys
For Each objSubkey In arrSubkeys
    strValueName = "ProfileImagePath"
    strSubPath = strKeyPath & "\" & objSubkey
    objRegistry.GetExpandedStringValue HKEY_LOCAL_MACHINE,strSubPath,strValueName,strValue
    Ts.WriteLine strValue
Next

Ts.close



#22 User is offline   Schmitty 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 12-September 04

Posted 05 December 2005 - 08:44 PM

How do you set the silent parameter when using UserProfileChecker.cmd?

#23 User is offline   esas 

  • Newbie
  • Group: Members
  • Posts: 20
  • Joined: 07-February 05

Posted 06 December 2005 - 06:39 AM

Hey!

It's been a while since I used this stuff, so I don't remember everything about it.

I'm posting the last file I made. You don't need all the extra files anymore, since they are al compiled into this new one.

To run the script silent just run "UPC.exe SILENT"

I think I have to start working on this again after reading the new posts..

Attached File(s)

  • Attached File  UPC.rar (114.83K)
    Number of downloads: 106


#24 User is offline   `Felix` 

  • MSFN Contributor
  • PipPipPip
  • Group: Members
  • Posts: 481
  • Joined: 28-July 04

Posted 06 December 2005 - 08:36 PM

View Postesas, on Dec 6 2005, 08:39 PM, said:

Hey!

It's been a while since I used this stuff, so I don't remember everything about it.

I'm posting the last file I made. You don't need all the extra files anymore, since they are al compiled into this new one.

To run the script silent just run "UPC.exe SILENT"

I think I have to start working on this again after reading the new posts..


Goodone esas - the only thing i notice is that when you run it (without the silient option) that it tell you there is "Duplicate user profile detected" even when there is not. Other than that looks good - I noticed you cleaned up the code as well - well done :D

#25 User is offline   Schmitty 

  • Newbie
  • Group: Members
  • Posts: 13
  • Joined: 12-September 04

Posted 14 December 2005 - 06:31 PM

View Postesas, on Dec 6 2005, 06:39 AM, said:

Hey!

It's been a while since I used this stuff, so I don't remember everything about it.

I'm posting the last file I made. You don't need all the extra files anymore, since they are al compiled into this new one.

To run the script silent just run "UPC.exe SILENT"

I think I have to start working on this again after reading the new posts..

Hi Esas,

I would like to know if this will work on machines which don't have the user profiles set at the default location of Documents & Settings, as mine uses a path of C:\Users or %systemdrive%\Users (basically the same path).

And, is the silent parameter supposed to restart the machine automatically? I tried running the new exe but it didn't even attempt to restart.

#26 User is offline   ccc 

  • Newbie
  • Group: Members
  • Posts: 26
  • Joined: 05-October 05

Posted 18 November 2006 - 08:34 AM

I realize this is an old thread.
But if any of the experts here are still around, could you please help out on this thread:
http://www.msfn.org/...showtopic=86965
Thanks.

Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy