7
votes
1answer
113 views

Small issue with the Domain Name System (DNS) Server Cmdlets

I'm wondering if I need to clear some cache or something with the issue I'm having. I'm trying to remove A records from a DNS Zone and replacing them with a CName record that has the same host name. ...
1
vote
0answers
54 views

Calling Physical Path Credentials for Web Applications in IIS

How would I call on the Physical Path credentials property for web applications in IIS using PowerShell? I can't print out the username or password, but I can print the logonMethod which uses the same ...
3
votes
2answers
93 views

How to list out Virtual Directories in IIS from the all the websites in PowerShell

I have hit a complete roadblock and cannot figure out how to print out the virtual directories for each website in IIS 8. I keep retrieving Applications and empty null argument errors and just can't ...
0
votes
1answer
69 views

Installing SQL remotely using Invoke-Command

i'm trying to install SQL Server 2012 on Win 2012 r2 server remotely via Powershell using Invoke-Command, but it fails with this error "Validation for setting 'SQLSVCACCOUNT' failed. Error message: ...
1
vote
0answers
55 views

IIS 8: Setting the application pool username is ignored

I do this on IIS 7.5: Create an application pool, "testpool", and set the username and password to match one that exists in the AD. Then in powershell as administrator: Import-Module ...
0
votes
0answers
38 views

Make Azure Powershell cmdlet's available to team city

I have installed the Azure powershell cmdlet's via the web platform installer on my build server that is running TeamCity. However, when I setup a powershell build step I get an error: ...
0
votes
2answers
110 views

Copy-item FileSystem provider error

Copy-item cmdlet is not working as expected, i don't understand why. This is my code : $Source = "C:\folder1" $Destination = "\\172.22.0.115\c$\folder2\" $Password = ConvertTo-SecureString ...
6
votes
2answers
216 views

How to print out information about Task Scheduler in powershell script?

I am trying to print out information from the Task Scheduler from the local computer in a PowerShell script so other users can print out this information as well and not have to access the Task ...
2
votes
1answer
38 views

How do -RetentionDays and -MaximumSize parameters work in Limit-EventLog in PowerShell?

I want to increase the size of the Windows Application Log using Powershell and intend to use Limit-EventLog. I must keep at least 7 days of logs and have plenty of disk space (at least up to the 4GB ...
2
votes
1answer
372 views

server 2012r2: Cannot add-pssnapin windows.serverbackup

I am trying to run powershell script for backups on Server 2012 R2. I Have installed Windows server Backup feature but when try to execute Add-PsSnapin Windows.ServerBackup  I am getting error ...
0
votes
0answers
209 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 ...
1
vote
1answer
800 views

Installation of Windows Management Framework 4.0 (Powershell 4.0) on Server 2012 failed

I've been trying to test PowerShell Desired State configuration on a Windows Server 2012 instance on Amazon EC2. I downloaded the Windows Management Framework 4.0 from the MS download center: Windows ...
4
votes
2answers
147 views

How to force DSC to execute all configurations (Packages) even when a restart/reboot is required

From MSDN RebootNodeIfNeeded: Certain configuration changes on a target node might require it to be restarted for the changes to be applied. With the value “true,” this property will restart the ...
5
votes
1answer
176 views

DSC, how to know if after running the configuration a reboot is required

So I'm using DSC Push mode I have about 200 deployments per day to several environments (DEV/INT/QA/PROD) Every time that I deploy I want to make sure that each server is configured correctly So ...
-2
votes
1answer
185 views

What can't be done in Powershell [closed]

I'm preparing a quick presentation on the possibilities of Powershell management in Windows 2012R2, versus GUI-based administration. Now, I'm trying to pin down what administrative tasks typically ...
0
votes
0answers
81 views

Windows Task Scheduler Option “Do not start a new instance” runs a second instance of my script, known bug?

I am using a small powershell script which checks the ram and disk usage , just some metrics. This script sleeps for 15 seconds and then runs again. Only 1 script is triggered and this should kept ...
1
vote
0answers
267 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 ...
3
votes
1answer
224 views

Windows 2012 R2 scripted access to freespace of physical disks?

Is there a way to access the freespace of the physical drives that make up a storage pool on Windows Server 2012? I've just recently ran into a problem with running out of space, and can see the ...
5
votes
1answer
245 views

Remove Server 2012 Remote Access Server

My IT director was walking me through setting up a Server 2012 VPN/RA server. We did not do this in our test environment, and now I would like to remove it. I know that when installing this server it ...
2
votes
1answer
109 views

How do I install Microsoft Exchange 2013 with Microsoft Powershell DSC?

We are working on a new build procedure. As a proof of concept, I wanted to install an Exchange 2013 server with CAS and Hub roles. I cannot find documentation on just how to do that. Has anyone ...
1
vote
2answers
773 views

How to configure and enable NAT with server core installation

Using Microsoft Server 2012 Core: What is the equivalent core/Powershell command to enable and configure NAT. I have configured NAT on servers with the following GUI steps: Server Manager, Tools, ...
1
vote
1answer
467 views

Change a DCOM application's identity with a script

I have a Powershell script to set up a WS2012 web server with no user interaction. The only thing I can't do in the script is to change the identity of a DCOM application. Or, more specifically, I ...
1
vote
1answer
340 views

powershell Test-Cluster cmdlet: Access is denied. HRESULT: 0x80070005

I joined two hyper-v servers to a domain and added shared storage to both of them. From what I read I should be able to run the test-cluster cmdlet at this point for it to check the configuration, but ...
4
votes
1answer
761 views

Assign Static MAC address to VM Hyperv

I have a scenario that involves building out a ton of virtual machines in Hyper-V, I cannot use SCVMM and must use a scripted method to create these VMs. I have a CSV with all required information ...
4
votes
2answers
379 views

How to get from a Hyper-V 2008 R2 node with Powershell the IP address and Vlan ID

I tried to take from the Hyper-V (Hyper-V 2012) node with this command the IP address: Get-VM | select -ExpandProperty networkadapters | select vmname, ipaddress The thing is that i take as an ...
4
votes
2answers
85 views

Determine filterable attributes of returned Powershell object

Often when I'm scripting, I will be trying out a command but will want to filter the results. In order to find out what I'm able to filter on I need to know what filterable attributes are going to be ...
3
votes
1answer
85 views

Reliably correlate Hyper-V internal switches with host network adapters from PowerShell

The Get-VMSwitch Hyper-V cmdlet returns VMSwitch objects which have a NetAdapterInterfaceDescription property but this is only populated for switches of type Physical. For switches of type Internal ...
0
votes
1answer
406 views

Cluster Aware Updating set up - VirtualComputerObjectName ignored

I am trying to set up Cluster Aware Updating, but it always fails with the following error: Add-CauClusterRole : Unable to create the CAU clustered role because a Network Name resource could not be ...
1
vote
4answers
1k views

Server 2012 GPO: PowerShell Script on Computer Startup not running

I've got a couple of Server 2012 instances on Amazon EC2 and I'm in the process of setting up the GPOs. All of the settings of the GPOs are being applied fine, except none of the PowerShell scripts ...
3
votes
1answer
164 views

Will IIS finish pending requests on Stop-WebSite?

Lets' say my IIS8 hosted web site is up and running and happily serving requests. Now, from an elevated Powershell, I run: Stop-WebSite <MyWebSite> My assumption until recently was that IIS ...
1
vote
1answer
200 views

Windows 2012 & Remote Desktop Users group

On Windows Server 2012, it seems that, by default, only users in the Administrators group are permitted to log on remotely to a Windows 2012 server. How can I use PowerShell to allow users who are ...
2
votes
1answer
1k views

Windows Server 2012 WBADMIN Documentation?

I'm trying to set up a script to run the backups of my Virtual Machines only using WBADMIN, I've got as fas as being able to backup all the VMs using the new -HyperV switch, however I also want to ...
0
votes
3answers
2k views

Mount NFS from PowerShell on Windows 2012 and be visible elsewhere

I'd like to mount an NFS share from Windows 2012 using PowerShell and have this mount be visible in contexts other than the PowerShell session that invoked it. If I use the New-PSDrive command ...
2
votes
3answers
1k views

Export Windows Server configuration to powershell script?

I'm looking for a way to export role/feature configuration to a scriptfile, like powershell. Lets say you've installed the DHCP-Role. You configure the scopes, reservations and all that stuff you ...
1
vote
3answers
191 views

Does Windows 2012 Server needed to be a Domain Controler for Using it as AD Webservices for Powershell

I am trying to achieve the make use of AD administrative commands such as "Get-ADUser" and "Get-ADComputer" via Powershell. All our domain controllers are Windows 2003 and we have one Windows 2012 ...
3
votes
1answer
1k views

How can I run a powershell script during the specialize pass of a WDS deploy

I'm setting up WDS for windows server 2012 unattended deployments using the default boot.wim file found on the install media. I have a powershell script that performs automated customisations for our ...
1
vote
1answer
549 views

How to enable SMTP server in Windows Server 2012

We are using servermanager.exe to install smtp server in windows 2008R2 from comand prompt. Is there any alternate to servermanager.exe? How to enable smtp server in windows 2012 from command prompt? ...
0
votes
1answer
4k views

Run Elevated Powershell prompt from command-line

Is there a way to run a Powershell Prompt with Elevated privileges from a command linein Server 2012? Problem is this is 'Minimal Server Interface' mode without full server-gui installed so I can run ...
1
vote
0answers
463 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 ...
0
votes
1answer
244 views

Create multiple snapshots on Hyper-V 2012 PowerShell all at once

In the Hyper-V GUI, it is possible to create a collection of snapshots across multiple VMs by selecting multiple VMs, then clicking Snapshot. In PowerShell on Windows Server 2012, you can request ...
5
votes
2answers
8k views

Windows Server 2012 GUI went missing after removing Active Directory

I'm sorry but i'm stuck in figuring out a problem i'm facing here. I removed the AD feature from server manager and after rebooting, my server 2012 gui wasn't there anymore. There's only command ...
4
votes
1answer
100 views

Is it easy or even possible yet to manage windows firewall with powershell?

I'm doing some POC testing on a server 2012 environment, and during initial firewall configuration I find myself going to the GUI repeatedly when I'd really much rather be able to write a script. I've ...
3
votes
1answer
2k views

How do I Setup (Initialize, Partition, and Format) a disk using Powershell?

What is a basic example of going through the setup of a new disk (Initializing it, partitioning it, and formatting) it using powershell?
8
votes
1answer
1k views

Unzip File With Powershell in Server 2012 Core

I need to unzip a file with powershell. The typical way I've seen everyone do this is by automating the shell with a script. $shellApplication = new-object -com shell.application $zipPackage = ...
6
votes
2answers
5k views

Server 2012 Server Core powershell not installed

In server core, after a restart powershell was all of a sudden not installed, what do I do to reinstall it? I do not have remote administration set up yet so I cannot use that to re-install it. ...
8
votes
1answer
191 views

Is there a version of the AD tools that provide the PowerShell output, similar to the Exchange tools?

The Exchange administration tools output the exact PS commands they will (or just did) execute. Is there a different version of the AD tools (primarily AD Users & Computers) that have similar ...