Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Copy nodes, based on nested nodes, between xml files.

Hi,I have 2 XML files. I need to copy some nodes from one to the other. This will be determined by a node nested within those nodes.This will be run from a batch script, which needs to pass over the...

View Article


VB Script to find the last modified file and time in a directory

Hi,I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get...

View Article


PowerShell - Bulk-New-ADUser Creation via a csv file

This script creates bulk AD users via a csv file. The script creates & configures the user accounts correctly even though the following error message appears. How can I correct this?Set-Locaiton :...

View Article

Image may be NSFW.
Clik here to view.

batch file for checking every folder

hello friends,i have query  in creating batch programming.i have lot of folders in my local drive. i want to create a log file in every folder but log file is already available in some folders.i need a...

View Article

Append to CSV in PowerShell?

I'd like to find a way to append to an outputted csv file in Powershell.  Out-File has too much wasted space and duplicate lines.  Here's the script I'm trying to run:$a=Get-Content users.txtforeach...

View Article


Script to tracert multiple computer names and find specifc text

I'm looking for a script to tracert multiple servers and find a specific text in tracert output and get output as csv. Below is what I have: @ECHO OFF FOR /F %%S IN (SERVERS.TXT) DO ( ECHO %%S >>...

View Article

Automating website navigation using powershell

I need to navigate to a website and download an excel file on regular basis. So i am planning to automate it. I am trying to do this using powershell using wasp plugin. I need to click on open button...

View Article

How do I set RDP Gateway when trying to connect to Terminal Server in...

Hey,I need to remote logon to some windows servers and I must get through a RDP Gateway to connect.  I could use GUI (mstsc.exe) to connect them because I could see the options to set RDP gateway; But...

View Article


Need to get SQL InstanceName and Database name in a CSV file using powershell.

I need to get the instance names and database names in a SQL 2008R2 server into a CSV file using PowerShell for running my backup script.Desired Format.Instance,Database Instance1,Database1...

View Article


How to change dns setting using powershell

Hi every one, I am really confused where to start from I would like to populate just two fields in network adapter setting. those two fields are preferred DNS and alternate DNS. The ip will be...

View Article

Image may be NSFW.
Clik here to view.

ROBO COBY

Hello friends,i need to copy some folders one location to other by using robo copy.conditions are;1. copy the folder names which are start with alphabet "T" with extension of two letters.2. do not copy...

View Article

Query a List of Open WMI connections on a server from a remote system

We are monitoring a specific windows service on a server using Sitescope remote monitoring. The sitescope system uses a WMI method to Check if the service on a specific server is up or not. Initially...

View Article

Update Help on disconnected Windows 8.1

I have a Windows 8 system on a disconnected network.  I would like to update the help.  I have a Windows 7 system with PowerShell 4.  Is there any way to update the help for all of the Windows 8...

View Article


Urgent help on JQuery $.ajax.. no access control allow origin'

Hi AllI am hitting web services using the below code. but I get "no access control allow origin' header in present on the request resource. origin site is therefore not allowed access.<script...

View Article

How to save a created excel file produced from a PowerShell Invoke-Item program

I've written some PowerShell script which uses Invoke-Item to run an independent application which creates an open Excel file. Any ideas on how the save this opened Excel file using PowerShell script?...

View Article


search string in file

Hello all,All I'm trying to do is search a file for a string and print out that line.   That's it !   However, this seems hard to do it seems.  In linux, I use 'grep' which does exactly what i'm...

View Article

Script a report for AD Attribute 'Smart Card Is Required For Interactive Logon'

I'm in need to create a script that would dump a report on all the users in my domain that do NOT have the AD attribute 'Smart card is required for interactive logon'. I know a script is the best way...

View Article


System DSN not visible in ODBC Control panel

I am creating system dsn at run time using VB code to connect to database. My vb code makes entries in following registry key to create the dsn HKLM\SOFTWARE\ODBC\ODBC.INI. But I cannot see the actual...

View Article

Output from same script on two different platforms produce different outputs.

I'm running a command prompt script on two different platforms (Windows 7 desktop and a Microsoft Server 2008 R2 Enterprise platform) and the output the script produces is different on each platform....

View Article

Exchange 2010 powershell While loop script

I'm attempting to write a script that sends large amount of test emails to an account. I would like to use a for while loop for the number of emails I would like to send. I receive the error...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>