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

Folder which holds files of sql server data tools

Hi All,        I want to know weather sql server data tools is  installed or not.If it is installed then I would like to know which folder in C: drive holds the installation files of sql server data...

View Article


match more than one arguement on a line

I read a file and I search some specific lines that contains the word "transfered" and the CODES "ZEN" and "ROK". My script should select only the lines with these three parameters BUT the ROK should...

View Article


SendKeys not executing

Team,I am writing VBS to perform a number of SendKeys. All of the sendkeys commands work with the exception of: set a = createobject("wscript.shell") a.run "http://192.168.69.154/stalist.cgi"...

View Article

Extract successful logins to output

I am working to create a script that will do the following:1) find successful logins of specific users.  Check - Got this2) I need to output to a file with only a few variables.  Right now I am working...

View Article

Getting Data from SCCM

Getting data from SCCM via Get-WmiObjectIf anyone can help me out I would certainly appreciate it. I'm new to powershell and I'm not understanding it very well.Here is what I'm trying to do, I have a...

View Article


Script to retrieve PC name and all Printers attached then output to txt file.

Sorry I am new to PowerShell and learning as I go.   I want to use the get-content, and get-printer to output the name of a pc and all printers attached then write the information to a txt file....

View Article

how do I input data for a switch parameter?

Complete newbie to powershell...I have set a parameter to be mandatory, but I am not familiar with the input format to make it work. My parameter looks like this [Parameter(Mandatory = $true)[switch]...

View Article

Script to get the status of a PW in 365

I have been doing a ton of research unfortunately I don't think this is possible. I am looking to see when a password expires for a specific account that is only in 365. It is not synced with AD so it...

View Article


Powershell to create Outlook 2013 POP email account

I have been searching and can see nothing that helps, without exchange. If I had exchange it seems there are a multitude. So, I have 1000+ (literally, and climbing...this is a common function, hence, I...

View Article


Exchange Logon

Hey guys, I'm trying to get the last logon time for a select few mailboxes. I am importing from a csv file containing the AD displayname, and description (both fields i need in my output) and the only...

View Article

I have made a .bat file that shuts down my pc at a certain time, but I tend...

Im a student and a gamer, yet they tend to interfere with eachother cuz I am used to game until midnight :( I have made a batch file that shuts my pc down, but as the title says, I often just restart...

View Article

add a line to end of the file using VBscript

HII am working with a software that only accept Vb script commands.I have a file that has 8 columns. I need to add a line at the end of the file using VB scriptI need this line to add numbers of amount...

View Article

Error message running powershell as admin, not running ISE as admin

I have a powershell script local on my dc. When I run the script from inside ISE (as admin) it works beautifully. When I run it just inside a powershell window (as admin) it gives me an...

View Article


Append an XML Fragment using powershell

I m running into an issues appending an xml attribute fragment. I had this working but now im getting the below errors. Below is the default xml structure and I want to add items under the Assignments...

View Article

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 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

Batch command to find service running or not

HI All,       I have task to write batch script and find particular service  is existed or not.If service is existed then I would like to know is it running or not.Can any one help me how can I do...

View Article


Copy files with owner rights problem :/

Hello together,here's a short description of my problem:We've got a fileserver with several folders and mapped drives (e.g. home, dep, etc.) and we're about to move all files to a new storagesystem....

View Article

Script to mail user before the expiry date of user accounts

Hi Experts,We have some user accounts (generic ID's) which are been created for a few months on users demand. I was trying to write a script which mail's to the mail id mentioned in E-mail Tab...

View Article

Powershell multiple copy jobs starts simultanously

I have 4 html folders where the files are renewed and then the folder is copied around to some different locations.What I have done so fare is this:4 lines "copy-item UNC-PATH -recurse -destination...

View Article
Browsing all 15028 articles
Browse latest View live


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