PC Ekspert Forum

PC Ekspert Forum (https://forum.pcekspert.com/index.php)
-   Mreže (https://forum.pcekspert.com/forumdisplay.php?f=16)
-   -   Domain vs. Workgroup (https://forum.pcekspert.com/showthread.php?t=36991)

refa 05.04.2006. 02:01

Domain vs. Workgroup
 
Mreža je složena tako da je 10ak PC-a (WXP) spojeno na nju i to preko domene, user profile se snima na server (Unix, na koji nažalost nemam pristup), tako da se bilo koji user profile može podignuti sa bilo kojeg PC-a.
I sada sam se htio spojiti preko Workgroup-e sa jednim PC-em koji nije umrežen i nakon što sam pod System Properties -> Computer Name -> Change promjenio "Member of -> Domain -> 321" u "Member of -> Worgroup -> 123", povezao se kabelom i resetirao PC, traži me nepostojeći password kod ulaska u Windowse. Stari password koji sam koristio kod spajanja na domenu ne radi. Okej, dobro, ne radi, ajmo natrag! Ali i kada se kabelom spojim natrag na staru mrežu, Windows-i me traže isti! (što je i normalno jer je u Windows-ima ostalo da se spaja na Workgroup: 123). Prije sam kod logiranja osim Textbox-ova za Username i Password imao i Dropbox za domenu sa nazivom domene 123. Sada to nemam i apsolutno nemam pristup tome PC-u...
Nadam se da razumjete moj problem i imate riješenje za isti...

MasterX 05.04.2006. 12:31

jel to privatna mreza ili neka firma?

jel svako ima svoj kompjuter, ili sjedne ko gdje stigne...
cini mi se da domena u ovom slucaju (10 klijenata) bas i nema previse smisla

refa 05.04.2006. 14:01

solution
 
Citiraj:

Autor MasterX
jel to privatna mreza ili neka firma?

firma...

Citiraj:

Autor MasterX
jel svako ima svoj kompjuter, ili sjedne ko gdje stigne...
cini mi se da domena u ovom slucaju (10 klijenata) bas i nema previse smisla

svatko sjedi na svome mjestu, a što se tiče broja klijenata falio sam tipku, trebalo je pisati 40ak... sad domena ima više smisla, jel?

A što se tiče moga problema, riješio sam ga. Provalio sam da je username za log na workgrupu Administrator, a passworda nema. Totalana nebuloza jer se taj password nigdje ne može setirati...

Btw, MasterX, ludilo sig, prti do smrti

Rivi 07.04.2006. 07:34

Može se taj pasvord setirati. Inače, ako si se "izbacio" s domene, samo te domenski admin može vratit na nju.

MasterX 07.04.2006. 08:47

Citiraj:

Autor refa
prti do smrti

veceras je u BG-u koncert PRTI BEE GEE-a u cast Moksri-a
sinoc u Ksetu su bili AJS NIGRUTIN i TIMBE, bilo je vrlo dobro :)

refa 07.04.2006. 14:47

Citiraj:

Autor Rivi
Može se taj pasvord setirati.

ma može, znam da može, ali mi na kraj pameti nije bilo da su windowsi kreirali taj account. I odmah nakon promjene s domene na workgrupu resetirao sam računalo i poslije nikako ući u windowse da provjerim stvari sa account-om...

Citiraj:

Autor Rivi
Inače, ako si se "izbacio" s domene, samo te domenski admin može vratit na nju.

of course, ali sve to tek nakon logiranja na workgrupu...

Cataphract 10.04.2006. 09:34

Citiraj:

Autor refa
ma može, znam da može, ali mi na kraj pameti nije bilo da su windowsi kreirali taj account. I odmah nakon promjene s domene na workgrupu resetirao sam računalo i poslije nikako ući u windowse da provjerim stvari sa account-om...

Administrator account windowsi kreiraju odmah po instalaciji, ne kužim što je tu nejasno. :confused: password mu možeš podesiti ili ručno prilikom instalacije ili jednostavnom skriptom. dok je nisam našao lokalni administratori su imali 4 različite šifre pa sam morao pogađati. mrak stvar. :D

' This script can be used to change the password for local users on several NT workstations or
' NT servers. It requires that the the account used to submit this script has the rights to
' change local passwords (typically, a member of the Domain Admins group will have this right)
' The script requires Windows Scripting Host and ADSI installed on the computer used to run it.
' Both can be downloaded for free from Microsoft or other scripting sites.
' The script is using a list of computers as input file that has to be created by the admnistrator.
' The list of computers has to look something like:
'
' computer1
' computer2
' ...
'
' An example of computer list is shipped with this script (computers.txt).
' If for some reason, one of the computers could not be accessed by the script, it will be saved in
' another file for later submission
'
' The script will output a confirmation of the password change to the screen or a warning
' message if the computer could not be contacted. DO NOT double click on the script or use wscript
' to lunch it unless you want a confirmation of each password change to pop-up on the screen.
' Instead, use "cscript setpass.vbs" command.

' The names of the files, user id and new password have to be initialized (see below)

On Error Resume Next
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Dim fso, fsox, fx
Dim inputFile, outputFile, computerIndex, myComputer,myUser, usr, mDSPath

' set inputFile to match the name of the text file with the list of computers to be changed
' set outputFile to match the name of the text file that will contain the names of the
' computers that could not be accessed by the script (like powered off)
' later, this file can be used as inputFile to reissue the password change to the computers that
' were not available initially
' set myUser to the name of the local account that needs to have the password changed
' set newPassword to the new password for the user
inputFile = "computers.txt"
outputFile = "computers_na.txt"
myUser = "Administrator"
newPassword = "LOZINKA"

' Windows Scripting Host object are created for the two files used in this script
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(inputFile, ForReading, True)
Set fsox = CreateObject("Scripting.FileSystemObject")
Set fx = fsox.OpenTextFile(outputFile, ForWriting, True)

' The following variable will be used to list the number of computers processed at
' any time
computerIndex = 1

' For each computer in the computer list....
Do While f.AtEndOfLine <> True
myComputer = f.ReadLine
' An ADSI object is linked to the local user for the current computer
mDSPath = "WinNT://" & myComputer & "/" & myUser & ",user"
Set usr = GetObject(mDSPath)
If Err Then
' If the connection is not successful (computer off line or user doesn't exist) an entry
' is made in the outputFile with the computer name....
fx.WriteLine(myComputer)
' Comment out the next line if no output on the screen is required
WScript.Echo CStr(computerIndex) & ". " & myComputer & " could not be contacted"
Err.Clear
Else
' If the connection is successful, the user password is set to the new one
' and a confirmation is displayed on the screen
usr.SetPassword newPassword
' Comment out the next line if no output on the screen is required
WScript.Echo CStr(computerIndex) & ".User: " & myComputer & "\" & myUser & ": password changed"
End If
' The index is incremented
computerIndex = computerIndex + 1
Loop
' All files are closed
f.Close
fx.Close


pejstaš u txt dokument i preimenuješ ga u nešto.vbs.


Sva vremena su GMT +2. Sada je 17:09.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 1999-2024 PC Ekspert - Sva prava pridržana ISSN 1334-2940
Ad Management by RedTyger