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)

1
vote
2answers
15 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 ...
-4
votes
0answers
26 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 ?
0
votes
0answers
26 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 ...
0
votes
1answer
14 views

Windows Server Management through web browser [on hold]

I'm looking for a tool such as webmin (but not webmin) or even a much simpler interface that will allow me to run either powershell scripts or simple batch files. I know RDWeb is an option but it's ...
3
votes
1answer
50 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
20 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 ...
0
votes
1answer
23 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 ...
4
votes
2answers
53 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 ...
2
votes
1answer
30 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 ...
1
vote
1answer
39 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. ...
0
votes
1answer
27 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
1answer
30 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 ...
5
votes
2answers
70 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
votes
0answers
13 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
37 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
23 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 ...
0
votes
1answer
11 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 ...
0
votes
0answers
18 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
24 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
19 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 ...
2
votes
1answer
46 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 ...
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 ...
2
votes
2answers
52 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 ...
-3
votes
0answers
46 views

How to create new user based on existing one? [closed]

we have a configured local user A. We want to create a new user taking most settings and preferences from user A, (Group policy enforced settings, Application settings, register values) Is such thing ...
0
votes
0answers
37 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 ...
1
vote
0answers
34 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
1answer
22 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 ...
1
vote
2answers
58 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 ...
1
vote
0answers
40 views

How to persist credentials in a remote Powershell session?

I have an Azure File Share and would like to use this from my Azure VMs - after persisting the credentials on the VMs with cmdkey and mounting with net use. This was tested by running these commands ...
1
vote
1answer
35 views

How to apply xNetworking xIPAddress Desired State Configuration (DSC)?

Using Windows Server 2012 R2. The goal is to set the IPv4 address of a server. As DSC correctly states in the verbose message below, the Expected [ip is] 192.168.0.203, [while the] actual [ip is] ...
1
vote
3answers
70 views

Powershell script not working when launched from SSH (or winexe) from a Mac or Linux Client

I have a Powershell script to backup MSSQL on a Windows Server 2008 R2 box. It backs up a specific DB to a local disk, then moves the backup to a Network mounted CIFS volume. It works 100% fine when ...
1
vote
1answer
39 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 ...
3
votes
2answers
54 views

Deallocated Azure VM Loses IPv4 DNS Address

I deallocate my development Azure VMs every night to conserve my credits. My VMs are all on one vnet using a domain controller. Since it is on the subnet, the domain controllers address never changes. ...
0
votes
0answers
30 views

Error with OraOLEDB.Oracle in PowerShell

I am a sysadmin who primarily handles Powershell scripting for our AD environment, and we periodically hit this error in both our test environment and in live. Exception calling "Open" with "0" ...
2
votes
2answers
63 views

How do I use PowerShell GPO cmdlets to set up file security?

I need to automate the creation several security groups, then create and apply a GPO that includes OU / Security group specific file permissions and auditing. I have the OU and group creation done. ...
0
votes
2answers
53 views

Windows: change own password of standard user by using commandline

I want to change the password of the current logged in Windows user (no Active Directory) in a scriptable way. The users have the right to change their own passwords and already can change the ...
0
votes
0answers
41 views

diskmgmt.msc - Is it possible to script it using powershell or command line?

I have an application which uses the IBM Softlayer API to create a Softlayer server, with two disks. The main disk C: has the Windows (2008R2 or 2012) operating system, and another disk called "Disk ...
1
vote
3answers
66 views

PowerShell/ADSI Permission Issue with AD related tasks

I'm working on a PS script that will give users a GUI & a few buttons to click to do some basic tasks such as unlocking an account, enabling/disabling, changing passwords and killing processes / ...
-2
votes
1answer
50 views

How to add bunch of admin accounts to 20 Windows 2012 servers

Is there a quick way to add bunch of admin accounts to 20+ Windows 2012 servers? It would be way too cumbersome to rdp to each server and add accounts to the local admin group.
1
vote
2answers
53 views

Powershell HTTPS not working

I am a bit confused on how to configure certificate for my local host. My scenario is like: We've two windows 2012 servers (not joined in a domain) and I need to execute a powershell script remotely ...
1
vote
2answers
58 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 ...
0
votes
0answers
12 views

Trying to set COM+ application component property in PowerShell

I am trying to check the Run application as NT Service box for an application in COM+ in Component Services using PowerShell. Does anyone know the $component.Value(s) to do this? Any help would be ...
2
votes
1answer
42 views

Powershell Workflow Parallel

I recently determined that I am able to run a workflow as parallel without using foreach. Syntax is below. workflow Get-OS { parallel { Get-WmiObject -Class Win32_OperatingSystem } } Is it ...
-1
votes
1answer
36 views

Delete files by date and character count

I have an interesting problem. I need to delete directories that are older than x days but are only numerical. We have a log folder that has log files that we need to delete but other files and ...
-2
votes
1answer
30 views

Script to open a webpage or at least hit a web api [closed]

I need to write some kind of script that runs on a windows server that can be scheduled to run throughout a day to open a webpage to a specific address or at least hit an HTTP api it doesn't ...
0
votes
1answer
27 views

Check deletion rights on AD object via powershell?

I need to build a script which check if the current user has rights to delete a special AD object and if this is the case the powershell script can delete it. Deleting an AD object isn´t the issue, ...
1
vote
2answers
43 views

powershell format a value that's already a string

I have some values that I want formatted in a specific way. To be very clear, its an IP address octet and I want it in a "xxx" format. For example if I have a octet value of "20" I want to display ...
1
vote
2answers
62 views

How risky is storing credentials on disk in a Powershell SecureString?

Basically, I want to cache the credentials needed for New-PSSession and make them available to scripts so they don't have to nag a human. If I use export-clixml or similar to store a PSCredential on ...
2
votes
1answer
41 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 ...
0
votes
1answer
40 views

How to install AV on existing Azure VM using agent tools?

If I already deployed a VM, how can I use the VM agent to install an antivirus software from the Azure marketplace (i.e. McAfee)? There must be some Powershell command or something but everything I've ...