Another DSMOD question

Hopefully a fairly simple one this.

I am using a script to automate disabling old unused accounts.

@echo off 
if {%1}=={} @echo Syntax: disableDNs FileName&goto :EOF 
if not exist %1 @echo Syntax: disableDNs %1 not found.&goto :EOF 
set file=%1 
for /f "Tokens=*" %%u in ('type %file%') do ( 
set user=%%u 
rem set user="!user:"=!" 
@echo DSMOD USER !user! -desc Disabled -disabled yes 
DSMOD USER !user! -desc Disabled -disabled yes 

What I would like to do is have the -desc Disabled append the date the 
script is run. That way I can see how long the account has been disabled. So 
obviously I need a mm/yy format.

What is the correct syntax? Should I be using quote marks?
Pete Jones

4/20/2010 10:43:01 AM
windows.server.active_director 902 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 19


Similar Artilces:

Application works on one PC but not on another with same OS?
Hi, My application works OK on my PC (Windows 2000, latest server pack) but not on my colleague's (same OS and SP). One difference is that I have the .NET IDE installed on my machine, and he doesn't. I used to have the same problem on my machine. An error was generated because (IIRC) I was using an MFC string comparison method on a char array. This worked in my debug config., but not in the release config. I replaced the code with a strcmp method, and that fixed it on my machine, but not on his. Is there something I should update in his Window's installation when I install the ap...

2K7 question
Is there a way in E2K7 to make a particular message always send a message out in plain text format? Is that just an Outlook setting? Thanks! ...

Registry question
Hello Group, I have an application that saves some configuration data in the registry system (under HKEY_CURRENT_USER\MyApp\ConfData) of the currently logged on user. This way, every user who runs this app will have his own configuration data. When a user runs for the first time this app, the 'MyApp' registry key will be created along with all its subkeys. Now suppose we have 3 users and all of them have already used the app. We will then have the 'MyApp' subtree created for these 3 users. What I want to know is that when the PC admin wants to uninstall the app, how...

Showing Specific Data from Master Sheet to Another Sheet
I am making a bill of materials at work and have a master list I want to access from other sheets. The master list has all parts named and categorized, and I want to be able to access sections (Hydraulics, Chassis, Electrical, etc.) of the master from other sheets. I have tried pivottables but I am having issues showing the data in it original form: Part Name Quantity Material Expense Category etc. (accross the row) I wish to be able to make calculations only off the selected data on each sheet but I am having immense problems getting there. If you can help. Parker Jo...

Question #3
Hi I have some data that I graph. Column A has a date [has data in 12 rows] Column B has a data entry (number) [has data in 1st 6 rows] Column C has a data entry (number) [has data in 1 st 6 rows] Column D has a formula that calculates a % on column B & C [formulas in 12 rows] The graph range I have covers the whole 12 rows but it seems to read the formulas in col D and plots every row Is there something I can add to my formula that stops the graph from plotting it unless there has been an answer returned in it? Formula I have is : =IF(B5+C5<1,"",(B5-C5)/B5) Thanks ...

Defrag question #3
I have a windows 2000 server that's a file/print server and Exchange 2000 also installed and running on the same box. I was wondering what is the best way if I want to run defrag and scandisk on the disk drive? I guess I'm asking because exchange is running on the box and I don't know if I run defrag and scandisk will I run into problems or cause the database problems. Thanks for your help. John In article <>, says... > I have a windows 2000 server that's a file/print server and Ex...

Question about Application behaviour,...
Hi, i have a simple MFC Application, that shows me the System Memory Usage. But after a while the Applications GDI Objects Count grows to something about >8.000 GDI Objects and its Virtual Memory (not much but step by step too) in less than 5 Minutes. I can see with ProcessExplorer that the application does have a high count of page faults. I cant figure out why! The System then starts to react slowly. The Timer invokes every seconds the member function with the code following this text, sets the Position on a progress bar control and raws a transparent text on the surface of the prog...

ADMT Tool Question
I'm trying to run this tool without success from a Windows 2003 native domain to extract accounts from an NT4 domain. Is this possible? Windows 2003 server Domain: Windows 2003 native mode Forest: Windows 2000 NT4 server sp6a "bobs" <> wrote in message news:e27m%23Km4FHA.2532@TK2MSFTNGP09.phx.gbl... > I'm trying to run this tool without success from a Windows 2003 native > domain to extract accounts from an NT4 domain. Is this possible? > > Window...

2008 SBS questions... 07-04-10
I am trying to get a 2008 sbs running as efficiently as I can & was wondering about a couple of things. 1) I know it wants to be the DHCP server on a network, but what about for wireless clients? I have a wireless sonicwall TZ-170 for wireless laptops to connect to. They really don't need network access, just internet, so can I leave this running, as long as the addresses it hands out aren't in my same network? 2) Although the bought an SBS, the customer is not & probably won't be running exchange for a while. Can I remove exchange all together? I really see no rea...

update worksheet in one file with worksheet in another file
I want to have one worksheet in one of my excel files (file 1) to reflect the contents of a worksheet in another file (file 2) every time it is opened (file 1), that is, everytime it is opened this one tab should reflect the last changes made on the tab in another file, including formating. I suspect this is possible but I don't have a clue how to do it. I have a few questions: Can this be done without VBA? (I'm not even a beginner with VBA!) I did search the web some and found the following that looks interesting:

enter value based on drop down list of another field?
I have an excel 2003 spreadsheet with 3 worksheets. In sheet 1, I created a drop down list in column A based on values in sheet 3, column A (item number). Thisd data comes from sheet 3, where I have column A (Item #'s), column B (Item desc)an Column C (price) In column B of sheet 1, I have Item Descriptions and in column C I have price. I want this to automatically fill in based on what I enter in the column A sheet 1 and it should get the corresponding values from sheet 3 column B and C. I can make the drop down list in sheet 1 column B and C, but some of the descriptions need ...

How to share info from one file to another?
I am wondering how I can share something perhaps from a cell of "file 1 to "file 2." I am familiar with how to do it from worksheet t worksheet within a single file. From what I have heard I know that i can be done but both files have to be located in the same folder. Correct me if I am wrong and please tell me briefly how it can be done I appologize if this is a newbie question. Thanks Chip Carlto -- ChipCarlto ----------------------------------------------------------------------- ChipCarlton's Profile:

Multi-language support question
We have an MFC application that uses ADO, ATL components to communicate with a SQL Server 2000 database. Our application is currently English only and we are making the conversion to support multiple languages. The text in the application is read in from a table so translating the text itself won't be a big deal programmatically. The text is loaded at log in and we can just autoswitch to the appropriate data based upon who the user is. My concerns are with different character sets, how the different languages impact the OS (how we set the character set in the OS automatically)...

DNS Question
Hello All, I am working with a customer that has 2 Small Biz servers in the same office. These are on 2 domains, but the same subnet. I am having trouble getting mail to route between the 2 domains. Each is Small Biz server 2003. Domain A has a public IP of and an internal IP of Domain B has a public IP of and an internal IP of We are using a Netgear firewall and inbound and outbound mail between each of these domains and the rest of the world works fine. They just can't seem to talk to each other. I would think this woul...

Question re:clustered column w/3D visual effect
I have Excel 2003 Why wont the 3D chart allow you to drag it more open? There is a large open area between the left side and the axis that looks jerky :) In a plain clustered column chart you can click inside to make the frame appear and drag it larger or smaller as you desire. In the 3D, clicking only allows you to change the angles of the 3D box. Am I missing something? thanks, Meenie This should be a hint to avoid the 3D effects. 3D charts are inflexible, but more important, the 3D effects mask the information in the chart. - Jon ------- Jon Peltier Peltier Technical Services, Inc....

Question about CRM and Great Plains Integration
Can I create invoice when I invoice a contract in CRM and then show the record in the Great Plains ? Thanks in advance ...

How to add another target to VidPN in WDDM driver?
Thanks all for the replies before and I'd like to ask few more questions related to VidPN management of WDDM driver. When WDDM miniport driver enumeratse child devices and connected external monitors, it first detects its all child devices in DxgkDdiQueryChildRelations, and next check each child actually has connected output in DxgkDdiQueryChildStatus. So, to implement adding another(virtual) monitor I faked one of given PDXGK_CHILD_STATUS parameter(HotPlug.Connected) to have true. And I filled up followed EDID query requests as well. Then I could see another monitor attached ...

Check box question 04-23-07
I have a form with a check box used to indicate if a receipt is voided or not. What I'm trying to do is go to a new record after the checkbox is marked. I have the following code in place and it works. Kinda. The problem is that if I then go back and UNCHECK the check box, it sends me to a new record again. Here's the code: Private Sub Check43_AfterUpdate() If Ckeck43 = Yes Then DoCmd.GoToRecord , , acNewRec Thanks for any help! End Sub The following works fine for me. If Me.Check3 = True Then DoCmd.GoToRecord , , acNewRec so try If Ckeck43 = True Then DoCmd.GoToRecor...

CHtmlView question #3
Is there an easy way to get the source of the HTML document? On MSDN online, there's a GetSource(CString& str) listed but that's apparently not implemented in VC++ 6.0. ...

A simple mail merge question
How do you change the return address on envelops printed using mail merge? I don't understand the question. The return address will be whatever you tell it to be when you set up your merge document. -- Russ Valentine [MVP-Outlook] "Nina" <> wrote in message news:b16b01c3ec17$335b99f0$a501280a@phx.gbl... > How do you change the return address on envelops printed > using mail merge? ...

Data Import/ Data Map Questions
Hello, I am developing a solution that will allow various new and updated entities to be loaded from several source systems into a Microsoft Dynamics 4.0 installation on an ongoing basis. There are some up- front components to the solution that detect new/changed source system data that are custom but I wanted to be able to use the built-in Data Import facilities within 4.0 to take the data from Excel files and load it into the CRM. I've looked at the sample code in the SDK and have been able to write code that will do this, including use of Picklist and Lookup (ie parent account) type ...

Question about Enable-ExchangeCertificate Command
I am trying to eliminate (more specific to my previous thread) the security alert in Outlook 2007 when opening up the program attached to Exchange 2007 with a public SSL cert and connecting to Exchange through the private address. I am seeking information about the Services column in the get (or enable)-ExchangeCertificate Command. I think I am on the right track here in that I can somehow tell Outlook to use the internally generated certificate instead of trying to use the public certificate. Can someone tell me which of the services options I should enable so that Outlook uses it i...

Newbie questions (and maybe I need a 1hr tutorial for some $)
Hello, I am a competent vb6 programmer and understand a bit of C structures. However the C++ system is mystifying me..I simply will have to learn it to now.... I have 2 questions. 1> Can anyone tell me how code "Program 4. Microphone Select" at can be changed to simply self close by clicking the IDOK button routine programmatically? This is the simple effort that triggered my current angst.! (I 'think' need to set a state in BOOL CSelectDlg::OnInitDialog" to fake the IDOK event or trigger to the OnDestroy routine). Fr...

Simple Newsgroup Questions
I'm new to Newsgroups. I'm subscribed to Microsoft.public.dotnet.languages.vb. I've posted 2 messages but I can't get the third to post. I saw it for a few minutes, then it was crossed out and said "no longer available from the server". Also, I can't seem to get more than 300 messages displayed. I'd like to be able to download and search through thousands. I've tried increasing the number of headers to download, but when I click on 'Download Next 1000 Headers', it seems to do nothing. In the microsoft.public.outlook newsgroup, I can see over...

Front-end question
I don't understand very well, how FE server function.... Just download "Using Exchange 2000 Server and Exchange Server 2003 Front-End Servers"but i don't understand how FE and BE comunicate in a multiple server scenario! if i have more than one FE server, how i understand which BE use which FE, when a client send a determinated mail?! I hope that my question is not very generic, for a syntetic answer....thank to all "MMC" <> wrote: >I don't understand very well, how FE server function.... >Just download "Using Exchange 200...