![]() |
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... |
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 |
solution
Citiraj:
Citiraj:
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 |
Može se taj pasvord setirati. Inače, ako si se "izbacio" s domene, samo te domenski admin može vratit na nju.
|
Citiraj:
sinoc u Ksetu su bili AJS NIGRUTIN i TIMBE, bilo je vrlo dobro :) |
Citiraj:
Citiraj:
|
Citiraj:
' 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