PowerShell is Microsoft's new scripting language in 2006, and significantly upgraded in 2009. It allows interpreted scripts based on PowerShell cmdlets and .NET primitives.

learn more… | top users | synonyms (1)

4
votes
0answers
83 views

Set-RDSessionCollectionConfiguration Connection Broker connects to localhost

I am running the following command from a PowerShell console on a Windows 8 machine, trying to configure a Server 2012 R2 RDS Connection Broker: Import-Module RemoteDesktop ...
4
votes
0answers
290 views

PowerShell: Copy-GPO failing with HRESULT: 0x8007000D

While trying to run the Copy-GPO cmdlet to copy a Group Policy Object using a predefined Migration Table I am receiving this exception: System.Runtime.InteropServices.COMException (0x8007000D): The ...
3
votes
0answers
154 views

How to load MSMQ cmdlets in Windows 7?

Technet has a nice article (Windows PowerShell for Windows Server 2012 and Windows 8) listing a myriad of PowerShell cmdlets available on the latest OSes. Often there are easy (or not so easy:-) ways ...
2
votes
0answers
30 views

Enter-PSSession returns PSRemotingTransportException

When I try to connect to a distant server using Enter-PSSession, I have a PSRemotingTransportException. It says that the user is either unknown or associated with a wrong password. It works with ...
2
votes
0answers
68 views

Query performance counters from powershell

I am trying this script to query performance counters in different localized windows server versions. http://www.powershellmagazine.com/2013/07/19/querying-performance-counters-from-powershell/ ...
2
votes
0answers
118 views

PowerShell remoting doesn't work if computer name contains dot

I have one system where I cannot connect to remote computer (or to itself remotely) using PowerShell when computer name contains dot. For example, this works: Enter-PSSession HostA -Credential ...
2
votes
0answers
415 views

Powershell and sharepoint and updatelistitems() exception

I've got an issue where I keep getting "Exception calling "UpdateListItems" with "2" argument(s): "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." whenever I ...
2
votes
0answers
251 views

Setting a VM boot CD via PowerCLI

I have a sneaking suspicion that this may be a bug, but I'm definitely willing to entertain the possibility that I'm doing things wrong. I have a VMware virtual machine in $vm, and I'm trying to ...
1
vote
0answers
13 views

Running New-RDSSessionDeployment Remotely

I'm trying to script the setup of a remote desktop deployment into Azure. I'm using Powershell remoting to connect to the WinRM endpoint on the VM's and execute remote Powershell. For the most part ...
1
vote
0answers
17 views

Remotely edit winrm conf file

Im trying to edit the winrm conf file on remote computer. I dont have the possibility to use GPO edit so i must find another way. I've tried to set the configurations that i need by using the "winrm ...
1
vote
0answers
42 views

Can't shut down HyperV VM with Powershell despite admin rights

I am attempting to use a script that shuts down my Hyper-V VMs, copies their VHDs to a target share, then boots them back up. I found the script on spiceworks just a couple days ago. I always receive ...
1
vote
0answers
25 views

Why is $job.LastRunOutCome always “Failed”?

I am using sqlps to run a backup job "Backup Something". Set-Location "SQLSERVER:\sql\$hostname\default\jobserver\jobs" $job = Get-ChildItem | Where-Object {$_.Name -eq "Backup Something"} ...
1
vote
0answers
106 views

ftp get won't save on Windows Server

From a Windows Server 2012, using PoweShell, I connect to a remote device through ftp and run get to retrieve a file. The process goes through with no problems but the file doesn't get saved on to my ...
1
vote
0answers
58 views

Powershell script to retrieve the same kind of info reported by DMDIAG for dynamic disks

This article about windows partition alignment explains that checking the alignment offset of dynamic disks can be done with the DMDIAG tool to get the "relative sectors" property. With dynamic ...
1
vote
0answers
344 views

Exchange (2013) Powershell Connection Error

I am using Windows 2008 R2 with Exchange 2013 I am trying to connect to my exchange server with the following command but receive an error each time: $session = New-PSSession -ConfigurationName ...
1
vote
0answers
47 views

Powershell remoting and SPNs

I'm attempting to configure powershell remoting on a newly built server and am confused about something. Specifically, the WSMan listener is configured to use port 5985, but when I add the SPN ...
1
vote
0answers
399 views

Powershell Script Hard drive Inventory

I've created a script to get hard drive information from our servers. The script use WMI to query the Win32_LogicalDisk class and returns "Size (GB)", "Free Space (GB)" and "Free Space (%)" for each ...
1
vote
0answers
217 views

Cannot create partition on disk using PowerShell: “New-Partition : Not enough available capacity”

I'm trying to create two partition on the USB flash drive. The first small 350Mb partition is created fine, but the second throws "New-Partition : Not enough available capacity" even though there is a ...
1
vote
0answers
204 views

Cannot initialize disk in PowerShell : Initialize-Disk throws “The disk has already been initialized”

I'm trying to change the flash drive's partition style to GPT using PowerShell, but the cmdlet throws "The disk has already been initialized" (even though I've cleaned the drive): PS ...
1
vote
0answers
246 views

How to install Admin tools on Windows 7 and Windows XP workstations via powershell?

we have around 250 workstation(mix of windows 7 and XP SP3) ; we are delegating those users some admin tasks via task pads and they need admin tool pack(containing AD tools such as dsa.msc etc) for ...
1
vote
0answers
176 views

PowerShell & FileNotFoundException : which file?

I'm trying to follow the instructions in http://technet.microsoft.com/en-us/library/gg697165.aspx, but my powershell script keeps throwing exceptions. It refers to a FileNotFoundException...but I ...
1
vote
0answers
371 views

Detecting missing drivers for Hyper-V Server 2012

Assume I installed Hyper-V Server 2012. Networking is working fine. The server is locked down, only RDP is enabled. Enabling other ports may not be an option as the server is directly connected to ...
1
vote
0answers
107 views

PowerShell Calculated Properties

I'm trying to use a calculated property on Get-VM. I want to get the shortened version of the hostcluster property using split, but its not working. Here's an example of what I'm trying to do: ...
1
vote
0answers
292 views

IIS Application Request Routing(Monitoring and management) Powershell

I am working with iis arr powershell... In my iis i have one web farm and in that i have two servers "server1" & "server2"...... My task is Make server1 unavailable gracefully restart server1 ...
1
vote
0answers
139 views

Modifying Authentication on web application / service in IIS(7/.5) via Powershell

I am trying to install a wcf-servce by using New-WebApplication in powershell. It works fine. However, how can I Modify the Authentication? I want to enable Anonymous Access Authentication and disable ...
1
vote
0answers
328 views

PowerShell Remoting: No credentials are available in the security package

I'm trying to use the following script: $password = ConvertTo-SecureString "xxxx" -AsPlainText -Force $cred = New-Object System.Management.Automation.PSCredential("domain\Administrator", $password) ...
1
vote
0answers
168 views

PowerShell script halts execution when Windows XP PC is locked

I have the following script that does a continuous ping and reports failures. It works fine, except the loop apparently "suspends" when the computer is locked. I have confirmed this by starting the ...
1
vote
0answers
291 views

Can you use SQLite 64 bit odbc from powershell

Basically, my question is "Does this combo work for anyone," and, "Can you see what I am doing wrong" I have installed 64 bit ODBC driver for sqlite, downloaded from this page. I am running ...
1
vote
0answers
318 views

Powershell: Cannot connect via SSL

Am following "secrets to powershell remoting" to setup an SLL account and seem to be missing a step. I ran Winrm create winrm/config/Listener?Address=*+Transport=HTTPS ...
1
vote
0answers
103 views

add certificate to all files in EFS-folder with script

I try to set up collective access to EFS-folder. I want to add certificates of all users to all files in folder. Is it posible do with using powershell scripts or some another way? Thanks.
1
vote
0answers
159 views

Office 365 Mounted Workspaces disconnect after 2 hours - How to work around?

I'm trying to get my sharepoint workspaces on office 365 to mount like network drives. I can achieve this following microsoft guidelines, but after a while this fails. The user has to login again to ...
1
vote
0answers
602 views

Exchange 2003 Strip Email Attachments save to User file

I'm currently using this vba script (locally on client) to strip email attachments from user's folder to and move to user document folder and then replace with a pointer in the email to reference the ...
1
vote
0answers
86 views

iis6 silent installation from a remote machine

I am trying to install iis6 on a remote machine running windows 2003 through powershell remoting. It does not seem to work. The same script works fine when run from the local machine. I have been ...
1
vote
0answers
390 views

Certreq -retrieve can't find the specified CA

I'm currently writing a Powershell script and have run into a bit of a roadblock. Basically, the script requests, approves, and retrieves new certificates from our CA using certreq.exe and ...
1
vote
0answers
520 views

Using Powershell to set user permissions in Reporting Services

Apologies if this appears to be a gimme-teh-codez question, but i'm asking this because i'm a n00b when it comes to Powershell. How do i use Powershell to add a particular domain user or group to a ...
1
vote
0answers
175 views

Is there Powershell way to re-apply a restored password for the IIS IUSR account?

On one of our IIS web servers the IUSR account suddenly expired or got corrupted, I recovered the password from the IIS metabase (using Cscript adsutil.vbs get w3svc\anonymoususerpass after switching ...
0
votes
0answers
14 views

Difference between isntalling a msi using “Invoke-WmiMethod”(via a cmd file) and installing directly on the server

Ran against a server to install the msi; eventlogs were clean and all success; but the key file in bin direstory is still old. Later tried installing it directly doing a double click by RDP into the ...
0
votes
0answers
50 views

“powershell has stopped working” on PS exit after creating IIS User

On a Windows Server 2012 box, I'm using PS to create a new IIS User (for automated deployments using MSDeploy). The command itself appears to work fine -- the user is created -- but as soon as I exit ...
0
votes
0answers
37 views

Modify IIS web.config using PowerShell

I'm trying to modify the web.config using PowerShell. So far, I'm able to replace the Connection String using: Set-WebConfigurationProperty -pspath "IIS:\Sites\$Name\WS" -filter ...
0
votes
0answers
19 views

ACL PS Script - hangs on 08 R2 PS v3; works fine on W8 PS v4

This script was designed to make application of permissions to a new server much easier. It is not doing that currently :( For some reason it works just fine on my Win 8 machine, where I made it. ...
0
votes
0answers
90 views

OpenVPN: Setting DNS & WINS servers to Windows client, without DHCP

I have a few Windows 7/8 clients connecting to a Linux OpenVPN Server (tap). I'd like to set the clients' DNS and WINS servers upon connection. The OpenVPN isn't acting as DHCP server; there is an ...
0
votes
0answers
28 views

Script to clean out old messages from Journal mailbox after exporting email to .PST

After using the following script to export email to a .PST file I'm wanting to clean out the Journal email box called "JournalMailbox": New-MailboxExportRequest JournalMailbox -FilePath ...
0
votes
0answers
16 views

Exchange powershell command set-MailboxJunkEmailConfiguration not responding

I recently needed to remove an address from the blocked sender list on an exchange 2010 server. No biggie I thought and tried it out using this command: set-MailboxJunkEmailConfiguration -identity ...
0
votes
0answers
47 views

Scheduled task deleting itself

I am using PowerShell to create scheduled tasks on my local machine, the Scheduled Task runs a PowerShell script to PowerShell remote into a server and copy files. When I run the Scheduled task using ...
0
votes
0answers
27 views

ssh from osx to windows server: how to increase buffer size?

I need to allow mac users to connect to a Windows Server 2008 machine via ssh. I am using freesshd as my ssh server, and have set powershell.exe as my command shell in freesshd (so that they can use ...
0
votes
0answers
30 views

Server migration with a lot of IIS websites - done with PowerShell

We are migrating our last physical machines to virtual machines. Some servers have a lot of IIS websites running. In the past the IIS migration was done manually, but now I would like to use the ...
0
votes
0answers
22 views

Exchange - setting folder policy with powershell

In Exchange Server 2010, there are known limitations for applying default retention policies to the Notes folder. The work-arounds I found indicate that users should manually set the retention policy ...
0
votes
0answers
37 views

Exchange 2010 Blocking Twitter

I am responsible for a windows network with an Exchange 2010 server. It appears that we haven't been receiving twitter emails for quite sometime, maybe even as far back as just before ...
0
votes
0answers
32 views

mail routing connection testing

I would like to implement an alerting process that will send a test email to an internet based mail server every 5 minutes, I manually email echo@esat.net if I suspect there is a transmission issue ...
0
votes
0answers
71 views

Exchange 2007 PowerShell - Run and email weekly report (.txt) automatically

I've found numerous codes online and have created the following to run a basic report on quotas and sizes of mailboxes on our SBS 2008 server (Exchange 2007): get-mailbox -server HYDROMAIN ...