you can write a vb script to do this
strComputer ="computername"
Set objGroup = GetObject("WinNT://" & strComputer & "/Administrators,group")
Set objUser = GetObject("WinNT://domain/groupname, group")
objGroup.Add(objUser.ADsPath)
this is not a login script ,you can execute it with the domain...
my fileserver is a cluster, all files are shared on one network disk matrix, when their computer joined the domain ,the network drive will map to their local computer,the domain users can access the file directly ,but if they dont join their computer in the domain ,they can access the shared...
how to prevent domain user from accessing the fileserver with the non domain computer!
in my company ,some users dont join their computers in the domain ,but they can access the fileserver with the domain users ,how to prevent it ? how to make them can't access the fileserver
hello!
i want to show a shared folder's security attribute ,such as who can read the file in which folder;
who can write the a new file into the folder ;who can have the complete control;
can i do this with the vbscrip ,my boss want me to write a program to control the shared folders
how can i install a software on the domain computer whit a .exe file ,can i use the policy to do this ,i try to write a startup script but it cannt run ,my script likes this, where errores.
set WshShell = CreateObject("WScript.Shell")
WshShell.run "runas /user:sins\installer ""cmd /c...
I want to install a .exe file in the domain ,so i want to use the runas to give the privilege and install,
my program is following
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "D:\setup\msi_PCAlert4073\Setup.exe -s -f1D:\setup\msi_PCAlert4073\setup.iss"
but it does not...
Hello tsuji,
thank you very much!
i have read the page ,but i canot learn very much ,if i want to draw a line or curve ,how can i do !
i know if i use the vs c++ it is very easy ,but my boss let me do it with vbscripting .
thanks.
hello mrmovie
you have learn my ideal,now i have rewrite like as but i think it does well ,i want to improve it efficiently
'delete all group the user belong to except the Domain Users and Admins
For Each oGroup In oUser.groups
if ( oGroup.name <> "CN=Domain Users" and...
set oUser=GetObject("LDAP://cn=s040695"_
& ",ou=TestsinomosAccounts,dc=testsinomos,dc=com")
Set oDomain = GetObject("WinNT://testsinomos")
'make sure the user have not belonged to the group
For Each oGroup In oUser.groups
if ( oGroup.name <> "Domain Users" and
oGroup.name...
set oDomain = GetObject("WinNT://testsinomos")
set oUser =oDomain.GetObject("User","s040695")
'wscript.echo err.number
oUser.put "title", "stitle"
oUser.setinfo
warning the line 4 have a error , but when i try with the echo err.number it returns 0,what errors ?
whether the winnt are the same...
i want to add a user to a group, when i get the user ,can i use the "memberof" to add it to the group ,which it belong to , can i use the putex method .when i try ,warning me it dont like to deal with it .i dont know how to do ,whether it can do
thanks
when i want to disable the administrator on local system ,how can i do
Dim sComputer, sUser, oUser, sDSPath
Dim sNewPass
sUser = "Administrator"
sNewPass = "521013"
sComputer = "."
sDSPath = "WinNT://" & sComputer & "/" & sUser & ",user"
Set oUser = GetObject(sDSPath)...
when i create a filefolder with a vbscript , the default owner is the man who creates it and the administrator .
i want to add a new owner and give it some privilege. how can i do?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.