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

Powershell datagridview datasource or not - what is the best practice

I need a simple datagridview containing a checkbox column and 2 string columns.  The checkbox column gets set by a user, but the other 2 can be set programmatically based on conditions in the network....

View Article


Get last boot time for server list and Export to csv file

Hi,I am a newb when it comes to scripting/powershell.  I have a PS script to read from a list of server names in a txt file and return the last boot time information for each server.  The script works...

View Article


Powershell Rename Files in Folders and Subfolders to Date and Time Stamp

I need a script that will rename all the files in a folder and subfolder to the file's original date and time stamp. 

View Article

Need help with vbscript script to export active members of a domain local AD...

Hi All,I have a requirement to export only active (no disabled users) members of domain local group to csv file. I am trying below vbscript, but facing some issues. Need your assistance to resolve the...

View Article

Use Powershell to insert LastBootUpTime into SQL table

Is there a way to find LastBootUpTime with Powershell and insert results to a SQL table with data type of smalldatetime?  I have attempted the following but receive error:  Exception calling...

View Article


Update value of CMIInstance ApplicationPoolIdentity Password value

I am able to get to a Username value of the Application pool identity via below script$tmp = Get-CimInstance -Namespace root/MicrosoftIISv2 -computer $servername -ClassName IIsApplicationPoolSetting...

View Article

Regex :(

I'm trying to wrap my head around this and I'm sure I'm missing something simple. I need a regular expression to match " 0 KB " (space zero space KB space). I've got the following expression, but it...

View Article

VBS script help - Rename folders

Hello,I've been asked to come up with a way to rename all of the first level folders in a specific location to follow a new naming convention.  The folders currently are named like this: test.folder....

View Article


Script to kill a process based upon memory utilization

Can any help me or provide me with a script where it kills a process if it reaches above threshold limit?sachin

View Article


Import favorites?

Hello,is there a Visual Basic script that can:1. Delete all Internet Explorer Favorites 2. Import Internet Explorer Favorites from a bookmark.htm file?Thanks in advance!

View Article

Powershell: change NTFS permissions?

Hello all,for the file server I'm trying to create a PS script for automatic home folder creation.First thing I want to do is disable the parent folder rights to be inherited into this user folder.In...

View Article

simple - check file, if found how old? if less than a specified hour email alert

Hello AllI'm new to PowerShell and have found a lot of information and examples in the forums but I'm stuck and need quick help.I need to check a shared drive for specific files - specific suffix...

View Article

vbscript connecting to AD with alternate credential​s and build outlook...

Hello, I am trying to pass alternate AD credentials in a script and display user attributes (ie displayname, department, title).I want to prompt for a username and password and then I want the script...

View Article


Add a Requirement to an existing Application/Deployment Type in CM2012

Is it possible that through script (Vbscript or Powershell) add a Requirement to an existing Application/Deployment Type in CM2012. I would really appreciate an example. In my case I want to add a...

View Article

script to run sql jobs on different servers from single scripts with some...

I have 3 sql jobs on 3 different servers and want to execute them one by one  with 5 min interval each, If job failed then it should stop --Himanshu Kulkarni

View Article


Get-WinEvent - Security

I've been trying to use eventcombmt to find some user logon attempts but the application crashes. Since there are no other alternatives I thought PowerShell would be my friend.I need to crawl the...

View Article

Check file size and run batch file

Hi.I have the following script with which I check the file size and run a batch file depending on the size. My problem is that the file name will be different each time. There will be one file at a...

View Article


Powershell datagridview datasource or not - what is the best practice

I need a simple datagridview containing a checkbox column and 2 string columns.  The checkbox column gets set by a user, but the other 2 can be set programmatically based on conditions in the network....

View Article

Question About VBScript With XML

I am using XMLDOM objects in vbscript to configure and maintain configuration files used by some applications.  I am running into one problem that I have not been able to resolve however.The text of...

View Article

Script to prepend all filenames within a directory

Hey guys.  I've found an issue with adobes bates numbering tool, where file names are messing up the order in which they are numbered.  I was hoping to write a script that users would be able to click...

View Article
Browsing all 15028 articles
Browse latest View live


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