An interactive shell, scripting and programming language, and surrounding environment from Microsoft. Commonly used by system administrators managing Microsoft software (including Windows, Exchange, SharePoint, and cloud services Azure and Office 365), PowerShell is included by default with Windows, ...

learn more… | top users | synonyms (1)

0
votes
0answers
35 views

Trying to add group to the security tab of an extended right

. The only problem is that the rights are not propagating to the extended attribute, even in the advanced tab :(. If I go in to adsi and check the security tab of the extended right it shows ...
2
votes
1answer
44 views

Check which windows update will be installed

I manage a server windows 2012 which was not updated for approximately 2 years, to estimate the impact for a global update, I would like to know how many updates and which ones will be installed next ...
1
vote
2answers
19 views

Invoke-WebRequest timeout if NIC 1 disconnected

I have a windows pc with three network interfaces. One is a UMTS modem and the two others are lokal networks and one network has connection to the internet. Invoke-WebRequest ...
0
votes
1answer
2k views

How to save event logs “Network Policy and Access Services” on NPS server

We have a Windows Server 2008 R2 Enterprise server with NPS role installed in it. (We dont use NAP). Is there any way, we can save all the event logs in------ Event Viewer -> Custom Views -> ...
-5
votes
0answers
33 views

How can you Upgrade PowerShell from version 2.0 to 3.0 for Windows Server 2008 R2 Without a Reboot how can I do this ? [duplicate]

I need a way to Upgrade PowerShell from version 2.0 to 3.0 including prerequisites for Windows Server 2008 R2 ( Without a Reboot ) how can I do this ?
3
votes
1answer
61 views

Add security rights to an extended rights guid

Any help would be greatly appreciated! Please ask if you don't understand something. I am trying to explain it as best as I can. The value I am trying to edit is ...
0
votes
1answer
44 views

What permission do another domain user need to restart IIS app pool on my machine?

Can this be done without adding user to local Administrators group? All I need is to remotely stop app pool, create site and start the pool again. I'm trying to do this with Powershell script. I keep ...
4
votes
2answers
65 views

How to filter the Windows Security event log by SID?

I want to filter the event log for a certain user, but I don't think there's an option to search by SAMID. There is a filter by UserId though, according to here. Is the following correct syntax ...
0
votes
1answer
31 views

Exchange: Auto Reply Rules

Is there a way to disable or remove the Automatic Reply Rules that can be created in Outlook with Powershell? They can be reached by clicking the 'Rules...' button under the 'Automatic Replies' window ...
0
votes
1answer
958 views

How to export Exchange public folder permissions and import them to a different system?

I'm involved in a migration from Exchange 2010 to Office 365 (Exchange 2013); all user mailboxes have already been successfully migrated, but due to some glitch or bug that even Microsoft's support ...
4
votes
1answer
1k views

Batch script is not getting executed when called by Start-Process Cmdlet

I have a strange issue on a Windows Server 2012 R2 here that just does not make any sense to me at all. I've got a PowerShell script that basically has the following structure: Function ...
1
vote
1answer
42 views

Managing Exchange 2010 from Windows 2012

We have been managing Exchange 2010 from a separate Windows 2008 R2 server and recently upgraded the management machine to Windows 2012 R2. The EMC works fine but I am somewhat limited in the shell. ...
5
votes
2answers
84 views

Queuing reboots in Powershell

I am working on a project to reboot a great deal of computers. One of the important requirements is to stage the reboots so all of the machines aren't rebooting at once (too fast and it will cause ...
1
vote
1answer
925 views

Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.SqlServer.Management.PowerShell.sqlps'

I've tried re-installing SQL Server 2014 and I'm still getting the following error message when trying to import-module sqlps. The same registry key exists but is appended with 120. I'm able to use ...
2
votes
1answer
57 views

Use the DFSR Module on a Windows 2012 R2 Server Core

I have a standard Windows 2012 R2 box setup with server core. I have the file server roles installed along with DFSR. I want to use the powershell tools like Get-DfsrState and other Get-Dfsr* to ...
0
votes
1answer
35 views

How to run Azure cmdlets in background?

Several Azure PowerShell cmdlets have very tedious run times; a trivial task such as setting a static IP address on a virtual machine can take more than a minute (I guess this is because the cmdlet is ...
1
vote
8answers
13k views

how to get MAC address of remote computer

I have specific situation. I want to get MAC address from a remote computer, which is not in domain. I know the hostname and IP address of the remote computer. The IP Address of my computer is ...
1
vote
1answer
34 views

PowerShell - How to activate Windows CAPI2 Eventlog?

I want to activate the CAPI2 (microsoft/windows/capi2) Eventlog with PowerShell. How can I activate the CAPI2 Eventlog? I do not have a solution with PowerShell. But I´m sure there is a solution with ...
1
vote
3answers
8k views

Using Powershell's Invoke-command to install .exe on remote computer

I have an .exe I would like to install on a large farm of Windows Server 2008 computers. I am attempting to use Powershell remoting. I have this command which works locally: invoke-command {& ...
-1
votes
0answers
17 views

SCCM Software Library Total Size Report

Is there an SQL query or powershell command to get the 1) Name and 2) size of each item in the Software library in SCCM 2012 R2? Sam Fakhreddine
1
vote
0answers
40 views

Getting Group Policy identifier in PowerShell

Some of our computers have a random "local group policy" being set that forces them to check a nonexistent intranet server for Windows Updates instead of using WU over the internet as they should. ...
0
votes
1answer
25 views

How to retrieve list of unique file name parts?

A folder with migration scripts has a mix of SQL and PHP files named like these: 2015-03-22.23-00.up.sql 2015-03-23.19-00.up.development.sql 2015-03-23.19-00.up.production.sql 2015-03-23.19-00.up.sql ...
5
votes
2answers
2k views

Changing physical path on IIS through appcmd isn't activated

We have come across an issue on IIS 7.5 where we have a simple deploy system which consists of the following: Create a zip-file of new webroot, consisting of three folders: Api Site Manager This ...
0
votes
1answer
13 views

SCEP: imitate potential threat in both live and regular scanner to inspect logs

I am doing some powershell stuff to parse a few logs at work. I would also like to collect some information from the SCEP logs. I find the amount of logs available as well as the different locations ...
1
vote
2answers
1k views

Power shell script to fetch disk space on all servers in timely intervals

I got a Powershell script from here which will export Disk Space usage to html file. I want the scritp to give usage in timely intervals say each 15 mins or 30 mins. is there any way we can mod this ...
0
votes
0answers
19 views

parsing SCEP logs: last definitions update, last scan, viruses found [duplicate]

I would like to write some powershell scripts to extract some information from the SCEP log files. Particularly, I am interested in the following information when was the last scan performed? ...
1
vote
1answer
1k views

Exception Enumerating SQL Server Instances with SMO WMI ManagedComputer

I'm trying to use the SMO WMI API/objects in PowerShell 2.0 on Windows 7 with SQL Server 2008 R2 installed to get a list of SQL Server instances on the local computer using the Managed Comuter object. ...
2
votes
1answer
6k views

How to select a user and remove all groups they are a member of using Powershell (with Quest)?

I've read quite a bit online about this and thought I had found a solution, but it doesn't seem to be working like I would expect. I am wanting to get a user based on the username I input, then ...
2
votes
1answer
51 views

Is the file current.mof a bottleneck when using the DSC module?

The msutter DSC module (PowerShell Defined State Configuration) seems to have a bottleneck. Every class that uses a DSC resource generates intermediate Powershell/DSC code that creates a file called ...
2
votes
1answer
2k views

Mirror directory, only purging files in destination directory older than 7 days

I would like to mirror a directory, but only delete files in the destination directory older than 7 days. Situation: - Directory A is mirrored to Directory B. - A file from Directory A is deleted ...
1
vote
1answer
34 views

Need to create multiple emails with different domain names - PowerShell

I'm being tasked with creating a script that polls AD for specific information and then creates an appropriate email address based on that information. Please allow me to give you a bit of a rundown. ...
0
votes
0answers
28 views

Export Public Folder heirarchy to a regular folder structure/file share

What known method are available to migrate emails (.msg files) from a public folder (Exchange 2007) to a regular folder/file share? When the emails are copied over to a regular folder, it is required ...
4
votes
4answers
5k views

Windows Server 2008 R2 PowerShell script runs manually, but not as a scheduled task

I have a PowerShell script that runs manually using the PowerShell ISE. However, when run as a scheduled task using an administrator's credentials the task does not run with the expected results. The ...
4
votes
5answers
3k views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
0
votes
1answer
1k views

Exchange 2010 Search-Mailbox to delete Exchange Journal emails

I am using this PowerShell command to try and delete emails from our Exchange Journal, [PS] C:\Windows\system32>Search-Mailbox -Identity exchangejournal -SearchQuery ...
3
votes
2answers
2k views

Automatically reconfigure WinRM HTTPS listener with new certificate?

I am looking to enable WinRM HTTPS listeners on all of our servers for secure communication when using CredSSP between servers to get around the double-hop issue. Setting this up is fine, we have ...
1
vote
2answers
2k views

powershell v2 remoting - How do you enable unecrypted traffic

I'm writing a powershell v2 script that I'd like to run against a remote server. When I run it, I get the error : Connecting to remote server failed with the following error message : The ...
1
vote
3answers
412 views

Is it possible to migrate Azure VM image from one Subscription to another Subscription?

I recently captured one azure vm image in one storage account, and planning to migrate this image to another storage account under a different subscription. I used PowerShell Script to run this task, ...
1
vote
2answers
19 views

Exclusive delete to delete most files trees but keep specific ones

Im trying to create a script that when received the specific file it unzips it looks through the unzipped file and deletes the entire contents except for two or three specific folders with their ...
0
votes
1answer
31 views

Access 'Response Time (ms)' windows disk counter from powershell

In perfmon there is a 'Response Time (ms)' column on disk tab. It shows response time by process. How can I get this value in powershell? I didn't find any solution in the internet. WMI serves just ...
2
votes
2answers
61 views

Restrict user account to 'only' remote Powershell sessions

Is it possible to only delegate a enough permissions for a user to only be able to utilize a Remote Powershell session? I have a limited set of scripts that I want to run from a central location ...
0
votes
1answer
61 views

CloudFormation powershell to run as domain admin + elevated priviledge

So... I'm writing some cloud formation templates. Using cfn-init, I get the machine to join the domain, and now I need to run in a Domain Admin context as local admin with elevated privilege to: ...
1
vote
0answers
43 views

Allow Powershell script executed on Exchange server to send mail - best practice?

I've got a single multi-role Exchange 2010 server and a need to execute a Powershell script on monthly schedule. And i really would like to send a report via email to some local company's mailbox by ...
0
votes
0answers
51 views

Access Denied when Creating Remote Powershell session for Exchange 2013. But not always

Access Denied error is thrown sometimes when connecting to an Exchange Server 2003 SP1 server. The cmd-let used to connect is: Set-ExecutionPolicy RemoteSigned $sessOpt = New-SessionOption ...
3
votes
3answers
833 views

Exchange PowerShell in a Scheduled Task runs forever

I have a couple of Exchange 2010 PowerShell scripts that I'd like to run as Scheduled Tasks. If I launch PowerShell using "Run as different user" I can run the scripts and they execute correctly. If ...
1
vote
2answers
79 views

Distribution Group Owner Management Exchange PowerShell

In an Exchange 2010 (version 14.3 Build 123.4) environment, how do you add a new user to the "ManagedBy" attribute and remove another at the same time via PowerShell? (I'll be doing this for multiple ...
5
votes
1answer
5k views

Import-Module Azure fails

I am trying to work with Windows Azure PowerShell module on Windows 8.1. I have downloaded and installed the Azure module and in start I can run and use the "Windows Azure PowerShell" which is a PS ...
1
vote
1answer
50 views

Is there away to rename a VM in System Centre Virtual Machine Manager 2012 R2?

I have a VM in SCVMM that the VM name no longer reflects the name of the OS. OS had to be renamed, and now the VM in SCVMM name is incorrect, and it's greyed out so I can't rename it. Is there any ...
1
vote
2answers
62 views

change ip address for 10 computers based on a txt file in powershell or vbscript

I have a txt file that looks like this PC1 192.168.0.2 PC2 192.168.0.3 PC3 192.168.0.4 I would like to change computers ip addresses based on that list, so it will fill up the computer name and ...
6
votes
1answer
628 views

Evaluating current ACEs on NTFS ACLs with PowerShell

We have a document management system that has million of files on a NTFS file system accessed through a network share. A single service account needs full permission to all of these files and the ...