Function against multiple computers from list?
Howdy - I found this great function that i need to use but against multiple servers that I have in a list.how can I modify this to use against several servers in a file?function RemoteCMD {...
View Articledynamically parse the attributes of an XML element..
SAMPLE.XML<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Document Date="2013-09-06T11:55:29.151-04:00"> <Asset applicationName="Sample" id="301">...
View ArticleReturn the samaccountnames for a list of displaynames
Hi there,I am trying to write a script to read a list of displaynames (h:\fullnames.txt) and return the samaccountname for each entry. I am dealing with AD user objects. The script I wrote below...
View Articlechange the IP address of existing printer port
I'm looking for a script that will change the IP address of existing IP printer ports. For example, I need to change a Konica printer named KMBT5B3E52 at address 192.168.1.150 to address 192.168.1.100...
View ArticleConvert XML to CSV with utf8 encoding in Powershell 3.0 (Windows Server 2012)?
Hi allI've looked through loads of threads, but haven't been able to find a solution, so I hope you can help me.I use this script to convert in Powershell 2 and have been trying all day to get it...
View ArticleCreating an Array of items in a folder
Hello,I am in an environment where we lock down the computers. Basically we provide icons to the user that we want them to have. One of the challenges moving from Windows XP and Windows 7 is the...
View ArticleScript for manager field in AD users and computers
I was wanting to make a script to e-mail managers after every 6 months of an employee working. I know there is a field in AD users and computers to put down your manager. I just wondered if after every...
View ArticleVbscript and HTA: when using option explicit, populating a select combo box...
Hi... I've got a handle on this except if I use the 'option explicit' setting. So even though this works :Sub LoadClassstrNewFile = "classes.txt"Set objFSO =...
View ArticleVBS Script Query
Hello,I have this script below to download a file daily... only problem is the .zip file changes it's name slightly daily, so one day it could be 490 and the next it will go to 491 and so on...Is there...
View ArticlePowerShell and Foriegn Security Principals
I want to use PowerShell to use the SIDs in my ForeignSecurityPrincipals OU to query against a foreign DC that I have rights to query against, and return the "Readable Name" field from the foreign AD....
View ArticleGet-VM not giving output in while loop. Is this a bug?
Hey!I just ran into a curious problem when doing a fast and simple one-liner. Case: I'm auto rebooting VM's, and watching their uptime tells me if they have rebooted yet. I'm running on Windows Server...
View ArticleA Script to read and copy from a Windows Mobile device
Hey forum....When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some...
View ArticleWMI / Powershell - Getting last logged on information
Hello,I've been working on a lot of scripts lately and I'm having some trouble parsing the data I'm getting. I have a quite a few machines that are online but with no one logged into them. I am about...
View ArticleReferencing a parent object from a nested child object
Consider:$Parent = New-Object PSCustomObject $Parent|Add-Member -MemberType NoteProperty -Name ThisObj -Value {$this} $Child = New-Object PSCustomObject $Child|Add-Member -MemberType NoteProperty -Name...
View ArticleSub-OUs in AD
Can somebody please help me to get the result of below script in a txt or csv file.On Error Resume NextConst ADS_SCOPE_SUBTREE = 2Set objConnection = CreateObject("ADODB.Connection") Set objCommand =...
View ArticlePowershell find/replace in web.config not updating Password values
All, I am trying to use a powershell to update values when moving code/configs from one environment to another (yes, I know it's hokey, but it is what it is). I basically have the values I wanted...
View ArticleNeed help with invoke-webrequest cmdlet
hi all,I am trying to use powershell cmdlet invoke-webrequest to access a website that goes to "sleep" after about minutes, and I am trying to write a script using powershell to access the site like...
View ArticleScript to find machines present in different OU (OU input is given from Text...
On Error Resume Next Const ADS_SCOPE_SUBTREE = 2 Const ForReading = 1 Set objDictionary = CreateObject("Scripting.Dictionary") Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile =...
View ArticleVBScript will not produce result using task scheduler
I have worked on this for about 8 hours and have tried a ton of advice from lots of forums, but still cannot get this working.I have a script that creates and sends an email when it is run. When run...
View ArticleError object not a collection. It seems that script can't determinate it like...
Hey, Scripting Guys.Help me, please, solve my problem. I have a vbs script with gui (HTA). I'm using multi select listbox. But have an error Error "Object not a collection". It seems that script can't...
View Article