Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Split an array of string and flatten into single array

I have a following array of strings$array = @("asdf asdf","aaa ddd","cccc a","aaaa dd")and I would like to split every element of that array by a new line and put the result into  arraySo expected...

View Article


How to execute button action when powershell script starts

Hello Forum,I have a PowerShell that creates a gui app with some buttons on the app.  When the app loads I have a Search button with the following code behind it to build the search parameters:Function...

View Article


Help convertto-json CSV file

Hi, i have the $CSV File like..email                      role    -----                      ----    user1@contoso.com members user2@contoso.com   members user2@contoso.com owner   user3@contoso.com...

View Article

Get Files and Folders from SharePoint Document Library

Hi Guys, I'm new to PowerShell, I need to loop through a document library and get metadata of the files and folders.I'm looking also for empty folders to delete them. I was able to get something...

View Article

Get all blobs name from Azure Storage

Hi guys, I'm trying to get the files metadata or at least the name of the files from the blob storage.I keep getting the following error, could you please tell me what I am doing wrong?...

View Article


Bug in PS Import-PfxCertificate - Verify?

I have run into an insidious bug with the Import-PfxCertificate on Windows 2012 R2. When attempting to use this cmdlet, the certificate and cert authority that signed it are successfully imported, but...

View Article

No more PRINT on MSDN screens

Why did you remove the PRINT page function???????????

View Article

How to launch webserver without notifications from firewall?

Hello!Please tell, how to launch xampp web server without appearance of a firewall messages which tells that he blocked some functions of Apache and Mysql servers in all public and private networks?...

View Article


Export-csv

Hello all, I have been searching on this for a few hours but cannot find a fix. All I want to do is export the findings of these OUs.Get-ADComputer -Filter * -SearchBase...

View Article


Migrating email aliases

Hi we are moving from one office 365 (not synced, cloud only) to another which is ad synced and has an onsite exchange server for admin only. I'd like to export all of our current users email aliases...

View Article

Powershell Help Request - getting error Add-VMNetworkAdapterExtendedAcl :...

Hi AllI wonder if anyone can help me in a late night and stressful attempt to get something working :)so the extended port acls below are what i'm trying to apply and in particular i get this error on...

View Article

Powershell automate Post of file on Website but unable to close Website popup...

Good day, please helpi am trying to automate the uploading of files to a website.1. requires to login > close popup "welcome message box" close window2. then select upload link > then select...

View Article

Get-WBSummary for multiple backup sets

Hello Everybody,I hope someone can help me with a (i thought Simple) Powershell Problem.Im currently configuring Windows Server Backup on a Hyper-V Server 2012 Standard.After reading through the...

View Article


IF statement and loop

Hello PowerShell smart people.. I am working on a little project where I want to remotely execute an .exe with switches and parameters when a computer connects to the network. Here is the PowerShell I...

View Article

Version of PowerShell on different OSes?

I downloaded PS5 from https://www.microsoft.com/en-us/download/details.aspx?id=50395&tduid=(05947d201207168430347b50ca69b7a2)(256380)(2459594)(TnL5HPStwNw-_ylJPzdSbnBIp.QcvmUMuw)()and installed it...

View Article


read line by line and search for multiple strings

Hi ,Please could you advise that how can i perform below:i have file in which if string entries are present then i need not to append the string otherwise i need to append.Contents of File is something...

View Article

lastLogonTimestamp: How to return true NULL instead of those 01.01.1601...

Hello all, can you please help to change the script to return true NULL instead of those 01.01.1601 4:00:00 for users who never logged in?I assume it can be done via using some IF check.The script that...

View Article


Image may be NSFW.
Clik here to view.

How to get data from Powershell with the "Method" variables similar to...

Hi All,I have a question, Searched in the search engines but i did not find the relevant answer, Not sure if my search query was correct.I have a command in powershell which i run post importing a...

View Article

Trouble Replacing String with Get-Content

Hi, I'm looking to edit a config file by replacing an entire line within it so long it begins with server=, but the the script is adding to end of server= instead of replacing the entire line. How can...

View Article

Extract data from string file returned from System.Net.WebClient

I'm using Powershell to send a SMS through a SMS Gateway provider.  The sending works great this is the last line of my code:  $wc.DownloadString($url) | Out-File C:\result.txt the result.txt looks...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>