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

Combining multiple powershell commands to single output

I have been kicking around in PowerShell in an attempt to create a single script that will dump Exchange output from multiple commands into a single line in a CSV. I am using Get-Mailbox,...

View Article


Exchange 2010 search-mailbox efficiency

I need to purge a message from all mailboxes. Usually I run separate searches from a single Powershell against each mailbox server to avoid memory issues.Get-Mailbox -ResultSize unlimited -Server...

View Article


How to use invoke-webrequst to post form with multiple checkbox fields

Hi , I want to use invoke-webrequst to post a form on a sharepoint site. the form contains multiple checkbox fields with the same name.when using invoke-webrequest the body param using idictionary...

View Article

Powershell Task Manager I/O Read

Hi GuysI need some help with a problem I have. I need to read the process that has the most I/O Read Bytes, I/O Write Bytes and I/O Other Bytes in Task Manager.I know how to get the top Memory (Private...

View Article

WScript.Echo Convert ASCII to normal text in VB Script.

Hello All, I took a VB script from the internet that is running on all domain joined PCs.  The script runs at logon and updates the "Computer Description" with info on various hardware.... RAM...

View Article


Scrip to update bulk user attributes

I am looking for some script to update bulk users attribute, particularly, "job title", "Department, Manager.

View Article

Call variables in a function?

Hi, I have made this function which deploys an AppV package: Before it loads, I need to load the specific variables: F.e. $Publisher = "Microsoft" $AppName = "Office" $AppVersion = "2010"...

View Article

Running taskill commands for multiple pc all at once without waiting

I want to Run taskill commands for multiple pc all at once without waiting for the previous one to finish. How would I go about that?Here is my current codetaskkill /s link-pc /f /im "American...

View Article


Image may be NSFW.
Clik here to view.

SwbemServices: generic failure message when executing a VBS Script

Hi! I'm currently implementing an script using WMI to query Win32_Process class on a Windows Server 2000 that has a .NET App running on it. The main function is determine if ASPNET_WP.EXE process is...

View Article


add xml attribute to an element using powershell

Hi,I am trying to modify an xml config using powershell. I am familiar with modifying already set values. And I am familiar with creating an element, setting key/value attributes, and appending that...

View Article

Building and using dynamic powershell hash table

First post, so please forgive me if this is the wrong forum or anything .  I am trying to build a hash table dynamically as the data comes in.  This way I don't have to know all the keys that I want....

View Article

Is there scripting support in mail rules? Outlook Office 2016 for Mac

Hello, I need to run script upon receiving some e-mails, for example to create folder YYYY-MM-DD and move the new e-mail there. How can it be done? Earlier version had supported this, but 2016 don't.....

View Article

Granting one user Calendar Editor access to a group of people (over 100) -...

Hi All,I am not a Power Shell specialist but I am trying to find some help on this request. I need to grant Calendar Editor access to a group of Mailboxes but I would like to do it in one go.I  have...

View Article


CMD: FINDSTR to cut a string with starting and end delimter

I have a text file as below OS Machine;Manufacturer;Model;Current User;OS;Version;Install Date AMSLTP2;LENOVO;7829H63;INDIA\4044;Microsoft Windows 7 Professional ;6.1.7601;20130301155559.000000+330...

View Article

Help about Powershell DSC scripting

Hello guys,Few questions about scripting in powershell DSC and I need your help if possible. I have a two windows servers (2008 and 2012 R2) and I want to migrate some features from server 2008 to...

View Article


Using WMI to Identify GPUs with dual monitor support.

Hello, Can think of a way to identify GPUs in computers with dual monitor out capability.... i.e.  DVi/VGA or HDMI/DVI/VGA. I want a script to run at logon that will identify whther a PC has the...

View Article

ADD Ad users into local admin groups on server

HI I need to add user1 and user2 into local administrator's group on server pc01 and pc02.can I do this using powershell.?

View Article


90 days old windows profile deletion script for group policy 2003

90 days old windows profile deletion script for group policy 2003

View Article

Script to search from csv user list and output SAMID to csv

Hi All,I've been given a spreadsheet that lists users, and tasked with adding the users to a group. The spreadsheet lists the user's first and last name, which is not what we use for the SAMID (we use...

View Article

Multiple Threads in an HTA Application

Hello all... What I am trying to do is to pass an element like an input to a COM DLL of an HTA Application, for instance:<input id="thisInput" value="foo"/>and then in scriptvar x =...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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