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

1)_Ping 5 times in case of failure 2)_Perform PSExec 3 times in case of...

Hi i need to implement these three in below code could you help me out.1) Ping 5 times in case of failure2) Perform PSExec 3 times in case of failure3) Perform XCopy in case of failure.@echo offif...

View Article


Understanding Collections - WMI PropertyDataCollection

Hi!I'm trying to get my head around how Powershell collections work and I'm having trouble finding the answer. Specifically I'm exploring WMI share objects, and looking at the qualifiers in order to...

View Article


Old Exchange Script to Office 365 Exchange

Previously, I was using the script (on our old Exchange server) below to create a report on all emails sent to a different domain name aside from our company's registered domains. Now, we are using...

View Article

Creating script based on imapi2 library

Hello,I now have Windows 7 Professional. I have copied and pasted all the codes relating to this imapi link in the msdn...

View Article

Alternatives to PowerShell automation of Excel (Scheduled Task) in a Windows...

I have a handful of PowerShell scripts that ran as Scheduled Tasks on an old Windows 2008 SP2 server, which output reports as Excel workbooks with multiple worksheets, via a COM object. After migrating...

View Article


Search computers for specific files in domain

I need to find specific files in computers in domain environment. I tried several scripts (VBS and PS1) but I couldn't find antything really works for me. How can I manage this using PowerShell? (PS: I...

View Article

Javascript : Object Expected error.

Hi,I have used a javascript in my sharepoint portal. Whenever I open the page in IE, it shows me "Object Expected" error at Line:1 Char:1.Here is the code snippet that I have...

View Article

PowerShell Script - Remove writing permissions for certain groups in a folder...

Hello everyone!We would like to remove the writing permissions for all security groups that contain normal ad users in our archive folder structure.I would like to explain the situation a bit more...

View Article


Get-ADUser command add user to root domain security group

Hey, Scripting Guy! With the following command as root domain to the Security Group, located in the Child domain only want to enable users to add. But somehow I could not add to the group, type the...

View Article


Script to find the service and manage its state

We have a service that runs with different names on different machines like Bomgar-scadsadccd, Bomgarsdscchfn, BomgarscnkfkdkSo, here we need to write a VB script that will find this service with...

View Article

Turing a bunch or user supplied variables into a pretty table

need some help on this oneI need to turn this:$HDD1GB = "35" $HDD2GB = "30" $HDD3GB = "" $HDD4GB = "" $HDD1GBLabel = "data" $HDD2GBLabel = "backup" $HDD3GBLabel = "" $HDD4GBLabel = "" $HDD1GBLetter =...

View Article

List users - name, SAMAccountname, Created,LastLogonTimeStamp and Enabled -...

An auditor ask for a AD listing with the following information:name, SAMAccountname, Created,LastLogonTimeStamp and EnabledI´ve created two optionsGet-ADUser -Filter {ObjectClass -eq 'user'}...

View Article

Power Shell: For Each Loop, Array, and XML output troubles

I had previously asked a question about this script, but the portion I needed help with got fixed, so I decided to ask a new question. I am working on a PS script that takes the hash of each file in a...

View Article


Powershell Ctrl+c

Hello, I have a PS script that runs to gather info on remote servers, I'd like to be able to press  Ctrl+c   and have a prompt  "would you like to terminate (Y/N)?"  and of course if you press "Y" then...

View Article

Powershell Sript for AD Group

Hello everyone,I tried run a query in AD to find distribution and security group created after a certain date, but I could not run a query on the field "whenCreated" attribute if someone can provide me...

View Article


objShell.Popup and .hta in a shutdown script

The following snippets work fine when run as a USER within Windows XP and Windows 7. It will run within a shutdown script (SYSTEM) within Windows XP. As a shutdown script for Windows 7 the entire...

View Article

extract text from a line using power shell

I'm beginner, exploring options in powershell.File with the following info:Line 1: 22-Aug-2014 : Entry 1.Info : Alex : here it says "Hello World" ok?Line 2: 24-Aug-2014 : Entry 1.Info : Micheal : here...

View Article


Get and Set the version number of a file

Hi there !I'm looking for a way to obtain and modify the version number of file (like a .docx) in PowerShell Script.Thanks in advance, Scanta

View Article

Verify if a programm is installed

Hello,I'm looking for a way to verify if Outlook 2010 is installed on my computer with a PowerShell script.I have tried some ways with "Get-WmiObject -Class Win32_Product"and this tutorial.I just find...

View Article

Load test script

I am having some problems with a script for remote desktop load simulation.the script launches as it should, my problem is when i try to launch word and type text.'// start Word RUIDCOM.SendKey...

View Article
Browsing all 15028 articles
Browse latest View live


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