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

PoswerShell - Compare 2 x CSV files, only if data matches in column 1 add all...

OK, 1st the background... I have been provided a list of users of a particular group. We needed to know what computers (or IP's) the users are connected to...So, using Shared Folders, I have exported a...

View Article


Script to fix invalid characters for SharePoint synced share

I'm hoping for some help implementing a script that will rename files with characters that are invalid for SharePoint, in a synced file share that is accessed by everyone at an office.   Some...

View Article


Powershell 2.0 calling a function from a for loop and capturing parameters in...

I'm using powershell 2.0 and plan to use this on Windows 2008 and Windows 7.I'm trying to figure out how to call a function from a For Loop and capture the data, so I don't have to repeat the same...

View Article

Command to display only the latest modified directory within another...

Okay I want to be able to run a .cmd file from my workstation to query a certain folder on remote clients. I want the command to find the specific folder within another folder and display the current...

View Article

Script to query OU for last Windows update date and time

Hi All, I need help in writing a script which can query an OU in active directory and then return most recent date of windows updates installation. It will also be helpful if the script can sort the...

View Article


Master XML configuration file for same script on multiple servers

I have a script that collects system and SharePoint-related data from a server and emails it to a mailbox. The XML configuration file it reads contains the following...

View Article

Missing user rights assignment entries for many security policies in list...

Hello,I want to modify the user rights assignment for a local security policy. In the GUI, find User Rights Assignment as follows: Win+R -> Enter "secpol.msc" -> Go to Local Policies -> Go to...

View Article

Assign IP to newly created VM using powershell

Hi,I have created a new VM in hyperv and added a fresh Windows server 2012 VHD.Now I need to assign IP to the new VM using powershell.Regards,Suganya.

View Article


BUG - Powershell/PSExec - Missing Information outside ISE

I´m affected of this Bug in Powershell/PSExechttp://stackoverflow.com/questions/22593651/powershell-psexec-jobExecuting powershell script and execute for example ping/tracert/iperfvia psexec on...

View Article


ADO.NET, optimize code, writing to a sql table

Hi forum, first a big picture: I've got a csv-file with app. 500 Servers. The task is to: connect to every server, collect all user-accounts having anything to do with SQL-Server services. Then loop...

View Article

Find Software with Version using Power-shell Command

Hi All,         In have very urgent requirement to find the version of particular software .Is there any way to find the result as we write below snippet of code to find the software list using batch...

View Article

batch script to find software installed or not

HI All,        I required to find weather software installed or not from control panel through batch script and below is the script .         But when i run the script it is showing info as "No...

View Article

Powershell Notification Icon - Show balloon when clicked

HiI managed to create a notification icon in the task bar that changes based on Status of VPN connection.The icon will stay in the taskbar at all times, so I would like the user to be able to get the...

View Article


Find a tombstoned device in a forest

I have a tombstoned device on a domain that has over 80 domain controllers. We are having a very difficult time finding that device. Unfortunately, EventID 1864 in the Directory Service log does not...

View Article

Get logged-in user via WMI query and using found value to retrieve some AD...

Hi,I need to retrieve the logged-in user from a computer system, and found a WMI-query, but with the result I like to retrieve some userobjects like displayname, telnr and mail.I was able to make a...

View Article


Does KB974524 apply to Windows Server 2003 products? If so, how to query for...

I'd like to use WMI for querying installed software list from our old Windows 2003 servers.I have found a KB article(http://support.microsoft.com/kb/974524) instructing not to use the class...

View Article

Display message using If condition is null in Power-shell

Hi All,         I am getting list of particular product using power-shell.I want to display the info if i didn't get any list of info as "No information  exist with this product".       I had received...

View Article


Powershell Script in Group Policy Only Runs for User who Created It

Hi,I have recently created a powershell script and would like to run it through group policy as part of a logon script on our domain.I have three users (including myself) in a test OU in Active...

View Article

creating a list of IP adresses of a subnet to a textfile ...i just seem to...

the goal is to get asked for an ip range eg. 192.168.20.x of any given Class C subnetand then have a start and end ip for the range (which should at the end reflect our DHCP range)the result should...

View Article

Adding an IF statment?

I have the following (functioning) script, which applies a FSRM quota template to a user wihtin the specified group.I receive an error if the quota exists - how do I stop this behavior? (IF...

View Article
Browsing all 15028 articles
Browse latest View live


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