Search found 15436 matches
- Wed Dec 09, 2009 3:00 am
- Forum: PowerShell
- Topic: Opening command prompt and entering commands
- Replies: 5
- Views: 2513
Opening command prompt and entering commands
To be certain I just ran the following from PowerShell 2.0 winrs -r:myremotehost cmd This produced a CMD.EXE prompt from the remote machine. I am not set up on the domain for other than integrated secuity and do not want to change things to test regular authentication or the use of a standard user a...
- Wed Dec 09, 2009 2:06 am
- Forum: PowerShell
- Topic: Problem with counts from hashtable
- Replies: 16
- Views: 6143
Problem with counts from hashtable
Hi trig It's still clear as musd too me. Perhaps I am just a little thick but I don't follow. WHat is an orpahn file? WHy is this different than a regular file? It sounds like you have a bunch of files that you want to look at and delete some. What is the log you speak of? What does it have to do wi...
- Wed Dec 09, 2009 1:44 am
- Forum: PowerShell
- Topic: Script to find servers in AD
- Replies: 18
- Views: 6616
Script to find servers in AD
If that works then the previous GC code should have worked. YOu must have had a typo somewhere. THat's OK as this will also do what you need.
- Tue Dec 08, 2009 12:25 pm
- Forum: VBScript
- Topic: Need help designing script
- Replies: 3
- Views: 1322
Need help designing script
YOu have to formulate the rules of teh search in english first. We can then convert that to logic.
From your post it is too difficult to know the exact rules.
There must be some root folder to start with that is constant.
jvierra2009-12-08 20:25:38
From your post it is too difficult to know the exact rules.
There must be some root folder to start with that is constant.
jvierra2009-12-08 20:25:38
- Tue Dec 08, 2009 7:03 am
- Forum: VBScript
- Topic: Need help designing script
- Replies: 3
- Views: 1322
Need help designing script
DOn't talk about Al Gore's Rhythm here. This is for scripting. As for the script - I suggest using Com_DataFile and set the folder, drive and use pattern match for teh file name. SELECT * from Cim_Datafile WHERE drive = 'c:' and path ='' and extension = 'ini' The above will return boot.ini from teh ...
- Tue Dec 08, 2009 3:12 am
- Forum: PowerShell
- Topic: Script to find servers in AD
- Replies: 18
- Views: 6616
Script to find servers in AD
This
$searcher.FindAll()|%{$_.Properties.name}
Finds all computers in the GC in my forest.
Try listing all computers found before filtering for name parts.
$searcher.FindAll()|%{$_.Properties.name}
Finds all computers in the GC in my forest.
Try listing all computers found before filtering for name parts.
- Tue Dec 08, 2009 12:12 am
- Forum: PowerShell
- Topic: Script to find servers in AD
- Replies: 18
- Views: 6616
Script to find servers in AD
Are you sure you have permissions on all of the other domains? You still need to be able to authenticate on a domain in rder to read it.
- Mon Dec 07, 2009 6:44 am
- Forum: VBScript
- Topic: Efficiency
- Replies: 17
- Views: 7335
Efficiency
I am a "zero-degree" black and orange scripter belt. Honor of supreme script master.
I started scriupting before teh PC was born.
VBscript was a trivial add-on.
I started scriupting before teh PC was born.
VBscript was a trivial add-on.
- Mon Dec 07, 2009 4:55 am
- Forum: VBScript
- Topic: Read and report from logfiles
- Replies: 5
- Views: 2331
Read and report from logfiles
Use command redirectors as with an commandline program. YOu can filter output with this one FINDSTR [/E] [/L] [/R] [/S] [/X] [/V] [/N] [/M] [/O] [/F:file] [/C:string] [/G:file] [/D:dir list] [/A:color attributes] [/OFF[LINE]] strings [[drive:][path]filename[ ...]] /B Matche...
- Mon Dec 07, 2009 4:38 am
- Forum: VBScript
- Topic: Read and report from logfiles
- Replies: 5
- Views: 2331
Read and report from logfiles
First rule of scripting/administration - KISS! Always look at the builtin OS utilities first. This will save many hundreds of wasted hours and errors. If you just want to learn xcripting then this is not the best problem to start with. Start with: 1. How to enumerate files in script. 2. How to read ...