My boss has asked me to supply a number of how many printers are located per building. Is there a way to run a script on a print server so that it list the printer name and its Ip Address. It would be easy to count b/c the buildings are broke down by IP range.
I would like to create script that will search my global catalog and determine whether the user exist. I would like to print the list back out stating whether it was accepted or not. Does any one know the command to search the "GC"? The list is in this format:
Smith, Steven J.
I have been asked to create a GPO that restricts users ability to save docs to the C drive. So far I have created a GPO with the following settings.
*loopback enable in computer settings set for replace
* folder redirection for documents and application data pointing to their user folders...
I have a list of computers and need to determine what type of OS they have on them.
CN=COCL28I-1 ,OU=Computers,OU=ITSS,OU=VACO,DC=dva,DC=va,DC=gov
I have not had much practice using
getObject("wingmts://
what would I need to print what type of OS cocl28-I has?
I have a file of computer names that look like this
"CN=COCL28I,OU=Computers,OU=ITSS,OU=VACO,DC=dva,DC=va,DC=gov"
The quotation marks are at the front and end of string I need to remove them so I can pass this string to the LDAP
Is there a command to remove chars
Ok I must be doing something wrong. I tried to do a simple example and I get this error
Err: Object required:"ActiveWorkBook'
@ line 6
If I can get the excel sheet to do what I want I think I will be ok.
' VB Script Document
Dim objXL, myWS, strTitle1
Set objXL =...
now I can do this with each OU? How would I add something to each OU. Or should I say go back in forth. Say I add to ORM spread sheet 2 entries and I need to add something to NOC?
Now is myWS the entire workbook?
Set myWS = objXL.ActiveWorkbook.Worksheets.Add()
myWS.Name = "OU name"
This program reads a file with out of date workstations. The workstations are in different OU and I want to list the workstations by OU's in different Excel sheets. I can not seem to figure out how to create spread sheets for each OU's list of Workstations. I have to be able to create the...
I know how to open an excel spread sheet using .vbs. I have a huge list of data but I want to separate each OU on the same workbook but on different sheets. How do you access each sheet within a workbook?
The code you provided captures the "=". How would I take the "=" sign out
"CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov"
what actually does the Mid( , ) work?
arTmp = Split(strLine, ",")
strCN = Mid(arTmp(0), 4)
strOU = Mid(arTmp(3), 4)
Is there something wrong with this code? I get this error message.
' VB Script Document
Dim objFile, strGuyFile, strFilePath
strFilePath = "c:\temp\outofdate.txt"
'opens file
Set objFile = CreateObject("Scripting.FileSystemObject")
'****Invalid procedure call or argument****
Set strGuyFile...
My job would like me to parse a file that contains a list of computer names in the following format:
"CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov"
"CN=co0828-01,OU=VHACO Laptops,OU=VHA,DC=dva,DC=va,DC=gov"
I was wondering if anyone knew a better logic of parsing this information...
I would like to delete the contents of a registry using a script. I think my logic is correct but it won't delete contents. For some reason this statement Return = objReg3.DeleteKey(HKU, strKeyPath3) does not return 0. I also think there is a problem with permission on the object that won't...
The registry is not delete once I go into regedit. Does the code I have looking right
On Error Resume Next
Const HKU = &H80000003
strComputer = "."
Set StdOut = CreateObject("WScript.StdOut")
sMethod = "DeleteKey"
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.