Script to remove network bindings
I have been experimenting with a way to get Powershell to remove network bindings on a group of remote computers, instead of having to use NVSPBIND. I have the following:Get-WmiObject -Query "select *...
View ArticleSuppress output?
I am trying to "merge" several XML files based on some XPath criteria. It seems to work but when I run my script in the ISE I get output that I would like to suppress. I have reason to believe that the...
View ArticleWSH.popup timeout bug
All,I have been researching this problem in paritcular,havent found any soluion or links which point to a solution yet.It looks like when popup message in the wsh object(wsh.popup)is used to display a...
View Articlevbscript write error to log file
I know how to log some text I enter in a log file but I need to know how to log any ERROR in the vbscript to a log file. The reason is I run a bunch of code as the system account and if it blows up I...
View ArticleWindows 8 and Metro
I am writing a script to automate some things for my company. But, I can't figure out an easy way to delete Metro icons with a Windows CMD. Any ideas or luck doing this?Thanks!
View ArticlePowershell script to reurn a list of created users for a week
I need to create a script that will give me the created or deleted users for a week (I need to do both). the script needs to be dynamic in that it runs at the end of the week and shows me who was...
View Articlehow to get distinguished name and operating system details for multiple...
I am using this command to get the dn of multiple machine accounts in a domainBut I also need operating system details with dn..am not able to figure it out..can somebody please help..for /f %x in...
View ArticleObtain the latest ISO image file from the Microsoft Download Center via...
I am trying to identify a way to locate and download the latest ISO image file from the Microsoft Download Center via PowerShell.Unfortunately, MS changes the path to these files each month. Any and...
View ArticleExporting to .pst using task scheduler (help with scripts)
Hello, I have this post in another topic but I thought I'd try the scripting guys.I am trying to create a script that will run with the task scheduler to export my .pst files to a share folder. Here is...
View ArticleCopy newest file else keep folder empty
would like a batch file in command line or written in VBSCRIPT for the following scenario:There are 2 folders:1-IncomingData 2-NewestDataThe 1-IncomingData folder has several .txt files in it, new...
View ArticleTrouble with switch in PowerShell
$SamName = Read-Host 'PLEASE ENTER THE USERNAME OF THE PERSON YOU ARE BUILDING THE PC FOR' $root = [ADSI]'' $searcher = New-Object System.DirectoryServices.DirectorySearcher($root) $searcher.filter =...
View ArticleNeed help for a powershell module
Hi Folks,I am trying to run the tasklist /m with powershell. So far I was able to as close to get-process.lIs there any command equivalent to tasklist /m in powershell?
View ArticlePowershell 3.0: unattended install of .net 4, reboot then install Powershell...
Hi,As title mentions, I'd like to install Powershell 3.0 (= WMF 3.0) unattended. However, the prereq .net 4 should also be checked if existing if not install it, reboot then install WMF 3.0Any chance...
View ArticlePowershell Script to compare AD group memberships of multiple users
Hi All,I'm looking for a script (preferably powershell) to compare the access of particular team members within the organisation controlled by AD groups.Input: Multiple usernames (happy to enter them...
View ArticleScript to reboot remote servers in sequential order
I need a script to reboot remote servers in sequential order.When the first server is rebooted, I want the script to wait for the server to come back online (sleep for like 5 - 10 minutes), check a...
View ArticlePowershell group membership copy question?
I have a csv file formatted as below:ChildRootGroup1Group2Group3Group4So above I would want all group1 members to copy over to group2 then group3 to group4 and so on.How can I do this in...
View ArticleReboot servers in sequence and check its state
Hello Everybody, I want to use a script to reboot windows servers in order with a condition that to ensure that the last server rebooted is up before rebooting the next server. I'm using a script for...
View ArticleHTA question. HTML button click and count the clicks failed
<html><head> <title>Test HTML button</title></head><Script language="VBscript"> i = 1 Sub RunScript DataArea.InnerHTML = "You clicked 'Count the clicks' button "...
View ArticleVBScript - Building upon a base class.
I have a Class ‘VBS’ with 3 properties and a Get & Let Method for each property.Option Explicit Public VBS Class VBSObject '-------------- Private MyTitle, _ MyCopyright, _ MyVersion Private Sub...
View ArticlePowershell to Access Database, can't get IPaddress
I am making an inventory PS script with access and everything is going well until I get to the network portion of my code. For some reason that I must be overlooking or just do not know I cant get the...
View Article