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
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?
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}!\\" &_...
I keep getting the error Mismatch types
computersInOU is a array of computer names from an OU. I would just like to be able to put on computer name at time in the string strComputer and then send strComputer to the function IsConnectible.
For each x in computersInOU
strComputer = x
If...
My job would like to have the capability to ping every machine in a certain OU. I have seen methods of reading in a file with all the computer names, but a file like of just names is to long to maintain. I would like to be able to supply a OU and just ping all the machine names in that OU. Is...
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.