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

How to export SQLCMD output to Excel

I am using SQLCMD command in powershell to run SQL scripts. When i pipe the output to TXT ,the formatting is all messed up. i want to export the results to excel file. how can i do that. My command ...
0
votes
0answers
12 views

Powershell script from DFS server not running

I have an application in a Citrix/2008R2 that is acting as a user starting point for other apps. I have recently had to modify this application to integrate it more deeply with active directory. As ...
1
vote
1answer
23 views

Trying to get a second parameter in my PowerShell function to work

I have a Function I am working on to pull DisplayName and UninstallStrings from a remote computer's registry. If I only use "$software" parameter, it works fine for my local PC. But, if I add the ...
0
votes
0answers
17 views

Issues with Get-WinEvent running in remoting session

Looks like below code does not work $EventLogonIDs="4611","4624","4625","4634","4647","4648","4672","4774","4775","4 908","4964" $MultipleIDLogEntries={Get-WinEvent -FilterHashtable ...
2
votes
1answer
40 views

Active Directory Module for PowerShell Get-ADObject and Set-ADObject don't work with custom attribute

I am trying to work with a custom attribute in an AD LDS instance that I did not create, using the Active Directory Module for PowerShell. Unfortunately, the cmdlets Get-ADObject and Set-ADObject are ...
2
votes
1answer
24 views

Adding Folder Permissions Using Powershell

I'm running this script in PowerShell: Add-NTFSAccess -Path 'C:\MyFolder' -Account PROGRAMMING\IIS_IUSRS -AccessRights FullControl and I'm getting this error: Add-NTFSAccess : Cannot bind ...
3
votes
1answer
25 views

PowerShell AD LDS query with filter using wildcard not behaving as expected

I am the administrator for a learning management system website that stores its page structure in AD LDS. I am trying to run a query to get objects (pages on the site) matching a filter for ...
-1
votes
0answers
17 views

need a script to add users under a different domain to shares [on hold]

Many users are now logging in under a different domain and cannot access the shares because they only have permission under the old domain. I need to add the same usernames with the same permissions ...
1
vote
1answer
25 views

Deploy a Powershell script and run on shutdown thru group policy

I have a Powershell script I need to deploy to my clients PC and then run it on shutdown. I̶ ̶k̶n̶o̶w̶ ̶i̶t̶ ̶i̶s̶ ̶p̶o̶s̶s̶i̶b̶l̶e̶ ̶t̶o̶ ̶r̶u̶n̶ ̶P̶o̶w̶e̶r̶s̶h̶e̶l̶l̶ ̶s̶c̶r̶i̶p̶t̶s̶ ̶o̶n̶ ...
0
votes
0answers
10 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
1answer
13 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
20 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
29 views

Script to know the status of user accounts created, modified and deleted [on hold]

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
38 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
26 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
94 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
30 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
28 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
22 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
17 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
33 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
53 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
81 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
75 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
14 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
51 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
67 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
19 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
26 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
31 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
30 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
47 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
54 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
41 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
15 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
91 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
75 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: ...