Questions tagged [powershell-v4.0]
67 questions
0
votes
1 answer
PowerShell - Server 2012 - Issue with Custom Modules Loading
I'm having a frustrating issue with our deployment script that is currently working on Server 2008 R2 and I can't get to start on Server 2012 due to issues with PS not recognizing our custom modules we copy over and import.
Error:
Import-Module :…

The_Gribbler
- 45
- 1
- 4
0
votes
0 answers
Running Defrag Task Against Servers
I have a PowerShell script as follows:
$ListOfServers = "Server1", "Server2"
$RunDefrag =
{
param($Server)
$Volume = Get-WmiObject -Class Win32_Volume -ComputerName $Server -Filter "DriveLetter = 'c:'"
$Result =…

The Woo
- 579
- 6
- 21
- 39
0
votes
0 answers
Manage User Specific PowerShell Functions in Active Directory Domain
Given: Windows Server 2012 R2 / PowerShell 4
Do need: a way to manage user/role specific PowerShell functions in an Active Directory domain.
Do NOT need: help with coding these scripts. This question is about managing user/role specific PowerShell…

Jani Hyytiäinen
- 101
- 2
0
votes
1 answer
Unrecognized element 'ProviderOption' when trying to use Powershell Set-WebConfigurationProperty
I am trying to build a Powershell script to automate connection string changes to our deployed web applications.
I am trying to use the WebAdministration command Set-WebApplicationProperty but am recieving an error about an Unrecognized element:…

Jesan Fafon
- 131
- 6
0
votes
1 answer
How to enable or disable a ClusteredScheduledTask in Powershell 4.0
Reference to this page: http://technet.microsoft.com/en-us/library/jj649815.aspx
I'm finding ClusteredScheduledTasks a bit daunting to handle without a GUI interface.
For example, they have a Disable-ScheduledTask cmdlet. Could I run that against…

NealWalters
- 1,333
- 8
- 19
- 39
-1
votes
1 answer
A parameter cannot be found that matches parameter name -ComputerName
I written a script to verify the services were succefully stopped If not it will kill the running processes. Below is my script.
Let me know what needs be added. I am very new to powershell.
$configData = (Get-Content (Join-Path $PSScriptRoot…

Nithin
- 1
- 1
- 3
-1
votes
2 answers
Powershell script Needd to set the state of Allow Remote Shell Access
I am looking for a script which will set the value to "Enable/Not Configured/Disable" of Allow Remote Shell Access in Gpedit via Powershell script.
Below value state value should get changed to Disable via PS script
I know I can use get-gpo to…

asur
- 101
- 2