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

Need Urgent Help - Copy an Image and paste it to a Word Document and then...

I am stuck with a task which requires me to copy an image (.jpg) and paste it into a MS word file using Powershell.Please help me with a sample code.

View Article


LOGON script to force immediate LOGOFF

I know this is an odd question from the start, let me explain.I am in a very large organization with a centralized helpdesk that supports several other sister organizations.  Users are comming and...

View Article


How to run PowerShell 3.0 "New-Object -COM InternetExplorer.application"...

My PowerShell 3.0 script works when I run it logged on as an interactive user RDP to the server using the PowerShell command prompt/console.Next step was to create a Scheduled Task and put this script...

View Article

Retrieving name from value in a hashtable....

Hi,If I use a hastable that contains a name (unique) and value, how do I get that name by using a value?TypeName: System.Collections.HashtableName                           Value ----...

View Article

System.Windows.Forms.SaveFileDialog Replace file crashes dialog

Hello,I'm having issues with the System.Windows.Forms.SaveFileDialog in that when I try to overwrite a file and I am prompted to replace the file it freezes and crashes powershell.This seems to only...

View Article


Upgrading from Powershell 1.0 to 2.0

Hello All,Could anyone provide information to upgrade the Windows Powershell version from 1.0 to 2.0Target OS which has Powershell 1.0 are Windows 2003 and 2008 and upgrade to 2.0. I have reference to...

View Article

Software List

Hi , I have following script to search domain root for computer and list the installed applications, while output is to console having difficulty getting it to a CSV file. Can anyone please help...

View Article

Data entry through scripting

The company I work for recently a week-long outage of a ticket system that resulted in a lot of wasted time and energy to recover the backlog of tickets. I have been tasked with implementing a system...

View Article


VBScript: If value found in column A, show value in B

Hi,I have tried for quite some time to make a vbscript which will allow me to search a excel sheet within a spesific column (A) for a spesific keyword. If there is a match in column A for the keyword,...

View Article


Reporting on a particular line of the object's Notes

Hi Scripting Guy,Even though I refer to PowerCLI here, I do not believe this is PowerCLI limited question, please read on.  Is there a way to get a particular line from the Notes of a VM? I get the...

View Article

How do I filter our parts of a string using powershell?

Hi all,The goal I'm trying to accomplish is getting the DN of a user's object without any part of the CN= attribute using powershell.For example, here's what I get for the DN of a user:CN=Smith\, John...

View Article

Pulling HTML elements from site

Thanks to the forums I have expanded on a basic script that goes out and searches a predefined listing of URL's for several keywords, returning those URLs which contain the defined keywords. What I...

View Article

Parse User vs groups vs Permissions vs file

Office365 / Sharepoint OnlineI am trying to write and powershell script to the following information:1. Users and what groups they are in2. Users and permissions of files and objectsWhat I would like...

View Article


Wait for network connection - ping

I have a batch file that runs at startup that attempts to connect to a server and keeps trying until the wireless network connection is available (it connects about 60 seconds after login) then...

View Article

Error when loading XML document ("The input document has exceeded a limit set...

Hi.Since PSVersion 3.0 I get the error "The input document has exceeded a limit set by MaxCharactersFromEntities."when loading an xml document with:[xml]$c = gc "c:\temp\xmlfile.xml"My XML...

View Article


ReturnCode handling? msi installation

Hi im currently trying to understand how to use returncode for error handling in a script.Belov i have a script that install iff the registry key doenst exist.The part i dont understand is this...

View Article

Adding a filter

HiI'm a PowerShell newbie trying to filter the output of a ForEach-Object startement: $spItems | ForEach-Object { $xml.WriteStartElement('item'); $xml.WriteAttributeString("ID",$_['ID']);...

View Article


Windows script needed for the following tags

hi ,I am currently automating a web task using windows script.For the below source script , i need wsh script<td title="Export Report" class="ui-pg-button ui-corner-all" style="cursor: pointer;"...

View Article

Setting up PowerShell DSC on Win2008R2 Server can't find DSC-Service Feature

Hi,I’m trying to set up a Win2008R2 (SP1) server as the Pull Server for DSC configuration, and I simply cannot get it to load the DSC-Service feature.I’ve loaded .Net framework ver 4.5.1 and then WMF...

View Article

AD custom6 attribute and group memberships for shared mailboxes

I have 900 shared mailboxes that are in Exchange 2007. These mailboxes have no owners and are provided access to the users threw AD groups. I need a script that will produce Each users custom6...

View Article
Browsing all 15028 articles
Browse latest View live


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