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
6 views

Scheduled tasks not working depending on context

I'm trying to run a PowerShell command for a persistent session in Metasploit. It downloads and executes shellcode on system startup. I've gotten it to work when I'm on the computer with the GUI, ...
1
vote
0answers
7 views

Powershell: kill one window of a subset running under one process?

Using powershell can I kill/force close a single window (excel workbook) running under Excel without killing the whole process which closes all excel workbooks running under that same process ...
0
votes
1answer
14 views

PowerShell DSC Pull Server with digitally signed module - ErrorDetail is The PS <path to module> is either missing or its associated MOF schema

I've configured a test DSC pull server and I'm attempting to use a digitally signed xPowerShellExecutionPolicy file but I am constantly getting an error stating that the MOF schema file is invalid or ...
-3
votes
0answers
25 views

Script to know the status of user accounts created, modified and deleted

Script to know the status of user accounts created, modified and deleted on windows 2012 server active directory. If the script could send me an email notification by the end of every day that would ...
1
vote
1answer
15 views

Poweshell escaped wildcard

I'm trying to compare string which contains wildcard character. ("www.mysite.*" -match '`*') But something is not working because I always get a True response, for example ("www.mysite.com" ...
1
vote
1answer
26 views

How to cast as ArrayList AND preset data in param block?

As I need to be able to add and remove items from an array I need to cast it as an ArrayList as opposed to the more common options ([string[]], [Array], $Var=@()). I also need to preset it with data, ...
1
vote
1answer
23 views

Powershell script get .NET Framework versions from remote PCs

I have the following script. Get-Content comps.csv | Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -recurse | Get-ItemProperty -name Version,Release -EA 0 | Where { $_.PSChildName ...
0
votes
2answers
40 views

Find the latest string based on time and display those

I have a text file as shown below: testdatabase-21-07-15-12-00 testdatabase-21-07-15-18-00 testdatabase-21-07-15-23-00 testdatabase-22-07-15-12-00 testdatabase-22-07-15-18-00 ...
-2
votes
0answers
13 views

removing persmisions in hard drivers using powershell in AD

I am trying to remove groups in hard disks in all Servers in AD (EVERYONE and USERS) I can create a batch or policy but I heard using powershell is faster and better, I have no much experience with ...
0
votes
2answers
87 views

Bulk Update AD Attribues with Employee ID as matched key

I have a CSV file that I need to bulk update AD with. The file has an employeeID, which would match the employeeID field in AD. So far, I've been able to update a user successfully with a CSV file if ...
0
votes
1answer
19 views

Mass forward usermailbox emails to mailcontacts with same name. Need powershell command to do so

I have 2 OU's of users that each have a mail contact with the same name in a seperate single OU. So Jane Doe would be in Staff\OU1 with jdoe@contoso.com email. Mike Doe would be in Staff\OU2 with ...
0
votes
1answer
29 views

Copy-item with multiple filter

How can I use copy with multiple filter values? For example, it works if I specify only 1 value to filter (*.jpg) Copy-Item -Path Y:\TEST -Recurse -Filter *.jpg -Destination ...
2
votes
1answer
25 views

How do I find IIS web application dependencies using powershell and webadministration on Server 2012

Wondering if someone can help with this. I have a number of servers that host IIS 7.5 and IIS 8.5 web application of various types. As these are production web applications and servers i can't ...
0
votes
0answers
31 views

NTFS Traverse-permission - How are the correct settings?

I am trying to get the traverse-permission to work, but I just can't handle it. I have read a lot of threads (at serverfault and some other places) but still... What I want to do is the following: ...
0
votes
3answers
69 views

Powershell Querying Code

I am having issues writing some PowerShell code. I am trying to run a query against Active Directory which will export all groups, members of the groups, email addresses, and SIDs of each user to a ...
0
votes
1answer
19 views

Access is Denied for PowerShell access site via URL in localhost

What IP I need o put in the IP Address and Domain Restriction in order to allow Windows PowerShell to be able to run Invoke-WebRequest to a URL for a site that is hosted on the same machine. I am ...
0
votes
1answer
15 views

Is there an Exchange Powershell command that allows events to be added to room resources in OWA?

We have an onsite Exchange server, we have a room resource that has been created and is opened as an other calendar in Outlook. When using Outlook 2007 we can add an event to the resource. When we log ...
1
vote
2answers
35 views

Check backpressure live on Exchange2010 server

I am working a lot with exchange servers at the moment and would like to make sure there is no backpressure built up on them. Right know I have a powershell script running every 4h to check the ...
0
votes
1answer
28 views

Windows Server 2012 R2 The route addition failed: The system cannot find the file specified

I am using a simple powershell command,(ran as Admin) as follows. route –p add 172.30.200.0 mask 255.255.255.0 0.0.0.0 IF 28 I have done this no problem on Windows 8.1, but when I do this in ...
-1
votes
0answers
50 views

PowerShell: Copy and Replace Files Across Subdirectories

So I'm looking to use PS to look at all files (other than the script) in the current directory, then search for those same files (possibly even with earlier version identities) in subfolders from a ...
6
votes
1answer
73 views

Can I change the update descriptions in WSUS?

On each Microsoft patch day, I have a pretty large amount of new updates I want to approve to my clients. But instead of 'Approve all updates and continue', I gather information on each update at its ...
1
vote
2answers
66 views

How do I get the equivalent of Set-DnsClientServerAddress in Windows Server 2008 R2?

How do I set the DNS address for a network adapter programmatically in Windows Server 2008? It looks like Set-DnsClientServerAddress isn't supported.
0
votes
0answers
13 views

Finding HP archiving Stub emails

In exchange 2007 managed content, is it possible to search all mailboxes for a mail item using the message class, i.e. IPM.Note.PERSISTMailItem is there a powershell script for this.
1
vote
1answer
49 views

Automate Windows administration tasks [closed]

I'm diving headfirst into PowerShell (by no means an expert yet) and am looking to build a GUI to automate Windows admin tasks, both for the deskop and server side. I know there are third-party tools ...
1
vote
1answer
25 views

Add a scheduled task to the GPO progrematically

The assumption is I'm on a DC with admin rights. I want to add an immediate task to the GPO to run a .exe on the workstations, but I want to do it without the GUI i.e. quietly. Is there a way to do ...
0
votes
2answers
54 views

Poll domain members for their screen resolutions

Is there a way via WMI or Powershell to ask each domain member what the resolution is on their desktop? I need to know but can't go and visit each one. For bonus points, how to summarize the results ...
4
votes
2answers
65 views

Stopping IIS websites permanently with PowerShell

Stopping websites using Stop-Website is, apparently, not the same as stopping them using the IIS Manager. Stop-Website 'Some site' iisreset.exe # site is started again Using IIS Manager, the state ...
1
vote
1answer
18 views

Copy Folder from Structure to new location

I have a structure of 900 users like below User 1 Personal personal.pst I need to copy the Personal folder from each user folder to a new structure such as below User 1 (diff username) ...
3
votes
3answers
25 views

List shadowcopy timestamps of netapp

Is there a way (powershell, commandline, api, snmp) to list the snapshot timestamps of a file on a network location. So i'm searching for an automation of what windows is doing, when you click ...
1
vote
0answers
30 views

Issues with Powershell Remoting

I'm configuring a new network and i need to enable Powershell Remoting. I'm in an Active Directory Domain and all my Clients are connected to the Domain. I'm able to run remote commands (Get-Process ...
0
votes
0answers
27 views

Unable to install RD Connection Broker role service on server

I'm currently having a lot of difficulty trying to setup a new RDS 2012 R2 Session Deployment. New-SessionDeployment -ConnectionBroker servername -SessionHost servername -WebAccessServer ...
2
votes
1answer
35 views

Reversible Encryption - Not Defined but Showing as Enabled?

I'm reviewing our complex password policy that was setup by a previous admin and I'm trying to gain some clarification on the setting for Reversible Encryption. In our organization, reversible ...
1
vote
1answer
35 views

How can I run this powershell script in parallel?

I have 100 databases in Exchange that I want to perform a task on. I might want to change the currently mounted server or something else. When I run this command, each database is serially synced. I ...
0
votes
1answer
46 views

Is it possible to add permissions to an Active Directory account using PowerShell?

We're deploying Active Directory, and we're using PowerShell scripts for most of it: creating the forest, creating AD elements (users, groups, sites, subnets), etc. We'd like to make some users able ...
1
vote
2answers
53 views

Change different domain account without being admin Windows

I have 2 accounts on a domain. I can log into a citrix virtual desktop with the one account fine, but the other won't let me log into anything until I first change my password. I am remote, so I ...
0
votes
0answers
39 views

powershell command to get a list of all the snapshot in vmm (hyper-v)

i am using below script to get snapshot which are associated with my particular VM, but i am getting only recent snapshot information , can someone correct me in below script - $vmcheck = Get-VM ...
0
votes
1answer
14 views

Want to get checkpoint details for particular VM through “VMM PowerShell Script” activity

i have orchestrator with service manager installed . now i want to give facility to my developers to get checkpoint information about respective VMs (particular) from SMportal so that they can revert ...
1
vote
1answer
40 views

Format-List in Powershell-Function not working

i want to use format-list inside a function in a powershell script to have some nice-formatted output. But when I use it, it simply doesn't print anything. In this thread the author had the same ...
4
votes
1answer
83 views

Bulk License Office 365 Users by OU with PowerShell

I'm trying to do something that I don't think should be too complicated of a fix. My end goal: I have certain users in one AD OU that need to use a certain license in Office 365, and different users ...
0
votes
3answers
57 views

Security concerns with enabling PowerShell on a production server [closed]

I work in the software development side of an ISV. We're thinking of using PowerShell for some utilities in and around the core application (which itself is ASP.NET). One of my colleagues said to me ...
1
vote
0answers
70 views

enter-pssession : Connecting to remote server failed with the following error message : The user name or password is incorrect

I am unable to connect to domain controller via below script. This script is working for another domain controller so it mean script is correct. While I am connecting i am getting an error: ...
2
votes
1answer
64 views

How can I invoke a foreground process from a background PowerShell Job?

I'm working on a PowerShell script that provides console output and restarts the system several times during the script's operation. As soon as it starts, it registers itself as a Scheduled Job so ...
1
vote
1answer
35 views

Powershell remoting with active directory

I am able to connect to domain controller via below scrip remotely, but after that i want to run disable-ADAccount ,Get-ADUser command but I am getting error Get-ADUser : The server has rejected the ...
1
vote
1answer
49 views

Import IIS Advanced Logs into SQL

I'm using IIS 8.5 Advanced Logging and also logging some custom HTTP headers. How can I import the raw logs into SQL on a regular basis (i.e. every minute)? I want to avoid the overhead of ODBC ...
3
votes
2answers
68 views

Hyper-V guest loses network access when virtual switch port is in trunk mode

I have guest VM on a Windows Server 2012 R2 machine running Hyper-V. Currently, the guest is using the native vlan (vlan ID 1). I can communicate with the guest from the host and from the network. ...
0
votes
2answers
25 views

Powershell script failing when executed from Azure Site Recovery Plan

$username = "username" $password = convertto-securestring "*****" -asplaintext -force $cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password ...
2
votes
1answer
34 views

How to properly deploy internal self-signed scripts (Powershell)

Completely new to certificate usage so be gentle. I'd like to deploy Powershell scripts that I made to other employee computers so they can use them, but I will need to sign them in order for them to ...
-1
votes
1answer
25 views

Apply group policy based on RDP Client O.S

I created a group policy to change the default shell, so that handheld PC can RDP to a Terminal Server and have the lob application kiosked. This work fine, but, sometime, is necessary to RDP with the ...
7
votes
1answer
171 views

In what context do SCCM Powershell detection scripts run in?

I have finally had success using PowerShell detection scripts on clients with AllSigned execution policy. (hint: It started working after installing the latest service pack and using Adam Meltzer's ...
0
votes
0answers
41 views

Copy files to “default” location using UNC path

When I log in remotely using PowerShell, I'm placed in a default location: > Enter-PSSession SERVER [SERVER]: PS C:\Users\smithe\Documents> I'd like to copy a folder recursively to this ...