Hi,
Every night i get a list of 50+- users and have to move them to a specific OU (always the same).
What would be the easiest way to do it?
Thanks
Search found 9 matches
- 28 Jul 2015 14:17
- Forum: DOS Batch Forum
- Topic: Move users to another OU
- Replies: 2
- Views: 2666
- 13 Nov 2013 10:34
- Forum: DOS Batch Forum
- Topic: Logon script
- Replies: 4
- Views: 3725
Re: Logon script
foxidrive wrote:Do you know how find.exe works? Or findstr.exe?
No.
But from what i understand, it will filter my log file afterwards and won't prevent all the lines to show up in it.
Thanks
- 13 Nov 2013 10:19
- Forum: DOS Batch Forum
- Topic: Logon script
- Replies: 4
- Views: 3725
Re: Logon script
Here's my script: echo %date%,%time%,%computername%,%username%,%sessionname%,%logonserver% >> \\domain\Logon\LOGON.LOG REG QUERY "HKEY_CURRENT_USER\Volatile Environment\ViewClient_Machine_Name">> \\domain\Logon\LOGON.LOG 1: The first part works OK, but sometimes it will randomly erase the...
- 13 Nov 2013 09:27
- Forum: DOS Batch Forum
- Topic: Logon script
- Replies: 4
- Views: 3725
Logon script
Hi, I have a logon script to monitor all the logins. I have 2 things that i couldn't get to work properly. Here's my script: echo %date%,%time%,%computername%,%username%,%sessionname%,%logonserver% >> \\domain\Logon\LOGON.LOG REG QUERY "HKEY_CURRENT_USER\Volatile Environment\ViewClient_Machine_...
- 10 Jun 2013 07:37
- Forum: DOS Batch Forum
- Topic: Script to get displayname and homedirectory
- Replies: 11
- Views: 11423
Re: Script to get displayname and homedirectory
What i had so far was an exemple of the commands needed. Squashman, if fact, it's much harder than what i expected. I only wanted some pointers so i could figure it myself. I got the first part which asks for a username. Then i wanted my script to look up the AD for the full name & home dir (whi...
- 07 Jun 2013 12:38
- Forum: DOS Batch Forum
- Topic: Script to get displayname and homedirectory
- Replies: 11
- Views: 11423
Re: Script to get displayname and homedirectory
This line at end of your batch with your command/s will output a dated txt file to your C: or system drive.. Your Command Here >> %systemdrive%\%computername%_INFO_%date:~-4,4%-%date:~4,2%-%date:~-7,2%.txt That's not really what i need. I need a script that will ask for a username. Then take that u...
- 07 Jun 2013 08:03
- Forum: DOS Batch Forum
- Topic: Script to get displayname and homedirectory
- Replies: 11
- Views: 11423
Re: Script to get displayname and homedirectory
Well you could at least try it. I am not bs'ing you here. I use the net user command all the time to get the users full name. net user Squashman /domain net user frederixx /domain You can then pipe that result to the find command to filter it. net user Squashman /domain |find "Full Name" ...
- 06 Jun 2013 14:27
- Forum: DOS Batch Forum
- Topic: Script to get displayname and homedirectory
- Replies: 11
- Views: 11423
Re: Script to get displayname and homedirectory
By display name do you mean Fullname? You can use the net user cmd to get the fullname. Yes, DisplayName=full name But my understanding of the Net user command is to modify the AD profile IE: net user /fullname:dummy2 What i really want is a script that you enter a username and it gets the full nam...
- 06 Jun 2013 13:15
- Forum: DOS Batch Forum
- Topic: Script to get displayname and homedirectory
- Replies: 11
- Views: 11423
Script to get displayname and homedirectory
Hi, I'm trying to get a batch file to 1: ask you for a Username 2: with the Username, it searches Active Directory for the User and gets the DisplayName & HomeDirectory 3: copy them in a text file Setup.txt Username=Dummy KeyfileName=\\dc01\users\dummy.txt 4: copy the Setup.txt & dummy.txt i...