Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Office 2010 Professional Plus, Silent installation problems, Nothing happens

Here's my script I'm using and I'll also show the output later. Nothing is happening exactly.Write-Host "Installing Office 2010 Professional Plus..." #Installation $mypath = Split-Path...

View Article


Adding Journal Entries to Outlook

Does anyone have an example of how to create Outlook Journal entries with a power shell script. I understand how to get user input and write data and have done so for several scripts with outlook...

View Article


Workflow timeout issue?

HiFound a nice little introduction to workflows and the foreach -parallel construct. I thought that would come in very handy for a script that pings a lot of servers to see if any are down. So I...

View Article

Learning Regex for PowerShell

Hello Experts, Its been quite sometime  I am learning powershell.  Now I am feeling confident about Powershell CMDLETS,FUNCTIONS,OBJECTS,EXPRESSION Etc. Now I want to proceed with Regular Experssion...

View Article

Spawn new Powershell window/process from within a .ps1 script

I am running a script that requires me to load the VMM and DPM snapin. There is a known issue with both of these snapins being loaded in the same powershell session. To work aroud this I would like to...

View Article


Help with counting the total number of servers objects from mutliple AD OU's

HelloI'm using the following in a script to search for servers. I'd like to get the total number of server objects it finds. Below will get the number for each OU....so how do i get the...

View Article

Provide network patch to "TakeOvnershipEx" method

Hello, i know that this isn't .NET forums but i have problem with "TakeOvnershipEx" method:(gwmi win32_directory -filter'Name="$arg"').TakeOvnershipEx($null,$true)I try everything but no matter...

View Article

How to copy a file to machines from a text file?

Would anyone be able to help me with this? I have managed to be able to do it to a single machine, but i would to do the same to a bunch of machines in a text file.

View Article


Image may be NSFW.
Clik here to view.

File Locked when executing Remove-Item

I created a script that creates an email attachment from a .csv file. At the end of the script I would like to delete the file but i am getting the following error. How can I release the lock on the...

View Article


non admin user to allow changes in particular services related to application

Hi I want to give a non admin users to start and stop a particular services related to application.Is this possible to implement in package,if yes please suggest and advise.Many thanksUmeed4u

View Article

How to Reuse the input collected from READ-HOST within a script

I am trying to reuse the input I collect with the READ-HOST (line 1) later on in my script but it does not seem to be working.  Referring to the variable works on the first command (line 15) in the...

View Article

Array to string using newlines possible?

Hi All,I have a log file with multiple lines of text.  I am attempting to send the log files contents in the body of an email using Send-MailMessage.  The -Body parameter only accepts a string though,...

View Article

PST migration script

Hi guys,I'm new to PowerShell and looking for a script that will migrate multiple archived .pst files to Outlook from a single location after an OS installation.This is probably simple to most, but...

View Article


How do you check disk space on remote machines from a text file?

Hi everyone,Just wondered if anyone knew how i can check for disk space using PS for remote machines from a text file?

View Article

How can I 'Preview' Powershell Scripts on a Server 2008 R2 server?

Hello,On a Server 2008 R2 Domain Controller, I have the 'Preview Pane' available and shown, but when I 'hover' over a Powershell script, or a .ps1 file, I get a 'No preview available' in the preview...

View Article


Compare and update XML files

I have two XML files that are residing on two different servers (ServerA and ServerB) in the same domain.  There is a section of the XML file that needs to be copied from one server to the other in...

View Article

Get-winevent doesn't work against Remote Win 2003 Domain Controller

I tried these two commands and get strange error.  First one is probably due to a syntax error based on research, event though the response is ambiguous. get-winevent -Logname Security -MaxEvents 10...

View Article


Copy the contents from excel spreadsheet to body of email

Hi Expers,I want to copy and paste an excel pivot table (that is autogenerated using powershell) to body of the email without loosing the format, color coding. I am able to get it on to the body of...

View Article

Silent Install of .net 4.5 in powershell issue

When I am installing .net framework 4.5 through a silent install in Powershell, I am prompted by a GUI Open File - Security Warning. Is there a way to bypass these and completely install the executable...

View Article

Add users to multiple groups

Hello ,i need a script using either powershell or powergui with QUEST cmdlts to do the following : add a list of users by samaccountnames to multiple security groups I am  new to powershell still...

View Article
Browsing all 2562 articles
Browse latest View live


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