Search found 182 matches

by rasimmer
Mon Mar 30, 2009 7:28 am
Forum: VBScript
Topic: CPU Usage of a Process
Replies: 3
Views: 5144

CPU Usage of a Process

I have googled this to death, so I'd thought I'd ask you fellas your thoughts. All I'm trying to do is get an accurate (which I'm assuming what is displayed in Task Manager is 'accurate') % of CPU for a process. Here is the subfunction that I keep seeing, but my server shows like 7% in taskmgr and t...
by rasimmer
Mon Mar 30, 2009 7:28 am
Forum: VBScript
Topic: CPU Usage of a Process
Replies: 3
Views: 5144

CPU Usage of a Process

I have googled this to death, so I'd thought I'd ask you fellas your thoughts. All I'm trying to do is get an accurate (which I'm assuming what is displayed in Task Manager is 'accurate') % of CPU for a process. Here is the subfunction that I keep seeing, but my server shows like 7% in taskmgr and t...
by rasimmer
Fri Mar 27, 2009 5:37 am
Forum: VBScript
Topic: What now? Enumerating a hierarchy
Replies: 3
Views: 1512

What now? Enumerating a hierarchy

The person running the script would be required to have : READ Access to the share (i.e. C$, D$ or SERVERSHARE) READ Access to the filefolder(s) They would basically need to be able to browse to it manually or perform the read or modify on the serverworkstation remotely.rasimmer2009-03-27 12:38:34
by rasimmer
Thu Mar 26, 2009 5:44 am
Forum: VBScript
Topic: Static to DHCP script
Replies: 2
Views: 1388

Static to DHCP script

Look at the enable DHCP link: http://www.microsoft.com/technet/script ... x?mfr=true

And as far as permission, if you run the script as a Computer Startup script in Active Directory Group Policy, it will run as SYSTEM.rasimmer2009-03-26 12:45:30
by rasimmer
Thu Mar 26, 2009 3:50 am
Forum: VBScript
Topic: Recieve a null error with objUser.Put
Replies: 8
Views: 7663

Recieve a null error with objUser.Put



If objRecordSetEx("mail") = "" Or IsNull(objRecordSetEx("mail")) Then

Try this?
by rasimmer
Wed Mar 25, 2009 7:15 am
Forum: VBScript
Topic: Recieve a null error with objUser.Put
Replies: 8
Views: 7663

Recieve a null error with objUser.Put

If you just MsgBox objRecordSetEx("mail"), do you get any values? The IsNull function doesn't always work for me, so I usually do a check like:

If objRecordSetEx("mail") = "" Or IsNull(objRecordSetEx("mail")) Then
by rasimmer
Mon Mar 23, 2009 6:32 am
Forum: VBScript
Topic: DateLastAccessed Help
Replies: 13
Views: 8221

DateLastAccessed Help

I changed to Sub to a Function to give you an example which currently this script will give you the DateLastModified of just the shared folder. If you are wanting to recurse through all filesfolders, I would modify this to run locally and you will need to log that information which if I remember you...
by rasimmer
Mon Mar 23, 2009 2:55 am
Forum: VBScript
Topic: Default printing
Replies: 4
Views: 2157

Default printing

Are the users connecting to a print server? If so, you should be able to just make a change to the printer to accomplish rather than attack it from a desktop standpoint.
by rasimmer
Sun Mar 22, 2009 11:13 pm
Forum: VBScript
Topic: Printer Removal
Replies: 4
Views: 1932

Printer Removal

I would say you need parenthesis around the MsgBox statement, JHicks, but don't need an END IF if it's all on one line. You could also just have an extra END IF that isn't needed. If you format your code with 4 spaces or so, like: If whatever Then     If whatever =2 Then         Do whatever     Else...
by rasimmer
Fri Mar 20, 2009 5:39 am
Forum: VBScript
Topic: DateLastAccessed Help
Replies: 13
Views: 8221

DateLastAccessed Help

Ok...so my script is the rusted Yugo and JHicks has upped me with a 09 Corvette Z06...but really...which would you rather drive. Think of the insurance.... You could take that script and wrap in a HTA and just browse to directories too and write everything to Excel.Application formatted...get the Me...