changing ip address remotely causes disconnection
when i try to run this and change the ip address of a machine remotely, it disconnects before I can change the ip gateway. how can i get this working without getting disconnected?$wmi = Get-WmiObject...
View ArticleUse a CSV for workstation names, then query connection speed
Greetings all, I am not a scripter and have not had success getting this to work and my searching hasn't helped!I have a CSV of the workstations I want to query for their connection speed but I am...
View ArticleShould be easy
I thought this would be easy. Just want to remove all spaces from a string so I can save string as filename with no spaces. I have tried the following:set fil=%%a: =%and several other string...
View ArticleVBScript issue opening pdf files
I am having troubles getting the correct syntax to open a number of pdf files using Adobe Reader.Dim objFSO Dim MyFile Dim MyFolder Dim textPath Dim pdfPath Dim objShell 'The following variables are...
View ArticleHelp me!
This script run OK.$servers = 'SERVER01' $grupo = 'Administrators' $query = "Associators of {Win32_Group.Domain='$servers',Name='$grupo'} where Role=GroupComponent" Get-WMIObject -query $query...
View ArticleRetriving data from a text file using vbs
Hi all,Im relatively new at this, but want to delve right into it.I need to look for a string of text in a log file.When that string of text is found, I want to get the next 4 lines of text immediately...
View Articlepowershell set-aduser help.
I need to input ipphone for every user in the AD. (windows 2008 R2 DCs)The users.csv file is this format:(username is the samaccount)username,...
View ArticleAutopopulate Inventory Spreadsheet
Dear Scripting PeopleI have been requested by my employers to create an inventory of 10 primary schools that I am currently the IT technician for. That's 10 inventories they want me to create by the...
View ArticleClear Remote Desktop Services Profile tab in user accounts
I would like to get a Powershell script to Clear Remote Desktop Services Profile tab in user accounts.This field is filled in for about 90 users and I need to remove it.Is there is quick easy script to...
View ArticlePowershell Method to Check and Validate Lync Regex
I am looking for the best way to use powershell to test normalization rules for lync. For instance:RegEx: ^\+(\d\d)0?(\d+)\|?\d*$Input string: anyphonenumberMatch test: $true or falseIf true Output:...
View ArticleEnableBitlocker and RK switch
HelloI need to know how I can make this script to save the Recovery Key to a network shared drive as follows:First it needs to creat a folder by using the computer name as a variable, second it needs...
View Articleunlock a pin-locked broadband device using powershell and AT-commands
Hello all, I wrote a powershell script to automatically unlock a pin-locked broadband device during windows boot. The script already works fine (somehow... this is my first powershell script exceeding...
View ArticleUnable to set range using cells - Type mismatch: 'Cells'
Can somebody explain why I am getting the "Type mismatch: 'Cells'" run time error?The error occurs on the following line Set oRange...
View Articlethe PCI Devices and their PCI slot information
Hi, I am looking for a script to pull the details of the PCI devices connected to a host which is running windows OS. Any help on this topic would be appreciated. Thanks.
View ArticleBest way to monitor link quality with powershell
I am planning to use test-connection to test link quality of devices. I wrote the following but I was wondering if there was a more accurate way. I just created an array of numbers to test my logic out...
View ArticleWMIC in Batch File
Can anyone tell me what is wrong with this script? I have used this exact script with other WMIC commands and it works fine. The WMIC commands also work fine outside of the script.FOR /F "tokens=*"...
View ArticleAdvice with get-adgroupmember script to export members of a AD group
Hi All,I am looking for a script which will export below user attributes of a AD group for e.g. DL_APP_TM_CTX...THis is domain local group.. users from different child domain and trusted domain are...
View Articlecount the number of computers by OU
I am using the script listed below (from: http://powershell.com/cs/media/p/7911.aspx) and it works pretty well for about half of the directory. However we have separate OU's with the same...
View ArticleTrying to get multiple computers to write to a network share
When I run manually, text get appended, when I deploy this with SCCM only one computer writes to the file. What am I doing wrong here?Thanks for any helpSet wshShell = WScript.CreateObject(...
View ArticleGet-ACL and Set-ACL \ Parent Object inheritance
Hello,Another question about ACL and Inheritance.I have a simple structure with E:\Test as the parent folder and "000", "001", "002", and "003" as subfolders. The subfolders inherit from E:\Test and...
View Article