Over 1 million tech questions and answers.

add new user script w/flat file

Q: add new user script w/flat file

Hello all, I'm trying to find a script that will allow me to create new users in a new AD including assign them to OU/groups and, if possible, assign permissions to specific shares using a flat file. Has anyone seen something or can help me piece something together?

I've got over 70 users in approximately 15 different groups that I need to add to a new domain and well over 40 shares.

Thank you

RELEVANCY SCORE 200
Preferred Solution: add new user script w/flat file

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: add new user script w/flat file

I have only seen one that would add new users over at www.swynk.com.

What I have seen is in the 2000 Server Resource kit are a few utilities that can do most of this. The ADDUSERS.EXE utility and the USRTOGRP.EXE utility.

The first adds users based on a comma seperated file and the other uses a file to add users to groups.

The third utility is called RMTSHARE.EXE. It can be used to add, delete or modify a share, including setting permissions.

Read other 1 answers
RELEVANCY SCORE 59.2

Hi all.
I would like to know how to map a network drive using a different user name and password within a script file. I would like it written as a .cmd file if possible.

Reason for doing this is because we have a user how needs to connect to a mapped network drive as the administrator but we do not want to disclose the admin password to him.
 

A:mapping network drive with dif user & password as a script file

Look at the help for net use.

/persistent (Map this drive everytimg they login)
/savecred (save the credentials. ie. username and password)
 

Read other 1 answers
RELEVANCY SCORE 51.6

The following pop up error message appears when I try to double-click on an external drive from My Computer:Windows Script HostCan not find script file "H:/FS6519.dll.vbs"I have posted my hijack this log. Any help would do, thank you.Logfile of Trend Micro HijackThis v2.0.2Scan saved at 3:51:43 PM, on 2/2/2008Platform: Windows XP SP2 (WinNT 5.01.2600)MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180)Boot mode: NormalRunning processes:C:\WINDOWS\System32\smss.exeC:\WINDOWS\SYSTEM32\winlogon.exeC:\WINDOWS\system32\services.exeC:\WINDOWS\system32\lsass.exeC:\WINDOWS\system32\svchost.exeC:\WINDOWS\System32\svchost.exeC:\WINDOWS\Explorer.EXEC:\WINDOWS\system32\spoolsv.exeC:\WINDOWS\SOUNDMAN.EXEC:\Program Files\Thomson\SpeedTouch USB\Dragdiag.exeC:\Program Files\Common Files\InstallShield\UpdateService\issch.exeC:\Program Files\Java\jre1.6.0_03\bin\jusched.exeC:\Program Files\iTunes\iTunesHelper.exeC:\Program Files\Yahoo!\Yahoo! Music Jukebox\ymetray.exeC:\Program Files\Last.fm\LastFMHelper.exeC:\Program Files\Yahoo!\Messenger\ymsgr_tray.exeC:\Program Files\Common Files\Apple\Mobile Device Support\bin\AppleMobileDeviceService.exeC:\Program Files\Alcohol Soft�... Read more

A:Displays Error: Windows Script Host, Can Not Find Script File "h:/fs6519.dll.vbs"

Welcome to the BleepingComputer HijackThis Logs and Analysis forum. My name is Richie and i'll be helping you to fix your problems.Apologies for the late response,as i'm sure you can appreciate we are extremely busy.If you've already recieved help at another forum and your issues have been resolved,or you're presently recieving help elsewhere then please let us know.If you have not followed the info in the link below prior to posting your log then please do so now:Preparation Guide for use before posting a HijackThis Log:http://www.bleepingcomputer.com/forums/t/34773/preparation-guide-for-use-before-using-malware-removal-tools-and-requesting-help/If you still require help,please post a new Hijackthis log into this topic in your next reply.Also post a detailed description of the issues you're experiencing.*Note*Post all reports/logs directly into this topic,not as attachments,thanks.

Read other 1 answers
RELEVANCY SCORE 51.6

I already tried to scan my computer with avg anti-spyware but i can't save the report. I also tried panda to scan my computer but it won't push through with the scan, i don't know why. the only log file i can give is from hijackthis.exe program. please please please help me regarding my present situation. Attached is my log file with hijackthis program:

Logfile of HijackThis v1.99.1
Scan saved at 3:06:06 PM, on 4/3/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v7.00 (7.00.6000.16414)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Windows Defender\MsMpEng.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\Intel\Wireless\Bin\EvtEng.exe
C:\WINDOWS\Explorer.EXE
C:\Program Files\Intel\Wireless\Bin\S24EvMon.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Grisoft\AVG Anti-Spyware 7.5\guard.exe
C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe
C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe
C:\PROGRA~1\Grisoft\AVG7\avgemc.exe
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\MDM.EXE
C:\Program Files\Intel\Wireless\Bin\RegSrvc.exe
C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Viewpoint\Common\ViewpointService.exe
C:\Program Files\Analog Devices\SoundMAX\SMTray.exe
C:\PROGRA~1\Grisoft\AVG7\avgcc.exe
C:\Program Files\Grisoft\AVG Anti-Spyware 7.5\avgas.exe... Read more

A:I HAVE THE SAME PROBLEM...Windows Script Host:Can not find script file C:\autorun.vbs

Cookigal, I already tried to scan my computer with avg anti-spyware but i can't save the report. I also tried panda to scan my computer but it won't push through with the scan, i don't know why. the only log file i can give is from hijackthis.exe program. please please please help me regarding my present situation thanks....

Attached is my log file with hijackthis program:

Logfile of HijackThis v1.99.1
Scan saved at 3:06:06 PM, on 4/3/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v7.00 (7.00.6000.16414)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Windows Defender\MsMpEng.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\Intel\Wireless\Bin\EvtEng.exe
C:\WINDOWS\Explorer.EXE
C:\Program Files\Intel\Wireless\Bin\S24EvMon.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Grisoft\AVG Anti-Spyware 7.5\guard.exe
C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe
C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe
C:\PROGRA~1\Grisoft\AVG7\avgemc.exe
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\MDM.EXE
C:\Program Files\Intel\Wireless\Bin\RegSrvc.exe
C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Viewpoint\Common\ViewpointService.exe
C:\Program Files\Analog Devices\SoundMAX\SMTray.exe
C:\PROGRA~1\Grisoft\AVG7\avgcc.exe
C:\Program Files\Grisoft\AVG Anti-... Read more

Read other 1 answers
RELEVANCY SCORE 51.6

Cookigal, I already tried to scan my computer with avg anti-spyware but i can't save the report. I also tried panda to scan my computer but it won't push through with the scan, i don't know why. the only log file i can give is from hijackthis.exe program. please please please help me regarding my present situation thanks....

Attached is my log file with hijackthis program:

Logfile of HijackThis v1.99.1
Scan saved at 3:06:06 PM, on 4/3/2007
Platform: Windows XP SP2 (WinNT 5.01.2600)
MSIE: Internet Explorer v7.00 (7.00.6000.16414)

Running processes:
C:\WINDOWS\System32\smss.exe
C:\WINDOWS\system32\winlogon.exe
C:\WINDOWS\system32\services.exe
C:\WINDOWS\system32\lsass.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Windows Defender\MsMpEng.exe
C:\WINDOWS\System32\svchost.exe
C:\Program Files\Intel\Wireless\Bin\EvtEng.exe
C:\WINDOWS\Explorer.EXE
C:\Program Files\Intel\Wireless\Bin\S24EvMon.exe
C:\WINDOWS\system32\spoolsv.exe
C:\Program Files\Grisoft\AVG Anti-Spyware 7.5\guard.exe
C:\PROGRA~1\Grisoft\AVG7\avgamsvr.exe
C:\PROGRA~1\Grisoft\AVG7\avgupsvc.exe
C:\PROGRA~1\Grisoft\AVG7\avgemc.exe
C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\MDM.EXE
C:\Program Files\Intel\Wireless\Bin\RegSrvc.exe
C:\Program Files\Analog Devices\SoundMAX\SMAgent.exe
C:\WINDOWS\system32\svchost.exe
C:\Program Files\Viewpoint\Common\ViewpointService.exe
C:\Program Files\Analog Devices\SoundMAX\SMTray.exe
C:\PROGRA~1\Grisoft\AVG7\avgcc.exe
C:\Program Files\Grisoft\AVG Anti-... Read more

A:Windows Script Host: Can not find script file c:\autorun.vbs

this is the 3rd post about the same problem

you will not get faster help tagging on to other threads or continually posting

other posts here
http://forums.techguy.org/security/557813-i-have-same-problem-windows.html

someone will get round to helping you. Just wait your turn
 

Read other 1 answers
RELEVANCY SCORE 50.8

Hello & Thanks ,
win7 x64
Starting yesterday , I keep getting the following message:
Windows Script Host
Can not find script file "C:\ProgramData\{95137DD0-C591-AC56-7417-DCD4A4950F5A}\2.0.1.9\lare.txt".
Any idea why and how to fix it ?
Thanks/
...Vern

Tags: win7 x64, mobiles game, ringtones download

A:Windows Script Host: Can not find script file ?

Try a System Restore to a date prior to the issue - System Restore

Read other 1 answers
RELEVANCY SCORE 50.8

You will not have to pay like you used to pay brokers, you will only pay a small amount to the website and get listed. 2 bhk, 3 bhk, flat in delhi, flat in noida, house in delhi, real estate delhi etc. To save your time and money you can list your website on 36 estates. They provide a free listing to buy, sell and rent a property. One can sale, residential as well as commercial property on 36 estates free.
 

Read other answers
RELEVANCY SCORE 50

Hi all,

We use www.wildapricot.com for our school, and each record represents one family. Each family may have multiple students, so when we export the file we get a big flat file with one line per family and up to 6 students per family (but not all families have 6 students, of course).

Likewise, when we have an event and want to know who's coming, the downloaded file we get has one line per family, and up to X number of attendees (could be greater than six). The shape of the flat file depends on the fields we set-up in the registration form. The student data may be sandwiched between other common family data, such as family name, home phone, mom's cell phone, whatever.

What I'd like is an Excel macro that asks how many students/attendees, what column the first student/attendee lives on, and what column the second studnet/attendee lives on, and then crunches the data down so that all of the common data is repeated, but the rows for the unique student/attendee are not repeated, and we end-up with one row per studnet/attendee.

For example...

1: name1, phone1, student1.1, student1.1_age, student1.2, student1.2_age... student1.x, student1.x_age, momcell1, totalcost1, etc.
2: name2, phone2, student2.1, student2.1_age, student2.2, student2.2_age... student2.x, student2.x_age, momcell2, totalcost2, etc.
...
y: nameY, phoneY, studentY.1, studentY.1_age, studentY.2, studentY.2_age... studentY.x, studentY.x_age, momcellY, totalcostY, etc.

Turns into this...

1: na... Read more

A:Big flat file conversion macro

Read other 7 answers
RELEVANCY SCORE 50

I need to log into event viewer each search a user does within File Explorer. I believe this should come under Connected-Search. I have the event log enabled but I'm not seeing any data populating it despite doing searches.

We haven't done any additional configuration. Is there something that we need to configure to get this working?

Read other answers
RELEVANCY SCORE 50

Hello.
I hope the title makes sense. When I export it out of the system at work it doesnt even get a file extension. This is what makes me call it a "flat" file if that makes sense. Anyways, I need to convert this to a .csv file. I am using MS Excel 2002 and its not giving me the results im looking for. Any suggestions?

Thanks,
John
 

A:Solved: How to change a flat file to a .csv

Read other 9 answers
RELEVANCY SCORE 50

Currently I'm using two seperate applications for my purposes in creating data and building reports. I was hoping to develop some code using VB or Java to automate the process of taking a flat file and importing it into excel. Right now the flat file is being generated and placed on a network drive. From there I'd like for an application to periodically check for that file and import the data into an excel file and update information there. I don't know much about server side code such as Java servlets but thought this might be the place to start. Any ideas as to how I might approach this process?

Thanks
 

A:Importing flat file using code

It would probably have something to do with Excel's OLE automation. (At least with VB) You could try searching on the web to see what you can make Excel do behind the user's back
 

Read other 2 answers
RELEVANCY SCORE 50

Hi. I was wondering if somebody to advise me whether customisations created in IEAK 11 are stored within the msi file within the FLAT folder, or whether they are only applied by use of the ins file in the INS folder? I haven't many customisations but I was
hoping to apply changes to the search providers without having to apply an ins file.
Thanks
Mark

Read other answers
RELEVANCY SCORE 50

Hello all,

I have a problem that I need help figuring out.

I have a need that takes a flat (ascii) file of varied lengths and parses a certain type of record out of it and either check the data or manipulate. After that then placing the record back where it was.

I have looked at (as a simple solution) MS Access but it's problem is the varied length of the records within the file. I want to be able to access the individual record, manipulate and put it back.

Should I try VB, SQL ????

thanks
 

A:Flat file access and Manipulation

If you want to do this out of a flat file you would have to use some sort of unique identifier before and after each record such as
|BeginRecord| and |EndRecord|. But thats not very convenient.
If it doesn't have to use a flat file, try a database such as Access or MySQL.
 

Read other 2 answers
RELEVANCY SCORE 48.4

There is a case, where i have bulk of user names and bulk of flat files(.txt files). I have to search each and every user name in all the flat files and if the user found it should picked up. I have to repeat this for all the user names. Is there any possibility of doing this in an easier way.. Please help..

Read other answers
RELEVANCY SCORE 46.8

Hello, 
I have been using this script for some time now, and occasionally I get duplicate users, mostly because communication is to late. So I wanted to add 2 message windows (llnexists and llnexistsyes) I wanted to run llnexists right after the username check(line
482, but i cant seem to get it to work. I keep getting stuck in "a loop" with message: "A positional parameter cannot be found that accepts argument" 
Import-Module ActiveDirectory

Add-Type -AssemblyName System.Drawing
Add-Type -AssemblyName System.Windows.Forms


$DefaultValues = [PSCustomObject]@{
#### @domain.com ####
Domain = ""

#### A share for HomeFolders ####
HomeDir = ""

#### Home drive letter ####
HomeDrive = "P:"

#### Location in active directory ####
ADPath = "OU=test,DC=,DC="

#### Startup Script ####
StartupScript = "test.bat"

#### User is member of group ####
ADGroupMember = "agroup"

#### Available Classes ####
Class = @("testclass1","testclass2")

##########################################################

}


function NewStudentForm{
#####################################################
#### Text on New Student Form ####
$NSTitle = "Create new student account"
$NSBack = "Back"
$NSNex... Read more

Read other answers
RELEVANCY SCORE 45.6

Hi,

I need a script/batch file that I can click to quickly

enable/disable a user.

How can I do this?

A:Script to disable/enable a user

A one-liner bat file can do that pretty easy. This will do the trick:

To enable a user:

Code:
net user username /active:yes
To disable it:

Code:
net user username /active:no
Where username is the username to enable/disable.
This requires administrator permission to succeed.

Some reference can be found here:
Enable or Disable user account from command line (CMD)

Read other 3 answers
RELEVANCY SCORE 45.6

I seem to be getting this on my main pc but not on my old p4

pc specs are

P5K PREMIUM/WIFI / Intel E6750 @ 2.66 GHz / 2 X Seagate baracuda / Nvidia 8800GTS / 2 GB Corsair XMS @ 800 Mhz / Gigabyte Rocket Pro Heatsink / OCZ 700 Watt Game X Stream PSU / XP home editon

Internet Explorer Script Error
An error has occurred in the script in this page.
Line: 4
Char: 1
Error: Access is denied
Code: 0
URL: res://C:\Windows\system32\nusrmgr.cpl/nusrmgr.hta
Do you wish to continue running scripts on this page?


I have tried the following but with no success

1. Have changed the RAM for new sticks

2, have updated it to the latest bios via floppy disk

3. have changed the cables to my hard drives

4. have changed the IDE cable to my DVDRW

5. have changed the graphics card to another model and tried an install

6. hard drives have been tested and passed

7. have tried a new cpu no change

8. have tried swapping the drive out of my p4 pc which runs xp fine but somehow i get the error in the core2 machine

9 mouse freezes (g3 logitech) under xp and has done it under vista too but runs fine on my p4 pc

10. have taken it to have a new board fitted still does it but about everyother time i try to clcik it

11. have tried using HTAstop

12. have tried

To resolve this behavior, use the regsvr32 command to register the .dll files. To do this, follow these steps:1. Click Start, click Run, type cmd, and then click OK.
2. At the c... Read more

A:User accounts script error

hi there. nice to meet u. i would recommend u use mozilla firefox to browse as it saves you the trouble and never comes up with stupid errors like that.
Also visit this page for internet explorer help from people: http://www.microsoft.com/communitie...3eb-7037-4d4f-bde1-d8efee1f1420&lang=en&cr=us
 

Read other 8 answers
RELEVANCY SCORE 45.6

We currently have a few public computers that anyone of the employees can use while waiting to have thier computer fixed, we have been finding that the Users folder in Vista is getting awefully crowded after a few weeks of this experiment.

We where looking for a way to have a timed script to run on each of these computer at a certain time of day to delete all User accounts on the computer except Public, and our Admin account and shutdown the computers so they would be ready for the next mornings use.

Does anyone have any ideas of how this can be done?

A:Script to Delete Certain User Accounts?

Hi psytae,

Are these computers 32-bit or 64-bit?
For the 32-bit ones, have a look at this: Windows SteadyState

Read other 2 answers
RELEVANCY SCORE 45.6

Hi,

I have a mate who has very poor eyesight and I've just been helping him and his wife set up their new laptop (Windows 7). We found the best way for him to use it is to set the screen resolution to 800x600 but his wife doesn't need/like this setting and I was dismayed to realise that this is not a 'per user' setting.

However, I found a little utility (multires) that I can call via a .bat file stored in the respective Startup folder to set the resolution when they log on but now i am looking for a way of re-setting when they switch users as opposed to logging on but can't find a way to do this.

..anyone know of a way? is there a script that runs on a user switch event? I've done a bit of vbscripting in the past so am happy delving into that sort of stuff!!

Thanks in advance for any help.
Jim.

A:Switch User - run a script/command

You can run the .bat from the registry (in the HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run key)

Create a New String value and point it at the location of the batch file.

Read other 2 answers
RELEVANCY SCORE 45.6

Hello
Internet Explorer 7 runs just fine within my Administrator account, but after setting up a new limited user account for my daughter I now get many "Internet Explorer Script Errors" with a box containing no details. It usually pops up when I try to access one of the Administrative Tools applets such as "Services" or "Events viewer" or something similar. Sometimes it just pops up on the desktop.
It appears to be rights related because again, no such problems appear in the administrator account. I've tried setting up other brand new accounts and the same thing happens.....
I've tried disabling script debugging, notification of script errors, subinACL, reregistering XML .dlls, etc.
I've googled and googled and lots of people have this same problem. Lots of suggestions, but nothing seems to work.
I'm confident I have no malware. My system:

Win XP SP2, fully patched.
ESET Nod 32 V3.0
Online Armor
Core 2 Duo 2.4 GHZ
4 GB RAM

Thank you in advance!
 

A:IE7 Script Errors on User Account - Only

You can try the steps found here http://wiki.castlecops.com/Windows_Update_Fix they have worked for some other people.
 

Read other 2 answers
RELEVANCY SCORE 45.6

I have Windows XP-Pro SP2 installed on a P4 1.8GHz CPU with 768MB RAM

I would like a script that opens a commamd window and calls for a file (icon file) to be copied to a specific folder on 5 different drives. I would like to be able to either paste in the file path or drag and drop the file onto the command window. The icon file will always come from the same folder "C:\WINDOWS\system32\00 ICONS\System Folders" and be copied, sometimes replacing a file with the same name, to these 5 folders:

"W:\WINDOWS\system32\00 ICONS\System Folders"

"X:\0 aAPPS\00 a Install First\00 ICONS\System Folders"

"W:\WINDOWS\system32\00 ICONS\System Folders"

"N:\0 aAPPS\00 a Install First\00 ICONS\System Folders"

"D:\0 aAPPS\00 a Install First\00 ICONS\System Folders"

I apologize if I am using incorrect terms. I don't know if a batch file could do this or if it would have to be done with vbs. I would appreciate the help. I know nothing about writng vbs script and only a little about writing batch files.
Thank you.

A:Script to call for a file then copy file to specific folders

My question was answered on a different site.

Here is the link:

http://www.theeldergeek.com/forum/in...1&#entry280051

Read other 1 answers
RELEVANCY SCORE 45.6

Does anyone know how to write a script that would specifically
copy a file "File.ext" to the clipboard and paste it to this
"My Script.vbs" file?

I do not mean editing the VBScript file. I currently right click
"File.ext" select "Copy" then right click "My Script.vbs" and
select "Paste".

I would like to know if I can do that with a script. I have included
an example of the code used in "My Script.vbs" I have chosen these
file names and directory paths to use as examples for my post.

I thank you for reading this.

My Script.vbs
Code:
On Error Resume Next
Const OverwriteExisting = True
Set objArgs = WScript.Arguments
Set objFSO = CreateObject("Scripting.FileSystemObject")

If objArgs.Count < 1 Then
WScript.Quit
End If

For I = 0 to objArgs.Count - 1
Arg = objArgs(I)

objFSO.CopyFile Arg, "C:\Desktop\", OverwriteExisting
objFSO.CopyFile Arg, "D:\Desktop\", OverwriteExisting
objFSO.CopyFile Arg, "E:\Desktop\", OverwriteExisting
objFSO.CopyFile Arg, "F:\Desktop\", OverwriteExisting
objFSO.CopyFile Arg, "G:\Desktop\", OverwriteExisting

objFSO.CopyFolder Arg, "C:\Desktop\", OverwriteExisting
objFSO.CopyFolder Arg, "D:\Desktop\", OverwriteExisting
objFSO.CopyFolder Arg, "E:\Desktop\", OverwriteExisting
objFSO.CopyFolder Arg, "F:\Desktop\", OverwriteExisting
objFSO.C... Read more

A:Solved: Script to copy and paste a file on to a VBScript file.

This is what worked for me:
I converted the vbs file to an exe file using ScriptCryptor.
I use a script to open the file I want copied using that exe file.
 

Read other 1 answers
RELEVANCY SCORE 45.2

Dear all,
I want to use windows scheduler to check a file in a folder. If the file is exist then execute a script from another folder to upload the text files into the server. when the text files upload process is done then rename the files. Done.

But If the file didnt exist then check it every 15 minutes. 
How do I do this using windows scheduler. 

Thanks & regards,
S17
  

Read other answers
RELEVANCY SCORE 45.2

Hello,

Can you help me?
I tried to copy a profile to another folder by vbscript, but folder Documents not copy complete. Why?
I now this forum not write or speak language vbscript but i search google, etc..etc and not have solution for this problem.

My code Vbscript.vbs


Code:

dim wshell, strusername, filesys
Const OverwriteExisting = TRUE
Set WshShell = CreateObject("WScript.Shell")
Set WshEnv = WshShell.Environment("SYSTEM")
Set filesys = CreateObject("Scripting.FileSystemObject")
StrUsername = wshShell.ExpandEnvironmentStrings("%username%")
msgbox strUsername
Call BackupC
Sub BackupC
If filesys.FolderExists ("C:\Dados\" & StrUsername & ".$$$") Then
If msgbox ("There is already a folder called C:\Dados\" & StrUsername & ".$$$" & ". Do you want to proceed?",4, "Image Customization") = 7 Then
Exit Sub
Else
filesys.DeleteFolder "C:\Dados\" & StrUsername & ".$$$", TRUE
filesys.CreateFolder ("C:\Dados\" & StrUsername & ".$$$")
End If
Else
filesys.CreateFolder ("C:\Dados\" & StrUsername & ".$$$")
End If

If filesys.FolderExists ("C:\Users\" & StrUsername) Then
'**** DESKTOP ****
If filesys.FolderExists ("C:\Users\" & StrUsername & "\Desktop") Then
filesys.CreateFolder ("C:\Dados\" & StrUsername & ".$$$&... Read more

A:Copy User Profile with VBS Script problem

Hi, rgaspar, and welcome to the forums.

It is possible you have system files in the documents folder that are not allowing a full copy to process - have you verified that you can manually copy the folder?

Read other 5 answers
RELEVANCY SCORE 45.2

Hi there

I've trying to invoke a fix on the fly and have got a mixed windows workstation environment on my network. For particular reasons, I don't want my windows XP users to use a Windows 7 machine and equally I don't want a Windows 7 user to use a Windows XP machine. Silly I know but there you go.

I've set up a couple of WMI filters that determine the machine type and have used the following script to ensure that each user type is logged off and the PC restarted.

Option Explicit
Dim objShell
MsgBox"The detected logon method is not supported " & chr(13) & chr(13) & "Please revert to using your own computer." & chr(13) & chr(13) & "This computer will now restart" & chr(13) & chr(13),0,"Invalid Logon Detected."
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Run "C:\WINDOWS\system32\shutdown.exe -r -f -t 0"

For the Windows XP users on Windows 7 machines it works fine, however when a Windows 7 user logs into a Windows XP machine, it displays the message but won't do the restart bit on the Windows 7 machines.

Do I need to create some elevated permissions for my windows 7 machines.

A:Can I force a user to log off automatically through a logon script?

Try to run interactively.

C:\WINDOWS\system32\shutdown.exe -r -f -t 0

works on winxp?
------------
Why did you create those user accounts? You don't let them logon! You don't simply log them off but even shutdown.

Read other 8 answers
RELEVANCY SCORE 45.2

You know when you click your profile name on the start menu and you see all your personal folders (Desktop, Docs, Pics, Music, Vids... etc.)

Each time I install a new computer, I move those to the D drive. Does anyone have a script for this?

Open the Start menu and click your user name to open the User folder
Right-click the personal folder you want to redirect to another location.
Select ?Properties?
Click the tab ?Location?
The dialog box shown below will open
Click the button ?Move?
An Explorer dialog ?Select a destination? will open
Browse to the location where you want to redirect this folder. You can select another location on this computer, another drive attached to this computer, or another computer on the network
Click the folder where you want to store the files
Click the button ?Select Folder?
Click ?OK?
In the dialog that appears, click ?Yes? to move all the files to the new location.

A:Move user personal folders with script

This wont help with current machines but, with new machines after you add them to the domain but before adding the user, in other words log in as the domain admin first.

Open the registry and browse to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

change the ProfilesDirectory key to where you want them to point. This will work for any future users added to the machine

Read other 1 answers
RELEVANCY SCORE 45.2

Hi.

How do I put a user free upload link script, so the users can upload images and links.

If anyone can help me please.
 

A:How to put user free upload link script

Sounds like a Web Development question.
 

Read other 1 answers
RELEVANCY SCORE 45.2

log off other user accounts in Windows via batch script.
Unable to logoff ID of other user using below script,  it just  run continuous , need assistance.
Script 
query session
logoff 1
pause

Read other answers
RELEVANCY SCORE 45.2

Hi, I am trying to develop a script that a user can run in order to set up our lab printers on a the user's laptop. The printer queues are set up on a server within our AD network. Since the user name on our AD network may not match the user name on their personal laptop, a way needs to exist for them to enter their username/password some time during the script execution to set up the queue with known credentials.
From what I read so far, I found two ways to do this, but couldnt get either to work. First way was to do a
net use LPT4: \\server\queue_name /USER: Domain\username

but for some reason, even though "net use" shows that a printer was mapped to LPT4, when I go to something like microsoft word, and select Print.. there doesnt appear any printers installed. No idea how to proceed there.

Another way I read about was to use the "rundll32 printui.dll,PrintUIEntry" with a bunch of parameters, but I didn't see any parameter that would allow me to specify a username (or request a username) during the execution of the command. Seems to me that it uses the currently logged in username, which is not really an option for us.

I also read that there is a more advanced dll from the server resource kits, prnadmin.dll but I have no idea how to use it yet.

Am I missing something very simple in either of the two ways? or is there no way to easily do what I need with batch file, and I need to consider doing something more advanced? Also, if you aren�... Read more

Read other answers
RELEVANCY SCORE 45.2

Below is what I have thus far. It only works on ususally the first folder but not the others. I get no errors and I used "if fso.folderexists" to not error out on folder already removed. Thought it might have been a time thing since some of them have numberous temporary internet files so added wscript.sleep 60000(took it back out)between each folder deletion but made no difference.
Any and all help would be appreciated
Thanks

Dim FSO, Folder
set FSO=CreateObject("Scripting.FileSystemObject")
Folder="C:\Documents and Settings\abaxter"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\abrown"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\bbareither"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\chorn"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\dmonk"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

Folder="C:\Documents and Settings\abrown"
if fso.folderexists(folder) then
FSO.DeleteFolder(Folder), True

wscript.quit
end if
end if
end if
end if
end if
end if
 

Read other answers
RELEVANCY SCORE 45.2

Okay, got another.

Im trying to write a unix script where a user provides a filename and I ask the user if it is correct. If it is the script continues, if not it will reprompt the user to enter it again, or they can chose to quit the program completely.

Im having trouble getting this thing to loop, and work for that matter. Here is what I threw together.

#Get the directory path
echo "Enter the directory path: \c" ; read dir
#Append to the file
echo $dir > /affinium/Campaign/Ad_Hoc_Chris/Snapshots/tempfile.dat

foreach directory ($dir)
echo $dir
echo "Is this the directory path you entered? (y/n/q)"
set ans = $<
switch ($ans)
case n:
continue
case q:
exit
case y:
exit
end
 

A:checking user input in unix script

Read other 15 answers
RELEVANCY SCORE 45.2

right I've read through countless threads regarding deleting user accounts on XP but none have the same problem I'm having.

Basically as soon as the window for the user accounts managment thing comes up an error box saying "an error has occurred in the script on this page" and no information is given on any of the lines and does not disappear when you click either yes or no to continue running scripts on this page.

Any help would be mucho appreciated
 

A:user accounts panel script error

Go to Start > Run and type in MMC. Go to File Add/Remove Snap in and add Local Users and Groups. See if that works.
 

Read other 2 answers
RELEVANCY SCORE 45.2

scheduling defrag for those that don't want to leave machines on overnight.

I've been looking around the web, and trawling through CMD.exe for a good few hours now, and I still can't find it.

I'm trying to create a batch file that defrags a machines c: drive, and then shuts down the computer as soon as it's finished, having given a 2 minute warning. That was the easy bit.





@echo off

defrag c:

C:\WINDOWS\SYSTEM32\TSSHUTDN.EXE 0 /DELAY:120 /POWERDOWNClick to expand...

I'm now struggling to find out how to get a simple (Y/N) input from a user as the script starts asking whether the user wants to defrag and shutdown or not waiting 60 seconds for an answer before procedding to defrag and shutdown the computer if no answer is given.

The idea is to schedule it to run at 2am every day, probably from Task Scheduler. It's an experiment in learning as much as anything else though, but I am now completely stuck, bogged down in pages and pages of useless information while trying to find the piece I want.

If anybody knows how to do it, I'd appreciate your help.
 

A:Looking for user input (Y/N) in batch script, with a timeout.

This is the text for e.g. DEFSHUT.BAT:





ECHO Want to Defrag Drive and Shutdown?
ECHO.
ECHO Press "N" if you just want to Shutdown
ECHO.
ECHO Press "Y" to Defrag and Shutdown
ECHO.
ECHO Press "Escape" to Cancel
ECHO.

C:\DOS\CHOICE /C:NY^[ /N > NUL

IF ERRORLEVEL 3 GOTO END
IF ERRORLEVEL 2 GOTO FRAG
IF ERRORLEVEL 1 GOTO SHUT

:FRAG
defrag c:

:SHUT
shutdown........

:ENDClick to expand...


(Note that `^[' represents the "Escape" character. To create it, press ^P (Control-P) in DOS Edit, then the "Escape" key. Other text editors allow one to create the "Escape" character by pressing ^V first.)
Also note the reversed questioning of the input-varaibles

To implement a WAIT command, see here: http://malektips.com/dos0017.html
 

Read other 3 answers
RELEVANCY SCORE 45.2

Backround: I am a college student majoring in Information Technology with a focus in programming. I also work for my school's IT department as an IT associate. I have 4 years of experience dealing with hardware and software and have studied Net+ and A+ certification books.

Problem: At my school my boss, the IT Director, wants to schedule a batch file to run weekly that will delete items from the desktop and folders of the "Student" account on all of the student computers. He asked us associates to go around to every student computer with this batch file on a thumb drive and schedule the task. Seems simple enough right? The problem is we are talking upwards of 300 computers throughout the campus. I proposed a solution to him where we would use a script that would essentially consult a text document with the names of all of the student computers in it, then run the file.

I am 99% this can be done, I just have a very small amount of programming experience. If anyone has an answer or knows of an easier way to accomplish this I appreciate it. Thanks in advance.

EDIT: All student workstations are running Windows XP SP2
 

A:VB Script to Run a Batch File and Utilize a Text File

Read other 16 answers
RELEVANCY SCORE 45.2

I need to write a batch file or vb script that will take the following share names (which are stored in a .csv Excel file) and then run the following command:

NET USE \\[entry from 1.csv file]

The object is to have this command establish a NET USE connection to each share name from the 1.csv file.
These are the first five entries from the 1.csv file:
\\s0002234\c$
\\s002631\c$
\\gb2130\c$
\\s00460\c$
\\gb2143\c$
\\gb3205\c$

Can you please write a command script that will do this for me? My OS is Windows XP Service Pack 2.
Contact me with any further questions.
Dennis
[email protected]
 

Read other answers
RELEVANCY SCORE 44.8

Wondering if anyone in this forum can help me figure out what I am doing wrong with my script. I am grabbing a text file with a list of users in it. I want to then create folders for all those people and then set explicit permissions on those folders to only allow the users and admin access to it. So for the create user folder, I have...

$Users = Get-Content "C:\Users.txt"
ForEach ($user in $users)
{
$newPath = Join-Path \\mycomputer\Users$ -childpath $user
New-Item $newPath -type directory
}

This works great as I now have 100 folders created. But how do I use something like....

$acl = Get-Acl "\\mycomputer\users$"
$permission = "mydomain\$users","FullControl","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
$acl | Set-Acl \\mycomputer\users$\$user

When I try to loop these together it says the folder already exists or the setaccessrule identity references could not be translated.

Anyone know how I loop it in with creating the folder? Or is there a way to just say...create folder based on this username, then take that username and make it the only admin on the folder along with the system admin??

A:powershell script to create user folders and set permissions

answered my own problem...but maybe someone can help me out from here. This works for creating folders and setting permissions.

$Users = Get-Content "C:\Users.txt"
ForEach ($user in $users)
{
$newPath = Join-Path "\\myserver\Users$" -childpath $user
New-Item $newPath -type directory

$acl = Get-Acl $newpath
$permission = "mydomain\$user","FullControl","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
$acl | Set-Acl $newpath
}

Anyone know how I would then look at an old server with user folders and do a stare and compare between the old and the new ones I just created? And once I find a folder that matches I want to grab all the contents in the old server and robocopy it over to the new server.

Read other 3 answers
RELEVANCY SCORE 44.8

Hi,,, using server 2003 and i have to update users account. Found a script to reset all the pass words. Now i am looking for a scrit that will put a check in the user must change pass word on next log in. Ill post the scrit of change pass word below so you know what i am doing and add an attachement of print screen ,,, Thanks for your time Doj Harris
Or batch file!

create a text file containing the users and passwords like so:
user1, genericpassword
user2, genericpassword
save it as user.txt
GOTO run type cmd
and type
for /F "delims=, tokens=1,2" %A in (users.txt) do net user %A %B /domain

Arr the upload screen shot didnt work,,,,, maybee i clicked the wroung button,,, ill see how the thread goes and maybee upload it later
 

A:looking for a script check in the user must change pass word

How about a cmd line tool that does it already.
http://www.joeware.net/freetools/tools/expire/index.htm
 

Read other 1 answers
RELEVANCY SCORE 44.8

I cannot seem to access user accounts through control panel. I keep getting script errors. Also, I keep gettong just a blue screen when I open IE. Stating "runonce". Any ideas?
 

Read other answers
RELEVANCY SCORE 44.8

In old WinXP there was a tricky feature in Group Policy editor to execute a script when a User logs off resp. the computer was shutdown.


I do not find this feature in Windos 7 (pro).

is there another way to execute a *.bat batch script at
a) user logoff
b) shutdown?

Peter

A:Is there a way to execute a prgm/script at user logoff/shutdown?

You can do it in pro and above with gpedit.

Use Startup, Shutdown, Logon, and Logoff Scripts

Read other 1 answers
RELEVANCY SCORE 44.8

Hello everybody. I am looking for a PHP script that will allow members to sign up and upload files to the server, and then have other members see them and leave comments on them, or vote whether they like the file the user has submitted or not.

I need one with no file extension restrictions, and one that doesnt require shell access to install.

Which ones do you guys like, or have heard are good?

Thanks

-Mark
 

A:User Upload Files & Comments...PHP Script Question

Read other 7 answers
RELEVANCY SCORE 44.8

Hi all,

What's the correct script to delete all temporary files from ALL user profiles inside C:\Documents and Settings or C:\Users ??

This is what I used and tested but it only delete the temp files from the current profile, not all profiles:


PHP Code:



@echo off

echo Disk cleanupThis will delete all temporary files stored in all profiles' directories and subdirectories.

pause

rd /s /q "C:\Documents and Settings\%username%\Local Settings\Temp"
 
rd /s /q "C:\Documents and Settings\%username%\Local Settings\Temporary Internet Files"

rd /s /q "C:\Windows\Temp"

cleanmgr /sagerun:99

pause 





Your help will be highly appreciated...

-Alvin

A:Script to delete all temp files from all user profiles

I searched for scripts from the web. How about this? What do you think?


PHP Code:



@echo off

SET SRC1
=C:\Documents and Settings
SET SRC2
=Local Settings\Temporary Internet Files\Content.IE5
SET SRC3
=Local Settings\History
SET SRC4
=Local Settings\Temp
SET SRC5
=Cookies

echo Read more

Read other 1 answers
RELEVANCY SCORE 44

Hi Guys,

One of our staff PC has a problem, the scenarios:

Specs: (Alias Names)
-Company Name: Contoso
-Staff PC under Domain Alpha
-PC Name: Contoso1-PC
-Local Users are: administrators and john
-User profiles:
> operations (contoso domain)
> john (local)
> administrator (local)
-MS Outlook connected to [email protected]

Thursday:
IT
1. remove/uninstall chat messengers, blocked linkedin,facebook,twitter,youtube
2. change User Account Type (Local Staff John Doe) from User to Guest
3. I change the type from User Accounts > Properties > Group Membership > Others > Guest
4. shutdown the system

Friday

1. turn on the PC and staff asks for the correct username
2. provides the username, Contoso1-PC\john
3. staff login to his local account using his password

Saturday

1. staff called and his desktop files are gone and document files are gone
2. IT check the Users folder there are particular folders:
3. john and john.contoso1-pc
4. both folders empty
5. outlook not connected
6. account is totally FRESh
7. IT check on webmail under Domain Alpha, not working the usual password, webmail.contoso.com/owa
8. after an hour, the usual password works
9. IT tried to connect MS outlook 2003 using [email protected] not working saying "outlook.pst is not offline file"

PROBLEM:
1. files are gone
2. Totally FRESh account

I don't know what happen, guys please help, the FIles are gone.

Hoping your best solution.

THanks.
 

A:Solved: Changing User Account Type - User to Guest - File Deleted

Read other 9 answers
RELEVANCY SCORE 44

I have created a batch file(file1.bat) to run on every machine to create a batch file(file2.bat) to a launch a page at windows startup.
This is the content of file1.bat:
@echo off
@echo>"C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat
@echo start http://www.msn.com/> C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat
Expected result is to copy the file2.bat to startup of each user profile.  However, The file2.bat is not copied to the startup folder on windows 7, 8, 10 after testing.
However, this will work in file1.bat:
@echo off
@echo>"C:\Testing\file2.bat
@echo start http://www.msn.com/> C:\Testing\file2.bat
I do not have a domain joined network.  I need to send the file1.bat to all staff.  I plan to deploy to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup. 

Thanks in advance to all.  Any help is appreciated. 

Read other answers
RELEVANCY SCORE 44

I have created a batch file(file1.bat) to run on every machine to create a batch file(file2.bat) to a launch a page at windows startup.
This is the content of file1.bat:
@echo off
@echo>"C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat
@echo start http://www.msn.com/> C:\Users\User\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\file2.bat
Expected result is to copy the file2.bat to startup of each user profile.  The file2.bat is not copied to the startup folder on windows 7, 8, 10.
However, this will work on file1.bat:
@echo off
@echo>"C:\Testing\file2.bat
@echo start http://www.msn.com/> C:\Testing\file2.bat
I do not have a domain joined network.  I need to send the file1.bat to all staff.  I plan to deploy to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup. 

Thanks in advance to all.  Any help is appreciated. 

Read other answers
RELEVANCY SCORE 43.6

Okay, now first ill go ahead and say that the problem im having right now ive tried to solve with dell and have called them too many times about issues with this computer. Now ive run into problems with Getting into User Accounts from the control panel and using system restore. Everytime i try to get into user accounts, it says User Accounts on the top of the box but the box itself is white. Furthermore, it then pops up with a bunch of dialogs saying an internet explorer script error has occured. Then, also recently, i was trying to get into system restore to create a restore point because i was about to make a slight modification to the registry..when i tried to get into it, it also popped up in jus a white box with nothing on it. This happens in both Normal Mode and Safe Mode. The only account that dosen't experience problems is my aunts account, whos the owner of the computer, an im not sure why that is. But anyway, do u have any idea of what i should try to do to fix this issue?(An my computer is a Dell XPS 400 with Windows XP Media Center 2005 Service Pack 2 installed)
 

Read other answers
RELEVANCY SCORE 43.6

Okay, now first ill go ahead and say that the problem im having right now ive tried to solve with dell and have called them too many times about issues with this computer. Now ive run into problems with Getting into User Accounts from the control panel and using system restore. Everytime i try to get into user accounts, it says User Accounts on the top of the box but the box itself is white. Furthermore, it then pops up with a bunch of dialogs saying an internet explorer script error has occured. Then, also recently, i was trying to get into system restore to create a restore point because i was about to make a slight modification to the registry..when i tried to get into it, it also popped up in jus a white box with nothing on it. This happens in both Normal Mode and Safe Mode. The only account that dosen't experience problems is my aunts account, whos the owner of the computer, an im not sure why that is. But anyway, do u have any idea of what i should try to do to fix this issue?(An my computer is a Dell XPS 400 with Windows XP Media Center 2005 Service Pack 2 installed)
 

A:Problems with User Accounts(Getting internet explorer script error messages)etc

You can try dial-a-fix. Its magical for this kind of problems. Dial-a-fix will put many of your registry entries to Windows default state. You need admin rights for it.

http://wiki.djlizard.net/Dial-a-fix

Read carefully first, then download and run it ONLY if you understand clearly what would it do and if you can take all the previous actions suggested.

Good luck!
 

Read other 1 answers