Questions tagged [powershell-v3.0]

For issues relating to Windows PowerShell, version 3.0.

Windows PowerShell Microsoft's task automation platform for Windows, and includes a command-line shell and scripting language. PowerShell was designed especially for system administrators.

Powershell 3.0 comes with Windows 8 and Windows 2012 as a built in package.

73 questions
2
votes
3 answers

Powershell Start-process -Argument list not working

Start-Transcript c:\scripts\InstallUpdates.log -Append # -NoClobber $SourceMSUFiles = (get-content install-list.txt | where {$_ -like "*.msu"}) #Install MSU files foreach($file in $SourceMSUFiles) { $Argument= "$Files",' /quiet',' /norestart' …
Joel T
  • 59
  • 1
  • 2
  • 7
2
votes
0 answers

Powershell 3.0 Enter-PSSession fails randomly, reboot solves it. DCOM error in Event Viewer on target machine

Using PowerShell's Enter-PSSession (even locally, against the local computer) fails randomly with the following message. Running Windows 2012 Standard with all updates. The error message takes a while to show up. Command: Enter-PSSession…
2
votes
1 answer

Creating a second domain in a forest using install-addsdomain

I have a domain ludwig.example.com and am trying to create a domain amadeus.example.com using install-addsdomain. I am running this command: install-addsdomain -newdomainname amadeus.example.com -parentdomainname ludwig.example.com -domaintype…
Andrew J. Brehm
  • 1,611
  • 7
  • 37
  • 57
2
votes
1 answer

Powershell Hyper-V Remote?

Im basically wondering if this is possible, Essentially I have a Powershell 3.0 Script that creates a Hyper-V Server/VHD etc.. it works well but it's obviously defaulting to my local machine. What Im wondering is that if it's possible to make…
2
votes
3 answers

Adding Unattended.xml Files to Hyper-V Powershell Creation?

As of right now I have a Powershell 3.0 Script Provisioning and Creating Servers. What I want to do is add an Unattended.xml to take it a step further (So I wouldn't have to get on and click next/choose disk/etc..)+ for the windows installation, How…
user57862
1
vote
1 answer

Powershell Array for Path

We are trying to break the following Path from the text file, the path is dynamic in length, i.e, it can be ABC\DSD\AAR\ARE or ABC\DSD. So we need a solution to break down the path as per the following…
1
vote
1 answer

Why is powershell slow on my machine?

There are several virtual machines in the group, and 2 of them have really bad performance running Powershell. A simple script like powershell.exe -NonInteractive -NoProfile -Command "Write-Output $PSVersionTable.PSVersion" takes seconds on most of…
Cameron MacFarland
  • 111
  • 1
  • 1
  • 4
1
vote
0 answers

Exchange Custom Attributes Excemptions

I am trying to create a scenario by which a resource mailbox is hidden from all users unless specified. I have found the following article that i have used to hide the resource…
Azhar Iqbal
  • 31
  • 1
  • 2
1
vote
0 answers

Exchange Message Tracking Attatchments

I have a requirement by which i need to export a list of all emails with an attachment that have the following words within its subject (private,confidential) As it stands i can export all emails that contain the words outlined within the subject…
Azhar Iqbal
  • 31
  • 1
  • 2
1
vote
1 answer

Powershell Script to export directory folders and owners (excluding files)

I am trying to export all folders including child folders within a file share on a remote server alongside the owner info as shown (Note I do not need info re the files within the folders) get-childitem \\fileshare\folder -recurse | get-acl |…
1
vote
1 answer

Failed to using powershell to get cookies

I am writing a powershell script to mimic a login process,and then catch data from web pages. I failed at the very begainning, I can't get into the login pages at all after I set up cookies. Here is the script I wrote: First, get the…
pansal
  • 269
  • 3
  • 9
  • 20
1
vote
1 answer

Microsoft Azure Runbook not executing powershell script

I'm trying to run the powershell script below in Micrososft Azure runbooks. However, I keep on getting the error: The script is as follows: #### Provide the computer name in $computername variable $ServerName =…
Carltonp
  • 171
  • 1
  • 3
  • 8
1
vote
1 answer

Powershell, IIS Express, Server 2012, Microsoft.Web.Administration requires run as admin

I'm having a strange issue with Microsoft.Web.Adminstration 7.9.0.0 for IISExpress requiring run as administrator on Server 2012. What I'm trying to do is add a Website to a custom ApplicationHost.config file using powershell. I've tested my…
Chris Kolenko
  • 103
  • 1
  • 1
  • 7
1
vote
0 answers

NTFS Permission Report

Team, Can any one help me make the following changes to the script. what it does it perfect, but when it checks for permissions. it does not seem to be able to differentiate between ALLOW or DENY permissions on folders. I need to break it down to…
pallyHT
  • 11
  • 2
1
vote
0 answers

ExportedCommand empty custom module PowerShell

I have a custom module in Powershell. It consists of two files the Copy-Move.psm1 and the Copy-Move.psd1. In the Copy-Move.psm1 I have several functions from which I only export the function "Copy-MoveFiles" by using the following command at the end…
SQLStad
  • 121
  • 1
  • 6