Search found 416 matches
- Thu May 29, 2008 5:08 am
- Forum: VBScript
- Topic: Creating users from CSV file in AD
- Replies: 3
- Views: 3478
Creating users from CSV file in AD
Probably the easiest way to do this is in Windows PowerShell using the cmdlets from www.quest.com/powershell. Import-CSV <filename> | ForEach-Object { New-QADUser -ou <ou_name> -property $_.column } Replace -property with the AD property name (as in, -city, -samaccountname, -sn, or whatever). Replac...
Jeff Don
FYI: Jeff Hicks will soon be back in the forums more regularly. He's finishing up a book on managing Active Directory using Windows PowerShell (which will be published by SAPIEN Press), and the book is eating most of his time right now. Actually, this week he's on vacation - slacker! (just kidding) ...
- Thu May 08, 2008 11:51 pm
- Forum: PowerShell
- Topic: Tips for output for WMI query
- Replies: 2
- Views: 4037
Tips for output for WMI query
function Get-DriveInventory { PROCESS { #get drives from WMI $drives = gwmi win32_logicaldisk -comp $_ -filter "drivetype=3" #construct output objects foreach ($drive in $drives) { $obj = New-Object psobject ...
- Thu May 08, 2008 7:33 am
- Forum: VBScript
- Topic: VBscript to check/uncheck...
- Replies: 4
- Views: 3416
VBscript to check/uncheck...
You install it on whatever machine is running the script. It's not an "agent" or anything. And it's a set of add-in commands for PowerShell, not standalone software. As for rights, you need to be able to edit a GPO - generally, that means the user utilizing the software needs to be a domai...
- Thu May 08, 2008 5:04 am
- Forum: VBScript
- Topic: Renaming a bunch of files
- Replies: 3
- Views: 3239
Renaming a bunch of files
strJustFile = left(strFilename, Len(strFilename)-4)
That is, take the leftmost characters. How many of them? However many characters are in the string, minus 4 - which would be the period and the three-character filename extension.
That is, take the leftmost characters. How many of them? However many characters are in the string, minus 4 - which would be the period and the three-character filename extension.
- Wed May 07, 2008 11:47 pm
- Forum: VBScript
- Topic: Renaming a bunch of files
- Replies: 3
- Views: 3239
Renaming a bunch of files
So, if strFilename is the filename:
strExt = Right(strFilename,2)
Will put the last two digits of the filename extension into strExt. Then
intExt = CInt(strExt)
Will convert those two digits to a number, stored in intExt. You can then perform math with intExt.
strExt = Right(strFilename,2)
Will put the last two digits of the filename extension into strExt. Then
intExt = CInt(strExt)
Will convert those two digits to a number, stored in intExt. You can then perform math with intExt.
- Wed May 07, 2008 11:26 pm
- Forum: VBScript
- Topic: VBScript for Database Backup...
- Replies: 1
- Views: 1981
VBScript for Database Backup...
What kind of database server are we talking about?
- Tue May 06, 2008 11:36 pm
- Forum: VBScript
- Topic: VBScript-check dskspace; threshold DB shrinking.
- Replies: 2
- Views: 3032
VBScript-check dskspace; threshold DB shrinking.
Please keep in mind that most of us aren't able to run your script since our environments differ from yours.
Can you tell us what error occurs, or what the script is supposed to do that it isn't doing? Exactly why is the script not serving its purpose?
Can you tell us what error occurs, or what the script is supposed to do that it isn't doing? Exactly why is the script not serving its purpose?
- Sun May 04, 2008 11:51 pm
- Forum: PowerShell
- Topic: WMI Problem
- Replies: 1
- Views: 3318
WMI Problem
I'm great with people using v2 - just NOT in production, as it's not stable enough (in terms of design) to make a part of production processes. Also keep in mind that v2's stability from OS to OS and platform to platform is variable. Right now the focus is mainly on Win2008 - once they reach "b...
- Mon Apr 28, 2008 4:05 am
- Forum: PowerShell
- Topic: computer asset inventory
- Replies: 59
- Views: 50751
computer asset inventory
I am going to stress this very heavily Dee. You really need to get a book or take a class in PowerShell. YOu are asing questions about each lin eof code. Many of these questions you are very close to having an answer for but it appears you lack some of the fundamentals. Save yourseld some frust...